Install phpMyAdmin for Apache on Arch Linux so that it would open under "pma.localhost". This works on other distributions as well just use your specific package manager to download the packages and the configuration files paths may vary.
Install necessary packages
Install the phpmyadmin and php-mcrypt packages from the official repositories.Source code viewer
yaourt -S php-mcrypt phpmyadminProgramming Language: Bash
Create phpmyadmin conf file for mysql
Source code viewer
vim /etc/httpd/conf/extra/httpd-phpmyadmin.confProgramming Language: Bash
Source code viewer
<VirtualHost pma.localhost:80> ServerAdmin phpmyadmin@apache.com DocumentRoot "/usr/share/webapps/phpMyAdmin" ServerName pma.localhost ServerAlias pma.localhost ErrorLog "/var/log/httpd/pma.localhost-error_log" <Directory "/usr/share/webapps/phpMyAdmin"> DirectoryIndex index.html index.php AllowOverride All Options FollowSymlinks Require all granted </Directory> </VirtualHost>Programming Language: Apache configuration
Add reference to the conf file to Apache conf
Source code viewer
vim /etc/httpd/conf/httpd.confProgramming Language: Bash
Source code viewer
# phpMyAdmin configuration Include conf/extra/httpd-phpmyadmin.confProgramming Language: INI
For further information: Official wiki page about PHPMyAdmin.