Hi,
I’m trying to set up CS Cart 4.x in NGINX. So far no success.
I’m having the following PHP error :
“PHP message: PHP Fatal error: Class ‘Tygh\Bootstrap’ not found in /path/to/webstore/init.php on line 25”
Any clue?
Here’s my vhost file :
<br />
server {<br />
listen 80;<br />
server_name cscartstore.ddd *.cscartstore.ddd;<br />
root /srv/www/cscartstore.ddd;<br />
index index.php;<br />
charset UTF-8;<br />
gzip on;<br />
gzip_http_version 1.1;<br />
gzip_vary on;<br />
gzip_comp_level 6;<br />
gzip_proxied any;<br />
gzip_types text/plain text/xml text/css application/x-javascript;<br />
access_log /var/log/nginx/cscartstore.ddd.access.log;<br />
error_log /var/log/nginx/cscartstore.ddd.error.log;<br />
location = /favicon.ico {<br />
log_not_found off;<br />
access_log off;<br />
}<br />
location = /robots.txt {<br />
allow all;<br />
log_not_found off;<br />
access_log off;<br />
}<br />
location ~ /\.svn/* {<br />
deny all;<br />
}<br />
location ~ /\.git/* {<br />
deny all;<br />
}<br />
location /nginx_status {<br />
stub_status on;<br />
access_log off;<br />
}<br />
location / {<br />
try_files $uri $uri/ /index.php?q=$uri&$args;<br />
}<br />
location ~ \.php$ {<br />
fastcgi_pass unix:/var/run/php5-fpm.sock;<br />
fastcgi_index index.php;<br />
fastcgi_param SCRIPT_FILENAME /srv/www/cscartstore.ddd$fastcgi_script_name;<br />
fastcgi_intercept_errors on;<br />
include fastcgi_params;<br />
}<br />
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {<br />
expires max;<br />
log_not_found off;<br />
}<br />
location ~ ^/(status|ping)$ {<br />
include /etc/nginx/fastcgi_params;<br />
fastcgi_pass unix:/var/run/php5-fpm.sock;<br />
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;<br />
allow 127.0.0.1;<br />
deny all;<br />
}<br />
}<br />
```<br />
<br />
Thanks