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.)
- Install Apache server using the command sudo apt-get install apache2
- Install PHP with sudo apt-get install php5
- Install the MySQL Database sudo apt-get install mysql-server
- Install the PHP module for the Database sudo apt-get install php5-mysql
- Download the latest stable version of wordpress from http://wordpress.org/download/
- Extract the wordpress tar.gz or zip file to /var/www (using the command tar -C /var/www -zxvf wordpress-2.9.tar.gz)
- Create a MySQL database and if needed a new user who has required privileges.
- 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 )
- 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.
- Edit /etc/apache2/httpd.conf file to add the following lines.
LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php .phtml
- Restart apache server using the command sudo /etc/init.d/apache2 restart
- You can access the blog using http://localhost/wordpress
Categories: Installation / Configuration