N
N
Nick Bukovskiy2017-03-21 18:19:27
Nginx
Nick Bukovskiy, 2017-03-21 18:19:27

500 Internal Server Error when trying to login to phpmyadmin, how to fix?

I'm using nginx server
I'm trying to install phpmyadmin
I did everything according to the instructions www.2daygeek.com/install-lemp-nginx-mariadb-php-ph... (item 7) but when I try to enter 192.168.56.101/phpMyAdmin - it gives an error 500 Internal Server Error
How do I fix this problem and finally login to phpMyAdmin
My config if needed

server {
  listen                *:80;

  server_name           sg-course.dev;
  client_max_body_size 1m;

  root /var/www/sg-course.dev;
    index  index.html index.htm index.php;

  access_log            /var/log/nginx/_.access.log;
  error_log             /var/log/nginx/_.error.log;
  location / {


    root  /var/www/sg-course.dev;
    try_files $uri $uri/ /index.php;
     autoindex on;


  }

  location ~ \.php$ {
    root  /var/www/sg-course.dev;
    fastcgi_index index.php;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    try_files $uri $uri/ /index.php$is_args$args;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass 127.0.0.1:9000;

    fastcgi_param SCRIPT_FILENAME $request_filename;
    fastcgi_param APP_ENV dev;

  }
  sendfile off;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question