Install WordPress on Linux Using XAMPP Server

We, earlier discussed about installing WordPress using WAMP server on windows. But what if you’re running Linux operating system on your computer? Don’t worry! With XAMPP server, you can install WordPress on a Linux based computer without any problem.

XAMPP WordPress Installation LInux

How to Install WordPress on Linux using XAMPP?

  1. Download XAMPP server to your computer.
  2. Extract it to /opt folder in your system. To do so, go to terminal and type the below command.

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

  3. Once the folder extracts into your system, the local server should start working. To test it, type the below command in the terminal.

    sudo /opt/lampp/lampp start

  4. And now, type the URL in your browser – http://localhost/ and check whether a welcome message is being displayed.
  5. If Yes, you’ve done everything perfectly and you can proceed to the next steps. Else, make sure you followed the above steps without any diversions.
  6. Now you’ve the XAMPP installed on your computer. Next, download the latest WordPress build from WordPress.Org.
  7. Extract the download ZIP file into /opt/lamp/htdocs/ folder.
  8. Next, create a database for your WordPress site – http://localhost/phpmyadmin
    Create a Database
  9. Remember to change the file permissions of your wp-config.php to avoid extra work. Type the following command to give it read-write permissions.

    sudo chmod a+rw /opt/lampp/htdocs/wordpress/ -R

  10. Now, navigate to the WordPress installation – http://localhost/wordpress/ and provide the following information.
    • Database Name: test (name that you’ve given for your database in step 8)
    • Username: root (default)
    • Password: blank (can be left empty)
    • Database Host: localhost
    • Table Prefix: wp_

    WordPress Installation in Linux

  11. In the next step, provide the username and other necessary information and access your WordPress blog.

Isn’t it easy? Although installing WordPress is different from Windows to Linux, administering the WP dashboard is the same.

Happy Blogging 🙂

1 Comment

Leave a Reply

Your email address will not be published.


*


Unable to load the Are You a Human PlayThru™. Please contact the site owner to report the problem.