Forums / Setup & design / File Permissions problems when editing CSS

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