VAR directory file ownership and permissions CentOs

Author Message

Richard Lundberg

Saturday 21 August 2010 2:22:10 am

Hi, after many happy years running EzPublish 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

Richard Lundberg

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..

www.peakm3.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 22:22:43
Script start
Timing: Jan 30 2025 22:22:43
Module start 'layout'
Timing: Jan 30 2025 22:22:43
Module start 'content'
Timing: Jan 30 2025 22:22:43
Module end 'content'
Timing: Jan 30 2025 22:22:43
Script end

Main resources:

Total runtime0.0336 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.3828151.2422
Module start 'layout' 0.00780.0034 739.6250220.7500
Module start 'content' 0.01110.0212 960.3750997.8984
Module end 'content' 0.03230.0012 1,958.273433.9922
Script end 0.0336  1,992.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00288.2755140.0002
Check MTime0.00103.0139140.0001
Mysql Total
Database connection0.00226.449510.0022
Mysqli_queries0.00226.683030.0007
Looping result0.00000.026310.0000
Template Total0.00092.610.0009
Template load0.00072.001410.0007
Template processing0.00020.568710.0002
Override
Cache load0.00041.292210.0004
General
dbfile0.004312.826580.0005
String conversion0.00000.021340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs