Sunday, March 6, 2011

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

ServerName blog.example.com
DocumentRoot /var/www/blog.example.com/

AllowOverride All
Order Deny,Allow
Allow from all


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.

2 comments:

  1. Thank you for the valuble information nice information can check about Aptitude also thanx

    ReplyDelete
  2. You are always wel-come.
    http://bogatiaaresh.blogspot.jp/

    ReplyDelete