Page 1 of 1

Couldn't CHMOD !!!!

PostPosted: Mon May 22, 2006 5:04 pm
Author: Genjuro-Sensei
Hello,

When trying to CHMOD files and folders, the server respond:

[color=red][R] SITE CHMOD 777 /album_mod/upload
[R] 500 'SITE']

and the CHMOD does not apply !!

What shoud i do ???

Thanks a LOT for help !!

Re: Couldn't CHMOD !!!!

PostPosted: Mon May 22, 2006 5:13 pm
Author: Helter
you must be on a windows server. Just make sure it is read/writable

PostPosted: Mon May 22, 2006 6:28 pm
Author: Jason Sanborn
If you are on a Windows Server, there are some things that you won't be able to do via FTP, and you might have to ask your host to change the permissions for the Internet Guest Account to those files/folders.

Re: Couldn't CHMOD !!!!

PostPosted: Tue May 23, 2006 2:18 am
Author: Genjuro-Sensei
The server is Linux...

Thanks anyway...

PostPosted: Tue May 23, 2006 4:33 am
Author: Adrian Rea
"Genjuro-Sensei";p="6967" wrote:The server is Linux...

Thanks anyway...
I thought this may be the case, and I spoke to adbasques on a similar issue, where it appears he cannot chmod because his server login is not the owner named on the file who put it there. I replied to him;

I have come across this before, sometimes it is the host enforcing certain CHMODs that they feel are good enough, or it can be your unzipping program, or it can also be if the site has been restored by the host from a backup. I do find a couple of ways to get around it. If you go through your hosting file manager to change the CHMODs then this is normally accepted. If not, download the file you want changed, delete the original, then reupload the file, where you can change the permissions then.

One thing to look at is the named owner of the file, this should be your hosting username, if not you should ask whose login it is. If you cannot see the named owner I can look at it if you wish.

A

Re: Couldn't CHMOD !!!!

PostPosted: Tue May 23, 2006 5:01 am
Author: Genjuro-Sensei
Thanks,

The file manager provided by the host service doesn't have any CHMOD functions, it allow only create/rename/delete directories and files, and upload them !!

PostPosted: Tue May 23, 2006 5:03 am
Author: Adrian Rea
Yes but do you use an ftp program that informs you of file owner name? If you need me to look I would be happy to.

A

Re: Couldn't CHMOD !!!!

PostPosted: Tue May 23, 2006 5:47 am
Author: Genjuro-Sensei
<img> I Really dont understand you, but what you want !!
the program i'm using is FlashFXP

But i tried many others like Filezilla...etc and also FTP website like web2ftp, always i get the same error !!

you may need other informations ?

PostPosted: Tue May 23, 2006 8:46 am
Author: Fubie
When using FlashFXP on the right panel where it shows your files on your host you should see a column at the top that says Owner.

Example, Mine says Name Size Modified Owner

If yours does not have an owner column try right clicking the column header and selecting owner.

Re: Couldn't CHMOD !!!!

PostPosted: Tue May 23, 2006 10:16 am
Author: Genjuro-Sensei
Yeah, the "Owner" colum says: web

What should i do ??

Thanks.

PostPosted: Tue May 23, 2006 10:26 am
Author: Fubie
Speak to your host and ask them to set it to your login name or domain name.

PostPosted: Thu May 25, 2006 4:26 am
Author: Eon
This maybe a wishful thought from neverland, but is there any way to get rid of this issue all together? I mean I know we have hundreds of mods installed here, but the install of phpbb2 never had chmod'ing to be done.

Although this would mean more info being stored in the database I am guessing, but there has to be someway to remove this permissions issue.

Maybe a way to set the permissions of the files on the install, even if unzipped.

Just thinking out loud here.

PostPosted: Thu May 25, 2006 5:05 am
Author: Adrian Rea
Yes I think it may be possible to some extent, but it may increase the number of queries, and there will still need to be some chmods for file upload etc. One of the main reason for the 666 permissions is to use cacheing. The system is slow now, so I am not sure if you may get memory or server overload without it.

A

Re: Couldn't CHMOD !!!!

PostPosted: Thu May 25, 2006 5:42 am
Author: Dragonsys
the CHMOD being required is due to all the Mods installed. That is why phpBB does not require them and IM does.

some of the Mods (File attachments, template cache, etc) require read/write permissions, without the CHMOD those Mods would not work.

I have seen a script which will do all the CHMOD for you, I think the problem then is that if the files are owned by a different user, yo umight still run into problems. On a *NIX server, you should be the owner of your files. If you are not the owner, then your WebHost needs to correct that.

I will see if I can find that script again.

PostPosted: Thu May 25, 2006 6:30 am
Author: Eon
Yeah I am familiar with that script, and for a lot of people it does not work due to the issue you stated. Or other issues. Cause I am the owner on one server and it still will not allow that script to run.

If there was a way to set these permissions in the actual install package this would solve a lot of problems. But keeping the host from changing them would be the issue.

Re: Couldn't CHMOD !!!!

PostPosted: Thu May 25, 2006 6:58 am
Author: Genjuro-Sensei
Thanks for your replies.

But i think there is no hope... cuz i just noticed that my host provider have deactivated some commands in their PHP installation, one of the deactivated commands is CHMOD :(

Re: Couldn't CHMOD !!!!

PostPosted: Thu May 25, 2006 10:51 am
Author: Dragonsys
"Genjuro-Sensei";p="7279" wrote:Thanks for your replies.

But i think there is no hope... cuz i just noticed that my host provider have deactivated some commands in their PHP installation, one of the deactivated commands is CHMOD :(


??? huh? CHMOD is a system command, not a PHP command. Do they disallow system commands to be run by PHP scripts?