Installing WordPress using XAMPP on ubuntu 10.04

So lately I was running ubuntu 10.04 (Lucid Lynx) on Windows 7 32-bit using VirtualBox. Oh, if you’re new to ubuntu or want to start using ubuntu linux, there is a new version of ubuntu 10.10 that was about released yesterday, and I want it now. Here is the story, I want to try to create a wordpress site on my local computer, so I need to install apache web server and mysql first. There are several apache and mysql software bundles, I choose lampp for linux (or xampp for windows I was using in the past). What I need is to get lampp on http://www.apachefriends.org/en/xampp-linux.html and the latest stable release of WordPress on http://wordpress.org/download/.

After all needed files have been downloaded, next is to install. First install lampp as instructed from the site on /opt/ directory, So I just run a command in a terminal using:

sudo tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt

I was asked to type in a password.
Note: there is no ‘root’ user on ubuntu, so make sure if you are using user that have enough privilege to do this.

Next is to extract wordpress to current directory using command:

sudo tar xvfz latest.tar.gz

Then move the folder to htdocs with:

sudo mv wordpress /opt/lampp/htdocs

Now let’s get lampp started!

sudo /opt/lampp/lampp start

wait until “XAMPP for Linux started.” message is appeared. If you doing it right try open http://localhost/ , an xampp language selection page will be showed.

Okay now to install wordpress, but before that I suggest you to create a database for wordpress in mysql. In a browser go to url:

http://localhost/phpmyadmin

I named it ‘wordpress’, then go to:

http://localhost/wordpress

just follow the instructions…
in mysql user and password, type ‘root’ as user and leave password blank.

but oops, there was a problem:

Sorry, but I can’t write the wp-config.php file.

You can create the wp-config.php manually and paste the following text into it.

Don’t worry, we will fix it in time. Just navigate back to previous page by clicking back button in browser or Alt+Left-Arrow.

So we need to change wordpress folder permission with:

sudo chmod 777 -R /opt/lampp/htdocs/wordpress

then..

All right sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to… RUN THE INSTALL

Set your blog title and admin. Say hello to our new wordpress!

Happy blogging! =D

Advertisement

5 thoughts on “Installing WordPress using XAMPP on ubuntu 10.04

  1. sir after getting this All right sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…

    Run the install

    after clicking the run install button it shows
    Error establishing a database connection

    what do think is the problem with my installation, i followed the instructions well i thought it would be done but doesnt work.. can you please help me?? thanks

    • Hello john, thanks for visitting!
      Have you found a solution? I think the problem is in your wordpress database setting. Are you using importing your past wordpress database or new database? If you create new database, I guess there will be such a hassle :) .

      But if you’re importing a wordpress database, make sure you change some value in wp_options table.
      Open your phpmyadmin (or other similar application) and select your database name (example:’new_wordpress_db’). Find option value ‘siteurl’ in ‘option_name’ field, change the ‘option_value’ to your wordpress url (example:’http://your_old_host/old_wordpress_address‘ to ‘http://your_new_host/new_wordpress_address‘) and do the same thing with ‘home’ ‘option_name’ in the same table.

      Hope it helps, later ;)

  2. Excellent job jedot. I have gone through each steps and you made is very clear and simple. Great and congrats.

    Thank you for such article.

    Regards,
    Ravi Lodhiya

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 )

Connecting to %s