icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHPsuexec » Upload Files problem

PHPsuexec Information and tips

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old April 29th, 2006, 5:11 PM   #1 (permalink)
Registered User
Comfy Contributor
 
Tsikura's Avatar
 
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.
Tsikura is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 29th, 2006, 9:18 PM   #2 (permalink)
Insanely
Super #1
 
Skipdawg's Avatar
 
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!
__________________
Skipdawg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 29th, 2006, 9:52 PM   #3 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
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)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 30th, 2006, 12:40 AM   #4 (permalink)
Registered User
Comfy Contributor
 
Tsikura's Avatar
 
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.
Tsikura is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 30th, 2006, 12:57 AM   #5 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
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)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 30th, 2006, 2:08 AM   #6 (permalink)
Registered User
Comfy Contributor
 
Tsikura's Avatar
 
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.
Tsikura is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 30th, 2006, 3:58 AM   #7 (permalink)
Registered User
Comfy Contributor
 
Tsikura's Avatar
 
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.
Tsikura is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 30th, 2006, 4:55 AM   #8 (permalink)
Registered User
Comfy Contributor
 
Tsikura's Avatar
 
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.
Tsikura is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On