Skip to content

Instantly share code, notes, and snippets.

@mosufy
Last active August 29, 2015 14:06
Show Gist options
  • Save mosufy/6ea2b7c5d0dfa84e2dbb to your computer and use it in GitHub Desktop.
Save mosufy/6ea2b7c5d0dfa84e2dbb to your computer and use it in GitHub Desktop.
phpMyAdmin Installation Guide on LEMP Stack

phpMyAdmin Installation Guide (LEMP)

phpMyAdmin provides a popular an easy to use open-source MySQL management GUI.

  1. Install phpMyAdmin

     $ sudo apt-get update
     $ sudo apt-get install phpmyadmin
    

When prompted for server type, hit tab and choose neither one. When prompoted for database configuration, select dbconfig-common 2. Create symbolic link and restart nginx

    $ sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/www/phpmyadmin
  1. Enable mcrypt on PHP module

     $ sudo php5enmod mcrypt
     $ sudo service php5-fpm restart
     $ sudo service nginx restart
    
  2. You should be able to access phpmyadmin via domain_name_or_ip/phpmyadmin

Disclaimer: Take note that it is not advisable to expose phpmyadmin to the public view as this would be the perfect place for attacks to take place to compromise our database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment