Problems locking/unlocking files [message #19213] |
Fri, 02 July 2004 08:34 |
djnz
Messages: 14 Registered: July 2004
Karma: 0
|
Junior Member |
|
|
My new installation of FUDforum was working fine until I locked and unlocked the files, then it broke.
Unlocking files seems to set permissions to 777, but my (shared) host has php configured to prevent inclusion of files with world write (presumably to prevent running scripts which may have been changed by a guest, although how a guest would get access to a file to change it I am not sure). This may be a common situation in cPanel/WHM environments with PHP as a cgi.
When I reset everything to 755 it worked fine.
I an understand why you might want to 777 the files, because in a with PHP as an Apache module they will normally be created with user and group nobody because of the way your installation routine works. However with php as a cgi set up correctly it is not necessary because the files are owned by your user.
Could you have a configuration option to toggle unlocking between 777 and 755? Come to think of it, this is not necessary, you could just optionally disable unlocking/locking so it is not done by mistake.
|
|
|
Re: Problems locking/unlocking files [message #19222 is a reply to message #19213] |
Fri, 02 July 2004 13:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Unlocking with 755 has only partial usefullness since you still won't be able to modify the files under your account, which is ultimate goal of unlocking them.
Given that you have this problem I'd recommend writing a very simple PHP script that would be able to go through the forum's directories and chmod all *.php files 700 or 755 once you are done working with them. Alternatively you can use the file manager to just change permissions on the files you are working with rather then using unlock/lock control panel that affects all of the forum's files.
FUDforum Core Developer
|
|
|
|
|
|
Re: Problems locking/unlocking files [message #23316 is a reply to message #19213] |
Fri, 11 March 2005 19:53 |
LastQuark
Messages: 12 Registered: August 2003
Karma: 0
|
Junior Member |
|
|
Just want to say thanks for this thread. I was in the same predicament and spent several hours until I read this thread.
I am also using CPanel on a shared webhost. So the lesson here is: Do not use the lock/unlock button!
|
|
|
Re: Problems locking/unlocking files [message #24873 is a reply to message #23316] |
Wed, 18 May 2005 05:50 |
leecovuk
Messages: 43 Registered: May 2005
Karma: 0
|
Member |
|
|
I'm trying to get an install with mail list going in cpanel and have also come a cropper to the same misunderstanding/problem here.
So, now that my forum has apparently broken and all web pages are 'internal server error', do I have to scrap everything and reinstall?
Or can someone tell me a permissions (?) fix which will bring things back?
I only tried to 'unlock' in the first place, because I read elsewhere that my troubles with piping to the maillist.php script may be due to this.
Thanks a lot,
lee
[Updated on: Wed, 18 May 2005 05:50] Report message to a moderator
|
|
|
|
Re: Problems locking/unlocking files [message #24885 is a reply to message #24874] |
Wed, 18 May 2005 13:49 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Sounds like the forum's file permissions were screwed up and the webserver denied access to the forum files. You need to adjust the forum file permissions to allow the webserver to read them.
FUDforum Core Developer
|
|
|
|
|
Re: Problems locking/unlocking files [message #24914 is a reply to message #24912] |
Wed, 18 May 2005 17:57 |
leecovuk
Messages: 43 Registered: May 2005
Karma: 0
|
Member |
|
|
very impressed with the apparently consistently swift replies here! Good stuff guys!
ok; I don't have command line access so the whole php-cgi thing is an unknown to me, but I'm sure you're right because I was certainly getting 'mail delivery errors' including a strange 'headers' thing otherwise.
|
|
|