ajenti-v
ajenti-v copied to clipboard
Install phpmyadmin as a website
always show Access denied. The nginx error log is "Access to the script '/srv/phpMyAdmin' has been denied (see security.limit_extensions) ... ". OS: Ubuntu16.04 / php7.0-fpm. Can someone give me help?
Not sure, have you check your php config? https://www.digitalocean.com/community/questions/php-fpm-security-limit_extension-issue
Check /etc/php/7.0/fpm/pool.d/ for the conf file. I have my limit_extensions in the main www.conf commented out: ; prevent configuration mistakes on the web server side. You should only limit ;security.limit_extensions = .php .php3 .php4 .php5 .php7
It might not be liking the .phtml file in phpmyadmin or something.
You have to set up a PHP 7.0 FastCGI in content with defaults in "Websites". And just like any other site you specify the port & ssl. Phpmyadmin config.inc.php file needs line $cfg['ForceSSL'] = true;
at the bottom if you use a certificate (which you should).
Download PhpMyAdmin using the downloader. Then set up PHP 7.0 or PHP 7.1 Fast CGI for Content.Then change the port to any port you may like to access PHPMyAdmin from. That's all to it