How to Install and create a WordPress website in Linux computer?
How to Install XAMPP server in Linux?
• How to install XAMPP server in Linux Lubuntu
Steps to create a WordPress website locally using XAMPP in Linux.
Open Terminal and type
cd /opt/lampp/htdocs
Download WordPress
sudo wget https://wordpress.org/latest.tar.gz
Extract WordPress files from tar.gz:
tar xvzf latest.tar.gz
Go to WordPress Directory with:
cd wordpress
Rename wp-config:
sudo mv wp-config-sample.php wp-config.php
Create a database http://localhost/phpmyadmin/ and add info in wp-config.php
Open wp-config.php file in NANO text editor. Press Ctrl+P and hit enter to save changes and Ctrl+X to exit from the nano editor.
sudo nano wp-config.php
go to localhost/wordpress and complete installation
Fix To perform the requested action, WordPress needs to access your web server Error: Add this to wp-config.php
define('FS_METHOD' , 'direct');
Restart Xampp Server with the following command
sudo /opt/lampp/xampp restart
Also run this command to fix Installation failed. Could not create directory:
sudo chmod 777 -R wp-content
Clear All