Page 1 of 1

Install problem

Posted: Mon Jun 09, 2025 8:51 am
by Joe1234
I'm having an issue with installing opencart 3.0.4.0 and 3.0.4.1. It's on the same server as my other OC installations which are 3.0.4.0. The only difference here is that I'm installing this in public_html, where the others are installed on their own directories on the same dir level. The files are not corrupted because I'm using the same download I used for the others, permissions are all 755 for the dir, and 644 for the files. Config files are 777.
On first attempt to go to the site to install I get error:

Code: Select all

Notice: Error: Could not load template common/footer! in /..../public_html/system/library/template/twig.php on line 37Warning: fopen(/..../public_html/system/storage/session/sess_c19653d729f97ca2d0f55c4e52): Failed to open stream: Permission denied in /..../public_html/system/library/session/file.php on line 29
After changing that dir permission to 777 I get error:

Code: Select all

Notice: Error: Could not load template common/footer! in /..../public_html/system/library/template/twig.php on line 37
The file is there, permission is what it should be. I tried installing this the same way I've always done it, and I also followed the installation instructions exactly as the OC install video shows. What other info do you need? What can the issue be? Thanks.

Re: Install problem

Posted: Mon Jun 09, 2025 4:33 pm
by ADD Creative
Could it be an ownership issue?

Re: Install problem

Posted: Mon Jun 09, 2025 6:01 pm
by paulfeakins
Joe1234 wrote:
Mon Jun 09, 2025 8:51 am
After changing that dir permission to 777 I get error:
Don't ever do this on a webserver.

Re: Install problem

Posted: Mon Jun 09, 2025 10:02 pm
by JazzBlueRT
Joe1234 wrote:
Mon Jun 09, 2025 8:51 am
I'm having an issue with installing opencart 3.0.4.0 and 3.0.4.1. It's on the same server as my other OC installations which are 3.0.4.0. The only difference here is that I'm installing this in public_html, where the others are installed on their own directories on the same dir level. The files are not corrupted because I'm using the same download I used for the others, permissions are all 755 for the dir, and 644 for the files. Config files are 777.
On first attempt to go to the site to install I get error:

Code: Select all

Notice: Error: Could not load template common/footer! in /..../public_html/system/library/template/twig.php on line 37Warning: fopen(/..../public_html/system/storage/session/sess_c19653d729f97ca2d0f55c4e52): Failed to open stream: Permission denied in /..../public_html/system/library/session/file.php on line 29
After changing that dir permission to 777 I get error:

Code: Select all

Notice: Error: Could not load template common/footer! in /..../public_html/system/library/template/twig.php on line 37
The file is there, permission is what it should be. I tried installing this the same way I've always done it, and I also followed the installation instructions exactly as the OC install video shows. What other info do you need? What can the issue be? Thanks.
The OS cannot find the path, changing permission will not help and never set your permission to 777

public_html is most likely under the user hierarchy and depending on server config, the HTTPD or Nginx user has no permissions. Why would you put this new site in the public_html directory? Your sites should be under /var/www/vhosts or similar eg:

/var/www/vhosts/site1
/var/www/vhosts/site2
/var/www/vhosts/site3

And storage should be:
/var/www/vhosts/storage/site1
/var/www/vhosts/storage/site2
/var/www/vhosts/storage/site3


Where /var/www/vhosts/* is owned by the HTTP or Nginx process with appropriate file permissions