I have a problem. I install phpmyadmin and I can access it from mydomain.com/phpmyadmin.
Althought it’s OK, I want to access it from other port, like mydomain.com:9999/phpmyadmin.
How should I do? Help me! Thanks a lot!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
1.remove symlink to phpmyadmin.conf file
make apache listen on port 81
sudo nano /etc/apache2/ports.conf
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
3.Now create the vHost:
sudo vi /etc/apache2/sites-available/phpmyadmin
4.Enable the vHost
sudo a2ensite phpmyadmin
5.restart the Apache
sudo service apache2 restart
Create a symlink to the phpmyadmin directoy:
sudo ln -s /usr/share/phpmyadmin/
phpMyAdmin is a web application, not a daemon. You will have to make your webserver listen on that port and then edit your vhosts so only that port has access to phpMyAdmin.