Running on Debian

  1. apt-get install wordpress
  2. created a file wordpress in /etc/apache2/sites-available:

<VirtualHost *:80>

        ServerAdmin webmaster@localhost




        DocumentRoot /usr/share/wordpress

        Alias /wp-content /var/lib/wordpress/wp-content

        <Directory /usr/share/wordpress>

            Options FollowSymLinks

            AllowOverride Limit Options FileInfo

            DirectoryIndex index.php

            Order allow,deny

            Allow from all


        <Directory /var/lib/wordpress/wp-content>

            Options FollowSymLinks

            Order allow,deny

            Allow from all


        ErrorLog ${APACHE_LOG_DIR}/Wordpress_error.log

        # Possible values include: debug, info, notice, warn, error, crit,

        # alert, emerg.

        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/Wordpress_access.log combined


  1. Enable the site: a2ensite wordpress
  2. Restart Apache: service apache2 restart
  3. Create config file /etc/wordpress/


        define('DB_NAME', 'wordpress');

        define('DB_USER', 'wordpress');

        define('DB_PASSWORD', 'password');

        define('DB_HOST', 'localhost');

        define('WP_CONTENT_DIR', '/var/lib/wordpress/wp-content');


  1. Log on mysql: mysql -u root -p
  2. Create your database and user:
    CREATE DATABASE wordpress;
    ON wordpress.*
    TO wordpress@localhost
    BY 'password';
  3. Log to the Wordpress:
  4. You are now ready to log in:

  1. ERROR: I was going to a blank page because of output_buffering = 0. Switched it to output_buffering = 4096 in /etc/php5/apache2/php.ini
  2. Going thru the options, first in General:

  1. ERROR: because of the new URL, the config is not found.
    /etc/wordpress/ nor /etc/wordpress/ could be found.
    Ensure one of them exists, is readable by the webserver and contains the right password/username.
    Fixing using:
    ln /etc/wordpress/ /etc/wordpress/
  2. Opening Writing:
  3. Opening Reading:
  4. Opening Discussion:

  5. Opening Media:
  6. Opening Permalinks:
  7. Will switch the .htaccess file to 666 by the way… : chmod -v 666 /usr/share/wordpress/.htaccess
  8. ...