how to open wordpress localhost
# Windows
Download XAMPP from here https://www.apachefriends.org/index.html
Install in a Drive. Install In C:/ Not Recommanded
After Install open the xampp control panel and start APACHE and MYSQL
In the Xamp Control Panel Click on Explorer. It will take to xampp install folder
Go to htdocs
Make a Folder name it anything I gave name wordpress and go to the folder
Download Wordpress Latest version from wordpress.org
Unzip the files on the folder. After Done
Go to Browser Go to localhost/phpmyadmin
Make a database over there.
For Default Install MYSQL root user will not have any password. If you want to you setup passwrod on it
Now In browser go to http://localhost/wordpress
Fill the information by step by step. Done You have install Wordpress on localhost
# Ubuntu
Open terminal
sudo su #for become root user
apt install apache2
apt install curl
apt install mysql-server
mysql_secure_installation # Follow the Step on there and Setup Mysql Password
apt install php libapache2-mod-php php-mysql
nano /etc/apache2/mods-enabled/dir.conf # In mod_dir.c add index.php default.php home.php over there
apt install php-cli
apt install openssl php-common php-curl php-json php-mbstring php-mysql php-xml php-zip
systemctl enable mysql
systemctl enable apache2
service apache2 restart
apt install zip unzip
apt install phpmyadmin
# Now go to /var/www/
cd /var/www/html
wget https://wordpress.org/latest.zip
unzip latest.zip
cd wordpress
mv * /var/www/html
chown -R $USER:$USER /var/www/html
chmod -R 755 /var/www/html
Now visit the site in Browser localhost/phpmyadmin
Login and Make database user name
Now Visit localhost you will see wordpress setup page follow and setup.
# MAC
Download MAMP or XAMPP in your MAC.
Now follow as windows one.