(Edited Posted as of 5-4-21) based on my new learning experience and findings.
OK, so I followed this instruction here:
https://computingforgeeks.com/install-a ... n-ubuntu/
Install went mostly smooth, then I had to migrate to PHP 8+
https://websiteforstudents.com/how-to-m ... n-ubuntu/
I then had to edit the opencart.conf again to change the -fpm7.4 to -fpm8.0 references.
I hope this helps someone and it worked for me.
OC version. StackOverFlow request. However, you could also create new service request in the Commercial Support section of the forum to solve this issue professionally.Agent86 wrote: ↑Tue May 04, 2021 9:48 pmOK, so I followed this instruction here:
https://www.osradar.com/how-to-install- ... ntu-20-04/
*note the part that instructs you to create a .conf file is not formatted correctly when copying to your new file creation.
Instructions as noted: sudo nano /etc/nginx/sites-enabled/opencart.conf and refer to the site for instructions.
However, the correctly formatted version should look like this on the instructions located here: scroll down to see the difference between the one "how to" and the other "how to".
https://computingforgeeks.com/install-a ... on-ubuntu/
If you use the first "how to" you will get nginx errors complaining about exit code etc.
If you use the .conf file as showin in the second "how to" this will get you a successful nginix status again.
You can test this by removing the .conf completely and you get nginx success active status, and with the .conf you get nginix errors.
So using the second "how to" that is configured with correct syntax and spacing will work.
NOW this gets you a domain/ip page but you will now get a complain about PHP8+ required. I have no idea why but I used this tutorial to migrate everything to PHP8
https://websiteforstudents.com/how-to-m ... n-ubuntu/
*NOTE that when migrating you will get a complaint about choosing .json or other individual packages separately.
So I ran them like this without complaint like this I don't really know why but this worked for me.This does not solve the PHP8+ required complaint but you now need to edit the .conf file againCode: Select all
sudo apt install php8.0-fpm php8.0-common php8.0-mysql sudo apt install php8.0-gmp php8.0-curl php8.0-mbstring sudo apt install php8.0-json sudo apt install php8.0-xmlrpc php8.0-gd php8.0-xml php8.0-readline php8.0-cli php8.0-zip
Change the 7.4-fpm to 8.0-fmp as shown above.Code: Select all
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/php8.0-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)(/.+)$; } }
Then restart like this:
sudo systemctl restart nginx php8.0-fpm
This got me the successful domain/ip address to opencart with all confirmed checks for all install checks required.
I hope this helps someone
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 6 guests