Page 1 of 1

File ownership and permissions errors

Posted: Wed Feb 24, 2016 8:45 pm
by freshmaker
I'm currently having many problems of ownership on my opencart installation.

Code: Select all

2016-02-23 10:12:37 - PHP Warning:  ftp_put(): Could not create file. in /opt/apache2/htdocs/admin/controller/extension/installer.php on line 345
2016-02-23 19:14:01 - PHP Warning:  mkdir(): Permission denied in /opt/apache2/htdocs/admin/model/module/d_quickcheckout.php on line 851
2016-02-23 19:14:01 - PHP Warning:  ZipArchive::close(): Failure to create temporary file: No such file or directory in /opt/apache2/htdocs/admin/model/module/d_quickcheckout.php on line 874
2016-02-23 19:14:01 - PHP Warning:  rename(/opt/apache2/htdocs/system/storage/download/upload/system/mbooth/xml/mbooth_shopunity.xml,/opt/bitnami/apache2/htdocs/system/mbooth/xml/mbooth_shopunity.xml): Permission denied in /opt/apache2/htdocs/admin/model/module/d_quickcheckout.php on line 907
To make it even work I tried to change permissions but without success, it does not matter if it is 755 or 777, it wasn't working. So I changed the ownership with chown to the ftp login and then I could install by ocmod my extensions by the installer. But now it is with this issues. Anyones know which files should be owned by the apache to run correctly? Which command should I use on ssh?

The files and folders can be owned by two users?

Kind Regards,


Re: File ownership and permissions errors

Posted: Thu Feb 25, 2016 3:03 am
by freshmaker
Solved! The public user wasn't on the group of the new uploaded files.