Page 1 of 1

New Installation Permission Errors on CentOS

Posted: 10 Apr 2015, 22:41
by Matt
Hi All,

I've ran opencats on windows and ubuntu (both 0.9.1) environment for almost 2 years now, with the installations going smoothy.

Right now, I'm currently trying out CentOS for a 0.9.2 installation, and was surprised to get this error message during the Installation Wizard:

Directory ./attachments/ is not writeable (permissions: 0770).
Creating a file within ./attachments/failed. Check your permissions.
Directories cannot be created inside ./attachments//.
Configuration file ./config.php is not writable!
Please check your permissions and try again.
Creating a file within ./ failed!
Please check your permissions and try again.

Linux is something new to me, and the extent of my knowledge only goes so far as what I learned with Ubuntu. I.e. the user on Ubuntu is www-data, instead of apache.

the cats folder is saved on /var/www/html/

I've followed the instructions on the main site:
Code: Select all
chown apache:apache cats
chown -R apache:apache cats-x.x.x/
chmod 770 cats/attachments
any help would be appreciated!

Re: New Installation Permission Errors on CentOS

Posted: 11 Apr 2015, 01:15
by cats1000
I haven't done the install on CentOS before; however you may just need to do a:
chmod +777 config.php

If you are just testing do a:
chmod -R +777 /var/www/html/cats/
(change the above to the location of the cats directory on your system)

.... this will give full permissions to everyone so not recommended for production.

Re: New Installation Permission Errors on CentOS

Posted: 14 Apr 2015, 11:46
by RussH
hi guys

you've said you realise that the apache process on ubuntu is run by www-data and not apache - but then say you've run chown'ed the directory to apache:apache :-)

Let me know if you still have this problem and I'll tell you the ubuntu instructions.

Russ

Re: New Installation Permission Errors on CentOS

Posted: 14 Apr 2015, 18:57
by Matt
RussH:

I have successfully installed Cats on an Ubuntu server, and I am aware that I should use www-data

I am now trying to install Cats on a CentOS server, using apache:apache, but it's giving me permission errors (see main post).

Thanks

Re: New Installation Permission Errors on CentOS

Posted: 14 Apr 2015, 23:11
by RussH
ahh matt sorry I didn't read your post correctly!

yes as per the advice above, setting to 777 will work around this.

However - you've posted that you set the directory permissions to 770, but then the error report has said it's permissions 0770 - which is different. Can you change them to 770 and retry?