Training

When: Every first Sunday of every month -get a ticket- from $15 (Click Here).

Thursday, December 1, 2016

phpMyadmin | ajenti | install

http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.1.7/phpMyadmin.4.1.7-all-languages.tar.bz2



Recently setup phpmyadmin with ajenti/NGINX and documented my steps. Follow these and you shouldn't have any issues:


  • cd /usr/share/
  • wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.1.7/phpMyadmin.4.1.7-all-languages.tar.bz2   or the newest link
  • tar -xvf phpMyAdmin-4.1.7-all-languages.tar.bz2
  • mv phpMyAdmin-4-1-7-all-languages.tar.bz2 phpmyadmin
  • cd /phpmyadmin
  • mv config.sample.inc.php config.inc.php
  • iptables -A INPUT -p tcp -m tcp --dport 8001 -j ACCEPT
  • iptables-save | sudo tee /etc/sysconfig/iptables
  • service iptables restart

Login to Ajenti (Ajenti-V needs to be installed) and create a new website.

  • Set name as phpmyadmin
  • Untick Maintenance mode
  • Set Path to /usr/share/phpmyadmin
  • Under 'ports' add host = * Port = 8001
  • Under 'content' create new PHP FastCGI
Save and test all works correctly at http://yourdomain.com:8001

If you recieve an error 'cannot start session without errors' run: chmod 777 /var/lib/php/session/

No comments: