Skip to content

Instantly share code, notes, and snippets.

@mcroteau
Last active January 23, 2022 22:11
Show Gist options
  • Save mcroteau/907c0afeb84b6ef5b5ea662dbcb71298 to your computer and use it in GitHub Desktop.
Save mcroteau/907c0afeb84b6ef5b5ea662dbcb71298 to your computer and use it in GitHub Desktop.
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