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 » HTTP 500 Everywhere

PHPsuexec Information and tips

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old June 24th, 2006, 4:52 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Joined in Aug 2004
Lives in Atlanta, GA, USA
Hosted on serva
36 posts
Gave thanks: 0
Thanked 0 times
HTTP 500 Everywhere

I'm trying to set up some PHP scrips at http://chris.binarytoast.com, which is a true subdomain (not a redirect) of http://binarytoast.com/chris. Unfortunately, I keep getting HTTP 500 errors, despite hours of combing though the site via FTP chmoding files, making sure there's no PHP directives in the .htaccess, and so on. I basically started in public_html and went from there.

The weird thing is, I have a working drupal install set up at http://chris.binarytoast.com/tehclans that works perfectly. Of course, trying to access it though http://binarytoast.com/chris/tehclans makes it go off the deep end too, for some reason. But, it works, at least. So, what's going on? I can't run PHP from anywhere except that particular folder?
__________________
My server: Serva
My domain: binarytoast.com
(Yeah, yeah. I know binarytoast.com doesn't do anything.)
aarmenaa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 25th, 2006, 3:16 AM   #2 (permalink)
I'm Dope as Crack
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in Asheboro, NC
Hosted on Pass 7
13,032 posts
Gave thanks: 7
Thanked 29 times
Have you contacted support about this issue?

http://desk.surpasshosting.com
__________________
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 25th, 2006, 7:35 PM   #3 (permalink)
Registered User
Seasoned Poster
 
Joined in Aug 2004
Lives in Atlanta, GA, USA
Hosted on serva
36 posts
Gave thanks: 0
Thanked 0 times
I suppose that'll be my next stop - I just figured I'd let the surpassers have a go at it first. Thanks.
__________________
My server: Serva
My domain: binarytoast.com
(Yeah, yeah. I know binarytoast.com doesn't do anything.)
aarmenaa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 26th, 2006, 11:47 AM   #4 (permalink)
Registered User
Seasoned Poster
 
Joined in Aug 2004
Lives in Atlanta, GA, USA
Hosted on serva
36 posts
Gave thanks: 0
Thanked 0 times
For Future Reference

Alright, I contacted support and told them that I was having trouble with HTTP500 errors. I was also having trouble with some permissions errors - I didn't own a couple of folders for some reason. Support corrected the permission errors, but could find nothing wrong with PHPSUEXEC or PHP. However, all my PHP files now work fine!

The problem is an unexpected consequence of PHPSUEXEC: it makes sure all the owners match on PHP files and such. Because of this, if you have any file or folders you don't own (you can't delete them), PHP scripts will fail to run in every directory below your current.

In other words: If you're having trouble with PHP, get support to make sure you actually own all your files and folders (you can't change ownership yourself).
__________________
My server: Serva
My domain: binarytoast.com
(Yeah, yeah. I know binarytoast.com doesn't do anything.)
aarmenaa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 26th, 2006, 1:43 PM   #5 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,230 posts
Gave thanks: 19
Thanked 91 times
Just a point to make:

If PHPSUEXEC is installed on an existing server - one where you already had stuff running with apache_php - you will almost always have to contact support for the following:
- ensure OWNERSHIP of all files is /user account
- ensure ALL FOLDERS are chmod 755
- ensure all FILES (.php/html especially) are chmod 644

Once that is done, the account should function as before.

John
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 27th, 2006, 2:02 AM   #6 (permalink)
Registered User
Seasoned Poster
 
Joined in Aug 2004
Lives in Atlanta, GA, USA
Hosted on serva
36 posts
Gave thanks: 0
Thanked 0 times
Of course, and I read about most of this. In fact, you can pretty much make sure your site is set up to work with PHPSUEXEC all on your own - a decent FTP client will allow you chmod any files you own. But that's the catch. All files should already be owned by /user, but in some cases something goes wrong and they're not. In that case, you can't chmod those files, and because PHPSUEXEC doesn't like more than one user in a directory, PHP will also fail to run.

Without PHPSUEXEC you can ignore these "stuck" files and folders (as I did), but once PHPSUEXEC is enabled it causes a world of trouble. This is the only case where it's absolutely necessary to contact support.
__________________
My server: Serva
My domain: binarytoast.com
(Yeah, yeah. I know binarytoast.com doesn't do anything.)
aarmenaa 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