Last active
January 23, 2022 22:11
-
-
Save mcroteau/907c0afeb84b6ef5b5ea662dbcb71298 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. create phpmyadmin.conf | |
vi /etc/apache2/sites-available/phpmyadmin.conf | |
~ | |
Listen 99 | |
<VirtualHost *:99> | |
ServerName localhost | |
<Directory /usr/share/phpmyadmin> | |
AllowOverride None | |
Require all granted | |
</Directory> | |
DocumentRoot /usr/share/phpmyadmin | |
Include /etc/phpmyadmin/apache.conf | |
ErrorLog ${APACHE_LOG_DIR}/phpmyadmin.error.log | |
CustomLog ${APACHE_LOG_DIR}/phpmyadmin.access.log combined | |
</VirtualHost> | |
2. run the commands | |
sudo a2disconf phpmyadmin | |
sudo a2ensite phpmyadmin | |
sudo systemctl restart apache2.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment