- Автор темы
- #1
собственно у кого есть работающий просьба поделиться, у меня пока не получается
заведомо для папок и файлов поставил полные права 777
конфиги
/etc/nginx/sites-available/site.conf
/etc/nginx/conf.d/php.conf
/etc/nginx/nginx.conf
для Image CMS такие конфиги работают, OpenCart выдает No input file specified.
/var/log/nginx/opencart/error.log
/var/log/nginx/ocmaster/error.log
google не проливает свет на проблему, рекомендуемые конфиги никса для OpenCart дают 404 Not Found.
заведомо для папок и файлов поставил полные права 777
конфиги
/etc/nginx/sites-available/site.conf
Код:
server {
listen 80;
server_name opencart.ru www.opencart.ru;
error_log /var/log/nginx/opencart/error.log;
charset utf-8;
autoindex off;
root /home/archie/www/opencart.ru;
include /etc/nginx/conf.d/*.conf;
}
Код:
location ~ \.php$ {
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
location / {
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?q=$1 last;
}
}
Код:
#user http;
worker_processes 1;
timer_resolution 100ms;
worker_rlimit_nofile 8192;
worker_priority -5;
error_log /var/log/nginx/error.log;
#pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
sendfile on;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_min_length 1100;
#gzip_disable "msie6"; #Быстрее, но работает только на новых версиях nginx
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_comp_level 4;
gzip_types text/plain text/css text/javascript application/x-javascript text/xml application/xml application/xml+rss
gzip_vary on;
index index.htm index.html index.php;
include /etc/nginx/sites-enabled/*;
}
/var/log/nginx/opencart/error.log
Код:
2014/04/04 13:24:55 [error] 8443#0: *1 FastCGI sent in stderr: "Unable to open primary script: /home/archie/www/opencart.ru/index.php (No such file or directory)" while reading response header from upstream, client: 127.0.0.1, server: opencart.ru, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "opencart.ru"
2014/04/04 13:31:00 [error] 8542#0: *5 FastCGI sent in stderr: "Unable to open primary script: /home/archie/www/opencart.ru/index.php (No such file or directory)" while reading response header from upstream, client: 127.0.0.1, server: opencart.ru, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "opencart.ru"
Код:
2014/04/04 13:29:29 [error] 8443#0: *3 FastCGI sent in stderr: "Unable to open primary script: /home/archie/www/ocmaster.ru/index.php (No such file or directory)" while reading response header from upstream, client: 127.0.0.1, server: ocmaster.ru, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "ocmaster.ru"
2014/04/04 13:29:57 [error] 8542#0: *1 FastCGI sent in stderr: "Unable to open primary script: /home/archie/www/ocmaster.ru/index.php (No such file or directory)" while reading response header from upstream, client: 127.0.0.1, server: ocmaster.ru, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "ocmaster.ru"