How To Install WordPress With Xampp On The Latest Ubuntu/Linux 2022

colored WordPress

The Previous Article l Discussed How to Install Xampp On The Latest Ubuntu/Linux 2022 Now We Discussed How To Install WordPress with Xampp On The Latest Linux/Ubuntu. First turn off your Apache service on Linux/Ubuntu so that it Doesn’t conflict, open terminal/Consule type sudo systemctl stop apache2, Then open Xampp via the application menu or via terminal/consule (sudo /opt/lampp/lampp start).
Select Manage Server click Start All.

Install WordPress With Xampp
Install WordPress With Xampp

Ok Until here Xampp is Already active, next your Download the latest WordPress on the official website to start installing WordPress with Xampp https://wordpress.org/download/. Type in consule/terminal by command wget https://wordpress.org/latest.zip. Go to the WordPress folder that was downloaded earlier  , For Example, my Download Folder automatically goes to the Download Directory, type cd Downloads in consule/terminal then extract file unzip by command unzip.latest.zip.
If download using wget, the wordpress folder is in the home directory usually then extract it.

       Note… equate your wordpress file name or rename the wordpress file like the file name above so it doesn’t fail when extracting.

Then move the extracted result to the existing xamp directory at /opt/lampp/htdocs/  by sudo mv wordpress /opt/lampp/htdocs/
or directly log in as root and move it to the lampp directory (filesystem+opt+lampp+htdocs). Explanation of copy as root clay in the previous article.

  1. We Prepare the database by clicking phpmyadmin in the Xampp menu or typen ip address:81/phpmyadmin/ in browser (in :81 because i change port Xampp from 80 to 81)
  2. In Phpmyadmin select database then Create Database, for example, we make database  name wordpress
    Install WordPress With Xampp
    Install WordPress With Xampp

    Install WordPress With Xampp
    Install WordPress With Xampp
  3. Type Ip Address in localhost/wordpress/ on the Browser, if this looks like the wp-config has been read. Continue installation.

    Install WordPress With Xampp
    Install WordPress With Xampp

4. This is the most important process, don’t wrong enter database name that was created in phpmyadmin!! If Your Forget the name of database created in phpmyadmin go back to step no 2.
Screenshot 2021 12 18 03 19 23
Basis Database Name fill in the name of the Database that your created in phpmyadmin
Username Change root
Password Blank (don’t fill in)
Database Host fill localhost
Prefiks Tabel don’t change

If WordPress can not enter wp-login and wp-config.php error as shown below ;

Screenshot 2021 12 18 03 28 15Screenshot 2021 12 18 03 51 01

  1. Don’t panic, we just change the name of wp-sample-config.php to wp-config.php
  2. Go to the Xampp directory as root user, don’t forget (file system cd /opt/lampp/htdocs/wordpress then go to wp-sample-config.php or type your terminal/consule ;

sudo nano /opt/lampp/htdocs/wordpress/wp-config-sample.php

  • define( ‘DB_NAME’, ‘wordpress’ ); (Adjust to step no 4) field with name phpmyadmin database
  • define( ‘DB_USER’, ‘root’ ); (Adjust to step no 4) or fill  root
  • define( ‘DB_PASSWORD’, ” );(Adjust to step no 4) Delete password_here
  • define( ‘DB_HOST’, ‘localhost’ ); (Adjust to step no 4) or fill localhost

Screenshot 2021 12 18 03 53 52Next rename wp-config-sample.php to wp-config.php by right clicking open to as root user then rename the file wp-config-sample.php to wp-config.php, or using terminal/consule sudo mv wp-config-sample.php wp-config.php

Screenshot 2021 12 18 03 36 41Screenshot 2021 12 18 03 44 25Go back to the installation browser run the install.

Screenshot 2021 12 18 03 55 31

Site Title fill free Content User Name Free Content Email enter Your Valid Email

Screenshot 2021 12 18 04 42 20

And Finally WordPress is ready to use.

NOTE******** Be Careful when running Commands if there is only one command such as missing letters, numbers, or spaces. Linux system will error, So read this tutorial carefully.

Hopefully how To Install WordPress with xampp On the Latest Linux/Ubuntu 2022 can be useful for all of your friends and sorry if there are sentences/words that are difficult to understand because this my second article.

https://coblong.com

About the author

I Like Linux Although Sometimes it's Hard I Believe I Can, I Definitely Can and I Should be Able to. I Also Loves Websites, Php, Python and All About Linux.

2 thoughts on “How To Install WordPress With Xampp On The Latest Ubuntu/Linux 2022”

Leave a Comment