Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 80 forks source link

Install phpmyadmin as a website #240

Open xralphack opened 7 years ago

xralphack commented 7 years ago

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?

noogen commented 7 years ago

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.

wrrr commented 7 years ago

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).

Sithira commented 6 years ago

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