P
P
pegas2019-09-07 12:55:21
Nginx
pegas, 2019-09-07 12:55:21

Why is openCart not installed?

When installing ocStore at step 3/4, when I connect the database (I set the host "127.0.0.1", name, password, database name, etc.), I click continue and HTTP ERROR 500 pops up. At the same time, records and tables were created in the database.
Server using nginx + php-fpm. Here if that config:

server {
    listen       82;
    server_name  test.ru;
    client_max_body_size 20M;
    root   /Users/artemerbulatov/Sites/test;
    index index.php index.html;

    location ~* \/\.ht {
      deny all;
    }

    location ~* (\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt) {
      deny all;
    }

    location ~* \/\.git {
      deny all;
    }

    location ~* \/image.+(\.php) {
      deny all;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
      expires max;
      log_not_found off;
    }

    location = /sitemap.xml {
      rewrite ^(.*)$ /index.php?route=extension/feed/google_sitemap last;
    }

    location = /googlebase.xml {
        rewrite ^(.*)$ /index.php?route=extension/feed/google_base last;
    }

    location /system {
        rewrite ^/system/storage/(.*) /index.php?route=error/not_found last;
    }

    location = /favicon.ico {
      log_not_found off;
      access_log off;
    }

    location = /robots.txt {
      allow all;
      log_not_found off;
      access_log off;
    }

    location /admin { index index.php; }

    location / {
      try_files $uri @opencart;
    }

    location @opencart {
      rewrite ^/(.+)$ /index.php?_route_=$1 last;
    }

    location ~ \.php$ {
      try_files $uri = 404;

      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      fastcgi_pass   127.0.0.1:9004;
      fastcgi_buffers 16 16k;
      fastcgi_buffer_size 32k;
      fastcgi_index index.php;

      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2019-09-07
@kevin

Error either in the script or in .htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question