Post by Agent86 » Tue May 04, 2021 9:45 am

I followed an online installation instruction and have gotten almost to the end where I am instructed to create a file as follows:

Code: Select all

sudo nano /etc/nginx/sites-enabled/opencart.conf

Code: Select all

This the following text: 
server {
listen 80 default_server;
listen [::]:80 default_server
server_name example.com;
root /var/www/html/commerce/opencart/upload;
index index.php index.htm index.html;
location / { try_files $uri $uri/ /index.php?$args;
 }
 location ~ .php$ {
 fastcgi_pass unix:/run/php/php7.4-fpm.sock;
 fastcgi_index index.php;
 fastcgi_read_timeout 240; 
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 include fastcgi_params; 
fastcgi_split_path_info ^(.+.php)(/.+)$; 
}
}
Doing so causes nginx to throw errors.

I don't see in any documentation here where such a file is needed to be created ?
What is my requirements for such a .config file and what might be throwing these errors.

Please advise
Thanks

Attachments

Screenshot (62).png

Screenshot (62).png (164.95 KiB) Viewed 182 times


Newbie

Posts

Joined
Tue May 04, 2021 9:24 am

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Agent86 » Wed May 05, 2021 3:08 am

thanks I didn't use example.com but used FQDN

I actually figured out the problem is was an incorrectly formatted text braces when pasting from the web to the editor.
Thanks

Newbie

Posts

Joined
Tue May 04, 2021 9:24 am
Who is online

Users browsing this forum: No registered users and 14 guests