Answer the question
In order to leave comments, you need to log in
How to properly configure access to phpmyadmin (nginx+php-fpm)?
Hello.
Server on Ubuntu. Hosts are configured on nginx + php7.2-fpm I configured the domain, forwarded the symlink
sudo ln -s /usr/share/phpmyadmin /var/www/8991.ru/
to the directory with the site
When switching to 8991.ru, it gives php, but when switching on 8991.ru/phpmyadmin error "No input file specified".
The logs also show a problem with permissions:
[email protected]:~$ sudo cat /var/log/nginx/error.log
2020/02/29 07:08:55 [error] 5202#5202: *131 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/var/www/) in Unknown on line 0
PHP message: PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
Unable to open primary script: /var/www/8991.ru/public_html/phpmyadmin/index.php (Operation not permitted)" while reading response header from upstream, client: 90.189.152.143, server: 8991.ru, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "8991.ru"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question