Subdomain Point to PhpMyadmin Access Site

Category: Linux OS Written by Naldi Hits: 518

* Check Phpmyadmin alias site : 

nano /etc/phpmyadmin/apache.conf

 

* Disable default phpmyadmin site :

a2disconf phpmyadmin


* Edit file /etc/apache2/sites-available/000-default.conf :

<VirtualHost *:80>
    ServerName www.phpmyadmin.e-naldi.com
    ServerAlias phpmyadmin.e-naldi.com
    DocumentRoot /usr/share/phpmyadmin
</VirtualHost>


* Edit file host :

172.16.16.2     www.phpmyadmin.e-naldi.com      phpmyadmin.e-naldi.com


* Test and Finished.