Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2019/10/21 11:58:18 [error] 47248#47248: *8 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/mysite.com/:/usr/lib/php/:/tmp/) 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: /usr/share/phpmyadmin/index.php (Operation not permitted)" while reading response header from upstream, client: 192.168.125.138, server: www.mysite.com, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "www.mysite.com"
- -------------------------------
- root@ubuntu:/etc/nginx/nginxconfig.io# cat phpmyadmin.conf
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- root /usr/share/;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- }
- location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
- root /usr/share/;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement