1. Login using Putty into the server: https://clients.activeservers.in/knowledgebase/257/How-to-Connect-to-a-Linux-Server-Using-PuTTY-Step-by-Step-Guide.html
2. Update Your System:
- Before installing any software, update your package list:
sudo yum update –y
3. Install Apache, MySQL, and PHP (LAMP Stack):
- If you don’t have a LAMP stack installed, you can check the previous blogs to install apache: https://clients.activeservers.in/knowledgebase/283/How-to-Install-Apache-in-Linux-Server.html
- Install MySQL: https://clients.activeservers.in/knowledgebase/286/How-to-Install-MySQL-Database-on-a-Linux-Server.html
4. Install phpMyAdmin:
- First install EPEL repository:
sudo yum install epel-release –y
- Then, install PhpMyAdmin:
sudo yum install phpmyadmin –y
5. Configure Apache:
- Edit the configuration file:
sudo nano /etc/httpd/conf.d/phpMyAdmin.conf
- Find the lines: Require all denied replace with Require all granted
- Then restart Apache:
sudo systemctl restart httpd
(If you find any kind of error in restarting the apache then kindly check the config file for syntax error or run:sudo apachectl configtest
to look for specific error)
6. Access phpMyAdmin:
- Open your browser and visit:
http://your-server-ip/phpmyadmin
- Login with:
Username: root
Password: (your MySQL root password)