Page 1 of 1

Fresh install error

Posted: Wed Sep 20, 2017 10:13 pm
by Landmaster
Opencart 3.0.2.0

Attempted a fresh install but got the following error messages when trying the Install:

Warning: fopen(/var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/storage/logs/openbay.log): failed to open stream: Permission denied in /var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/library/log.php on line 22Warning: fopen(/var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/storage/session//sess_d65b4c645c3cb8b9565e03816c): failed to open stream: Permission denied in /var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/library/session/file.php on line 29Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/library/session/file.php on line 31Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/library/session/file.php on line 33Warning: fflush() expects parameter 1 to be resource, boolean given in /var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/library/session/file.php on line 35Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/library/session/file.php on line 37Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vhosts/XXXXXXXX.co.uk/httpdocs/system/library/session/file.php on line 39

Where have I gone wrong?

Re: Fresh install error

Posted: Wed Sep 20, 2017 11:19 pm
by yodapt
Is that an unmanaged VPS?

Re: Fresh install error

Posted: Wed Sep 20, 2017 11:23 pm
by Landmaster
No, it's on a dedicated server. Previous installations have gone fine

Re: Fresh install error

Posted: Thu Sep 21, 2017 12:15 am
by yodapt
How did you install Opencart? Did you upload the files through an FTP client?

Re: Fresh install error

Posted: Thu Sep 21, 2017 3:59 pm
by Landmaster
Yes, via Filezilla

Re: Fresh install error

Posted: Thu Sep 21, 2017 8:44 pm
by yodapt
Then check the folder permissions, it should be 0755.

Re: Fresh install error

Posted: Thu Sep 21, 2017 9:37 pm
by Landmaster
All folder permissions are correct

Re: Fresh install error

Posted: Thu Sep 21, 2017 10:27 pm
by yodapt
Then it's a file ownership problem, which shouldnt happen if you're uploading your files through a FTP client and you're not using a unmanaged VPS (where it's easy to forget about that sort of thing).

Is that path (/var/www/vhosts/XXXXXXXX.co.uk/httpdocs/) the same as opencart root installation?

Re: Fresh install error

Posted: Mon Sep 25, 2017 10:51 pm
by Landmaster
Hi Yodapt

Thanks for all your assistance with this. I started all over again and this time it installed. However, as with another install of 3x, I am getting JSON.parse errors every time I try to refresh SASS or upload a new extension so I am giving up on 3x going and back to 2x which I know works.

Re: Fresh install error

Posted: Fri Sep 29, 2017 12:28 am
by straightlight
This solution may become handy regarding JSON errors with Opencart v3.0.2.0 release: viewtopic.php?f=201&t=191608