No uploads and a message
I can't upload pics and get this message when I try:
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid/gid is 6344/6344 is not allowed to access /mounted-storage/home8/sub003/sc15378-GJSN/www/photoplog/images/793 owned by uid/gid 99/99 in /mounted-storage/home8/sub003/sc15378-GJSN/www/photoplog/upload.php on line 143 I assume looking at the title that it's because SAFE MODE is on. I cannot change this as I don't have access to do so. A solution please? K |
I also ge tthis error in the middle of the page:
Sorry, ka$h: Bad Type Part of the same I hope, but I could do with some help :( K |
Is the images directory set to 777 permissions? If so, and you still cannot upload, ask your host if they will change UID (user) checking to GID (group) checking so you can upload. Here's a link to safe_mode_gid. It's something that needs to be set in the php.ini or httpd.conf file.
|
Quote:
|
Not sure if you saw it on that page, but if you look for the sentence that starts with "When safe_mode is on, PHP checks to see if the owner of..." there is some more talk about UID/GID stuff that may be of some help. Let me know how it goes. :)
|
Right, although the servercp says that I am running SAEF MODE I was also running gid safe mode. To keep security on the shared server I changed the option for gid safe mode to off and it gives exactly the same, so that aint it.
In addition to this I switched the vb options for server safe mode to on and it refused to allow attachments to be uploaded. I switched back to off and it works fine. This makes me think it aint the server but something else. Don't really want to be turning the SM off in the CP, and it's taking 2-3 hours for settings to change so it's not something I can tryout quickly if you know what I mean. Any more thoughts? |
Just double checked the error and it has actually changed by dropping the gid part of the error:
Quote:
|
Does the 793 directory have 777 permissions?
|
it certainly does
|
Regarding safe mode, there is a blog (http://ilia.ws/archives/18-PHPs-safe...-security.html) where the last comment says:
Quote:
You could try Titov's patch, if you are server admin, or else try to convince your host to apply the patch. Alternatively, there is a page (http://bugs.php.net/bug.php?id=24604) where the last comment says: Quote:
|
All times are GMT. The time now is 12:36 AM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.