Skip to content

Instantly share code, notes, and snippets.

@bcchenbc
Created January 2, 2017 02:58
Show Gist options
  • Save bcchenbc/0f9d675e5205a127833bcc8f076ca5e5 to your computer and use it in GitHub Desktop.
Save bcchenbc/0f9d675e5205a127833bcc8f076ca5e5 to your computer and use it in GitHub Desktop.
# http://tqdev.com/2016-installing-adminer-ubuntu
# http://askubuntu.com/questions/760787/php-rendered-as-text-after-ubuntu-16-04-upgrade
sudo apt install apache2 libapache2-mod-php
sudo a2enmod php7.0
sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo mkdir /usr/share/adminer
sudo wget "http://www.adminer.org/latest.php" -O /usr/share/adminer/latest.php
sudo ln -s /usr/share/adminer/latest.php /usr/share/adminer/adminer.php
echo "Alias /adminer.php /usr/share/adminer/adminer.php" | sudo tee /etc/apache2/conf-available/adminer.conf
sudo a2enconf adminer.conf
sudo service apache2 restart
echo http://$(hostname -I | xargs)/adminer.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment