How to install PhpMyAdmin on Linux using Source Code

Step 1 – Download phpMyAdmin Archive

Download phpMyAdmin source code from click here to download and extract the downloaded archive

# cd /usr/share

# wget https://files.phpmyadmin.net/phpMyAdmin/5.1.1/phpMyAdmin-5.1.1-all-languages.zip

# unzip phpMyAdmin-5.1.1-all-languages.zip

# mv phpMyAdmin-5.1.1-all-language phpmyadmin

Give permission and ownership on phpmyadmin folder

For Debian based system

# chown -R www-data:www-data /usr/share/phpmyadmin

# chmod -R 755 /usr/share/phpmyadmin

For Redhat based system

# chown -R apache:apache /usr/share/phpmyadmin

# chmod -R 755 /usr/share/phpmyadmin

Step 2 – Setup Apache for phpMyAdmin

Create a new Apache configuration file for phpMyAdmin

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory "/usr/share/phpmyadmin">
Require all granted
</Directory>

Step 3 – Restart Apache Service

For Debian based system

# systemctl restart apache2

For Redhat based system

# systemctl restart httpd

Step 4 – Access phpMyAdmin from browser

Access phpmyadmin from browser using below URL

URL:- http://domain.com/phpmyadmin/
Leave a Reply 0

Your email address will not be published. Required fields are marked *