Install WordPress on Debian Lenny

First, update your DNS and point blog.example.com to the server.

aptitude install mysql-server php5 wordpress
chown :www-data /etc/wordpress/*
mkdir /usr/share/wordpress/wp-content/uploads
chown www-data:www-data /usr/share/wordpress/wp-content/uploads
chown -R www-data:www-data /usr/share/wordpress/wp-content/themes

Create /etc/apache2/sites-available/blog file

<VirtualHost *:80>
ServerName blog.example.com
DocumentRoot /var/www/blog.example.com/
<Directory /var/www/blog.example.com/>
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>

Run the following commands:

a2ensite blog
/etc/init.d/apache2 reload
ln -s /usr/share/wordpress /var/www/blog.example.com
cd /usr/share/doc/wordpress/examples
sh setup-mysql -n blog blog.example.com

Now, access http://blog.example.com/ to continue the configuration of wordpress.

Reference:

1. Multiple WordPress blogs on a Debian server

Advertisements

One thought on “Install WordPress on Debian Lenny

  1. Magnusofdoom

    Thanks, this guide actually worked, and it wasn’t that much of a hassle. However, after following the steps above, you do need to restart Apache before you can install WordPress.
    Thanks again dude!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s