500 Internal Server Error nginx/1.6.2

Discussion in 'Installation/Configuration' started by freddie R, Mar 1, 2017.

  1. freddie R

    freddie R New Member

    l ma getting this error on a wordpres website running with nginx l am using

    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/php5-fpm.sock;
    fastcgi_param HTTPS on; # <-- add this line
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $request_filename;
    include /etc/nginx/fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 256 4k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    fastcgi_intercept_errors on;
    }
    location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
    root /usr/share/;
    }
    }
    location /phpMyAdmin {
    rewrite ^/* /phpmyadmin last;
    }

    location / {
    try_files $uri $uri/ /index.php?q=$uri$args;
    }
    This code is in the nginx Directives: please Help
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Try to remove all phpmyadmin block and see how it goes. Keep the last code that I suggested earlier.
     
  3. freddie R

    freddie R New Member

    can you provide me with the correct code. also l am using FPM as the php
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

     

Share This Page