Home > Installation / Configuration > How to install wordpress 2.9 in Apache on your localhost in Ubuntu 9.10

How to install wordpress 2.9 in Apache on your localhost in Ubuntu 9.10

This post contains the steps involved to setup wordpress on your local machine in Ubuntu. ( You may want to setup a wordpress blog on local machine to customize your blog (look and feel etc) so as to save the time to FTP to a remote location.)

  1. Install Apache server using the command sudo apt-get install apache2
  2. Install PHP with sudo apt-get install php5
  3. Install the MySQL Database  sudo apt-get install mysql-server
  4. Install the PHP module for the Database sudo apt-get install php5-mysql
  5. Download the latest stable version of wordpress from http://wordpress.org/download/
  6. Extract the wordpress tar.gz or zip file to /var/www (using the command tar -C /var/www -zxvf wordpress-2.9.tar.gz)
  7. Create a MySQL database and if needed a new user who has required privileges.
  8. Navigate to /var/www/wordpress and execute the following command cp wp-config-sample.php wp-config.php (You may do this logging in as root user with the command sudo su )
  9. Edit wp-config.php using the command nano wp-config.php (or use any other editor like gedit) and configure the values for Database connection.
  10. Edit /etc/apache2/httpd.conf file to add the following lines. 
    LoadModule php5_module modules/libphp5.so
    AddType application/x-httpd-php  .php .phtml
  11. Restart apache server using the command sudo /etc/init.d/apache2 restart
  12. You can access the blog using http://localhost/wordpress
  • Share/Bookmark
Categories: Installation / Configuration Tags:
  1. No comments yet.
  1. No trackbacks yet.