Running on Debian

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

<VirtualHost *:80>

        ServerAdmin webmaster@localhost

        ServerName wordpress.laforce.kadx.org

        ServerAlias shitdemarde.com

        ServerAlias www.shitdemarde.com

        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>

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

            Options FollowSymLinks

            Order allow,deny

            Allow from all

        </Directory>

        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

</VirtualHost>

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

<?php

        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;
    GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER
    ON wordpress.*
    TO wordpress@localhost
    IDENTIFIED
    BY 'password';
    FLUSH PRIVILEGES;
  3. Log to the Wordpress: http://wordpress.laforce.kadx.org/wp-admin/install.php
  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.
    Neither
    /etc/wordpress/config-www.shitdemarde.com.php nor /etc/wordpress/config-shitdemarde.com.php could be found.
    Ensure one of them exists, is readable by the webserver and contains the right password/username.
    Fixing using:
    ln /etc/wordpress/config-wordpress.laforce.kadx.org.php /etc/wordpress/config-www.shitdemarde.com.php
  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. ...