Editing
Wordpress
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Installeer website = Op de server is de benodige code van Wordpress aanwezig in /usr/share/wordpress.<br/> Eerst de database voorbereiden: <pre> Er is reeds een lege database aangemaakt met de volgende rechten: mysql> create database webhuis_nl; mysql> grant all on webhuis_nl.* to gebruker identified by "geheim"; mysql> grant all on webhuis_nl.* to gebruiker@localhost identified by "geheim"; mysql> flush privileges; </pre> Daarna de voorbereiding van de webserver: <pre> root@host:~# vi /etc/apache2/sites-available/test2.webhuis.nl.conf root@host:~# mkdir /var/www/webhuis.nl root@host:~# a2ensite -> enable test2.webhuis.nl root@host:~# /etc/init.d/apache2 reload </pre> Als laatste volgt de wordpress code voor de website. <pre> root@host:~# cp -a /usr/share/wordpress/* /var/www/webhuis.nl/ </pre> * http://www.howtoforge.com/running-wordpress-on-nginx-lemp-on-debian-squeeze-ubuntu-11.04 * http://codex.wordpress.org/User:Sivel/FAQ * http://sharealike.org/index.php/2007/04/07/multiple-wordpress-blogs-on-a-debian-server/ * http://linux.justinhartman.com/Wordpress_Installation_on_Debian == multi site == Multi site vereist per een aantal instellingen om het geheel werkend te krijgen. Doe je dat niet dan gaan alle sites op wit. Add the following to your /etc/wordpress/config-domain.nl.php file: <pre> define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'test.domain.nl'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); </pre> These unique authentication keys are also missing from your /etc/wordpress/config-zevendehemel.nl.php file. To make your installation more secure, you should also add: <pre> define( 'AUTH_KEY', '****************************' ); define( 'SECURE_AUTH_KEY', ''****************************'' ); define( 'LOGGED_IN_KEY', ''****************************'' ); define( 'NONCE_KEY', ''****************************'' ); define( 'AUTH_SALT', ''****************************'' ); define( 'SECURE_AUTH_SALT', ''****************************'' ); define( 'LOGGED_IN_SALT', ''****************************'' ); define( 'NONCE_SALT', ''****************************'' ); </pre> Add the following to your /etc/wordpress/htaccess file, replacing other WordPress rules: <pre> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L] </pre> == /etc/wordpress/htaccess == ## ## Configuration for a multi-site wordpress installation using subdomains ## <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L] </IfModule> = Install = Voer op een kale server het volgende commando uit: root@twhz-210:~# apt-get install wordpress mysql-server Dit commando installeert alles inclusief apache, mysql, php en modules. <hr> Terug naar: [[Webhuis Infrastructuur]]
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information