File Permissions problems when editing CSS

Author Message

Richard Lundberg

Thursday 13 December 2007 3:08:16 pm

I have recently installed EZPublish 4.0 and was advised to fix file permissions when finetuning

<i>

cd /var/www
chmod -R ug+rwx settings settings/override var var/storage var/cache settings/siteaccess settings/siteaccess/admin design
chown -R www-data:www-data settings settings/override var var/storage var/cache settings/siteaccess settings/siteaccess/admin design</i>

However by changing ownership I can no longer edit CSS files and upload by ftp as I no longer have the correct permissions.

In previous installs (3.7) I never received this message, and on checking the directories, the ownership resides with the site owner, thus I have edited the CSS without problems and the sites are fine.

Is there a way around this in 4.0? Can I revert ownership of these directories back to the site owner and not cause any issues. If not, how can I edit CSS files?

www.peakm3.com

Softriva .com

Thursday 20 December 2007 12:24:04 am

I am not sure if this will help but you might give it a shot. Check if you are a member of group www-data. In Ubuntu Linux I do this

cat /etc/group|grep www-data

then I get

www-data:x:33:hab

Where hab is me.

paul bir

Thursday 20 December 2007 6:39:27 am

In wordpress I also had this problem. What I did was cmod carp to 755.
Hope that helps.

http://www.theawristocrat.com/personalized-id-dog-tags.php
http://www.theawristocrat.com/fundraising.php
http://www.martialartspride.com
http://www.martialartspride.com/weapons.html

Richard Lundberg

Friday 21 December 2007 12:34:46 am

sorted... thanks for the help

www.peakm3.com

Geert van der Heide

Sunday 20 January 2008 11:10:15 am

i have also the same problem, how do you fixed it?

Richard Lundberg

Sunday 27 January 2008 4:24:59 pm

Hi Gert,

I have a VPS so it was easy to set up group permissions to edit the CSS files. I'm not sure how one could do it if you are on a shared hosting package.

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 18 2025 20:53:04
Script start
Timing: Jan 18 2025 20:53:04
Module start 'layout'
Timing: Jan 18 2025 20:53:04
Module start 'content'
Timing: Jan 18 2025 20:53:05
Module end 'content'
Timing: Jan 18 2025 20:53:05
Script end

Main resources:

Total runtime0.7671 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.0469152.6406
Module start 'layout' 0.00790.0044 740.687539.4766
Module start 'content' 0.01230.7534 780.1641638.9063
Module end 'content' 0.76570.0013 1,419.070316.1250
Script end 0.7671  1,435.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4583160.0002
Check MTime0.00150.1923160.0001
Mysql Total
Database connection0.00090.122910.0009
Mysqli_queries0.677488.3017700.0097
Looping result0.00070.0953680.0000
Template Total0.724294.420.3621
Template load0.00200.257620.0010
Template processing0.722294.152320.3611
Template load and register function0.00020.025110.0002
states
state_id_array0.00340.444710.0034
state_identifier_array0.00120.159820.0006
Override
Cache load0.00150.1999310.0000
Sytem overhead
Fetch class attribute can translate value0.00090.121740.0002
Fetch class attribute name0.00140.176880.0002
XML
Image XML parsing0.00690.901640.0017
class_abstraction
Instantiating content class attribute0.00000.0025100.0000
General
dbfile0.01041.3526210.0005
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs