|
|
#1 (permalink) |
|
Registered User
Comfy Contributor
Joined in Apr 2006
Lives in New York
Hosted on VPS-5
170 posts
Gave thanks: 8
Thanked 8 times
|
Upload Files problem
Well, my forums is phpbb and I have the attachment mod installed. SH97 recently went phpsuexec enabled and having problems uploading files. The directory is now at 755 where it used to be 777.
It should work at 755 but I cant upload anything. I get this error Upload Error: Could not upload Attachment to ./files/1146259590314_719.jpg Any ideas on how to get around this? This isnt just with phpbb + attachment mod. I have an upload file script I personally use which required 777 to upload files when I first installed it a while ago. |
|
|
|
|
|
#2 (permalink) |
|
Insanely
Super #1
Joined in Jul 2005
Lives in Northwest USA
4,154 posts
Gave thanks: 39
Thanked 78 times
|
Can you not chmod the directory back to 777 for the upload and after the upload change it back to 755?
If not this issue is more messed up than I thought for PHP scripts! ![]()
__________________
![]() |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
924 posts
Gave thanks: 2
Thanked 91 times
|
Verify the folder 'files' is owned by the user and not 99 nobody.
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Comfy Contributor
Joined in Apr 2006
Lives in New York
Hosted on VPS-5
170 posts
Gave thanks: 8
Thanked 8 times
|
I found the whoami.php and it says
php is running as user: nobody so send in a ticket? What will support do? Do I have to tell them which file needed 777 before but needs to make work with 755 (only 2 folders really needed it out of 30 or so)? Im pretty sure the server is phpsuexec enabled since I sent in a ticket other day and got a reply saying its enabled. phpinfo says too: Server API: Apache that should be cgi right? And to the post above, no. Going from 777 to 755 back and fourth in any manner didnt help either ![]() Last edited by Tsikura; April 30th, 2006 at 12:45 AM. |
|
|
|
|
|
#5 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
924 posts
Gave thanks: 2
Thanked 91 times
|
If phpinfo says "Apache" --> PHPsuexec is Not enabled:
folder owner "nobody" OK --> permission needs to be 777. If phpinfo says "CGI" --> PHPsuExec is enabled: folder owner has to be the user -- permission needs to be 755.
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Comfy Contributor
Joined in Apr 2006
Lives in New York
Hosted on VPS-5
170 posts
Gave thanks: 8
Thanked 8 times
|
Interesting. Had some problems with internal server error and reply in the ticket was
Hi, As the server is phpsuexec enabled,you should keep the permissions as 644 for files and 755 for the folders. Then about php freetype support,we are recompiling php enabled with it.Thank you for your patience. Regards, XXXXX SH Admin Level 3 Dept I guess I will have to see what they say about phpsuexec. Never had these chmod problems before. |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Comfy Contributor
Joined in Apr 2006
Lives in New York
Hosted on VPS-5
170 posts
Gave thanks: 8
Thanked 8 times
|
well, still waiting on the ticket but Im more certain that phpsuexec isnt installed. went ahead and chmodded the folders needed for the upload scripts back to 777 and working fine.
I guess it was ok before but somewhere something happened and they disabled it. I remember seeing those folders at 755 other night and the upload software worked fine. |
|
|
|
|
|
#8 (permalink) |
|
Registered User
Comfy Contributor
Joined in Apr 2006
Lives in New York
Hosted on VPS-5
170 posts
Gave thanks: 8
Thanked 8 times
|
*sorry cant edit previous post*
Anyhow, looks like I wasnt going crazy. It looks like it was on, then turned off, now its on again and got my folders back to 755 and its working fine. |
|
|
|