Answer the question
In order to leave comments, you need to log in
How to resolve "input file specifed" error when using phpmyadmin with php-fpm in a chroot environment?
Good afternoon.
php7fpm + nginx via socket.
the php config is standard, the pool config too, the chroot is configured in the site folder and is designated as - /
the index.php of the site itself is running normally. getcwd() returns - /
current nginx config -
....
root /var/www;
location /pma
{
alias /var/www/phpmyadmin; #/usr/share/phpnyadmin тоже использовался#
location ~ \.php$
{
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
#так же были использованны -
#fastcgi_param SCRIPT_FILENAME /phpMyAdmin/$1;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param DOCUMENT_ROOT /var/www/phpMyAdmin/;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$
{
access_log off;
log_not_found off;
expires 1d;
}
}
....
PHP Warning: require_once(./libraries/String.class.php): failed to open stream: No such file or directory in /var/www/phpmyadmin/libraries/common.inc.php on line 58
PHP Fatal error: require_once(): Failed opening required './libraries/String.class.php' (include_path='.:/usr/share/php') in /var/www/phpmyadmin/libraries/common.inc.php on line 58
2017/05/13 18:42:21 [error] 1516#1516: *3 FastCGI sent in stderr: "Unable to open primary script: /var/www/phpmyadmin/index.php (No such file or directory)" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: localhost, request: "GET /pma/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "anyhost"
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