Forums / Install & configuration / VAR directory file ownership and permissions CentOs
Richard Lundberg
Saturday 21 August 2010 2:22:10 am
Hi, after many happy years running Exponential on Ununtu, I have a new server with CentOs.
Previously on install, there would be warnings to change permissions and ownership on autoload extension settings var to www-data.
On this installation, no warnings so all assumed OK. But when I try to import packages, I get file permission errors.
So I have changed the ownership of the directories to apache (www-data does not exist on CentOs) and set the permissions exactly as I had them on my old Ubuntu installations. Still and error saying that the web server cannot modify a file in the VAR directory.
This is 4.3 running on CentOs with PHP 5.3 and php-xml is installed ( a possible cause of package install problems on CentOs according to other threads)
Any ideas. Is apache the right user?
www.peakm3.com
Greg McAvoy-Jensen
Saturday 21 August 2010 10:09:52 am
Richard,
I love the mountains on your company's website.
Is your CentOS running SELinux? If so perhaps the context needs to be set. You can check with:
$ ls --context
I generally run a command like this:
$ sudo chcon -R system_u:object_r:httpd_sys_content_t /home/myuser/www
Granite Horizon, Certified Developer of eZ Publish Web Solutions Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg Blog: http://granitehorizon.com/blog
Sunday 22 August 2010 6:56:23 am
Just the view from the office :-)
good call, but alas not the prob. Checked the status and SELinux. appears to be disabled.
thanks anyway..