View Single Post
Old 05-23-2019, 02:02 AM
Triple A Racing Triple A Racing is offline

Join Date: Jul 2008
Location: Manchester UK
Posts: 1,028

Default Re: X-Cart 5.4.0 Public Beta is out

Nginx - Please read these previous posts in this thread first: Post#5 & Post#6 & Post#7

After trying the XC Apache based release first, we changed the domain that the dev store is running on, to be pure Nginx 1.14.2 OS, with no Apache OS at all and then applied the Nginx coding (the with web directory version) that's provided by XC within the supplied "nginx.conf.sample" config file. Observations / issues:

a) Initially, this would not run at all. In our case, this section was the reason:
location ~ \.php$ { try_files $uri = 404; fastcgi_pass fastcgi_xcart; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_read_timeout 300s; fastcgi_connect_timeout 300s; }
specifically, the fastcgi_pass fastcgi_xcart; line.
We amended this to: fastcgi_pass unix:/run/php/php-fpm.sock; and then it did run and things improved.
For reference, we're using PHP 7.3.5 and running this via 'FPM application served by Nginx'.

The results so far are as follows:

a) We can display and login to the admin back ('admin.php' within the url) & it and works well.
b) Until... items which have 'service.php' within the url are called, in which case nothing happens at all and nothing works. Nothing.
c) This may / may not be related to the irksome "Trial Has Expired" mentioned in the previous post. Please advise XC? If it is, then....

d) We can display the store's home page c/w all graphics / menus / link etc but...
e) No other pages can be displayed. A 404 Nginx error page is provided as a result of utilizing any menu or product links.
f) This time, this is definitely not related to any irksome "Trial Has Expired" coding.
g) This is the XC provided Nginx coding being mis-configued, either, by XC by default, or, as part of the applied setup on our sever.

Our previous comment in Post#19 "...we still think this is just a stick-on Nginx 'plaster' as opposed to being a pure, well designed Nginx only version of XC5 ..." still applies.
Dev Store & Live Store XC Business
Server; Ubuntu 22.04.2 LTS (HWE Kernel)) / Plesk Obsidian
Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33
Reply With Quote