SHARE
TWEET

Untitled

a guest Oct 21st, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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
  2. PHP message: PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
  3. 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"
  4.  
  5. -------------------------------
  6.  
  7.  
  8. root@ubuntu:/etc/nginx/nginxconfig.io# cat phpmyadmin.conf
  9. location /phpmyadmin {
  10.     root /usr/share/;
  11.     index index.php index.html index.htm;
  12.     location ~ ^/phpmyadmin/(.+\.php)$ {
  13.         try_files $uri =404;
  14.         root /usr/share/;
  15.         fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  16.         fastcgi_index index.php;
  17.         fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  18.         include /etc/nginx/fastcgi_params;
  19.     }
  20.  
  21.     location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  22.         root /usr/share/;
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top