icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Private Hosting » phpsuexec and html files

Private Hosting Questions about VPS, dedicated servers and colocation.

Reply
 
LinkBack Thread Tools Search this Thread
Old March 20th, 2006, 11:00 PM   #1 (permalink)
says GIMME SOME MORE!
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,092 posts
Gave thanks: 8
Thanked 34 times
phpsuexec and html files

Ok, I'm still waiting on a response back from support about a site, but it has occured to me that the 500 Interal Server Error problem I am having is only affecting html files. PHP files are running fine, but html files are giving the 500 error. So, sites that are purely html or start with an html file instead of a php are coming up with the error, while the php ones are not.

Any clues as to why this is happening?
__________________
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 20th, 2006, 11:02 PM   #2 (permalink)
says GIMME SOME MORE!
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,092 posts
Gave thanks: 8
Thanked 34 times
Ok, adding:

Quote:
AddHandler application/x-httpd-php .php .html .htm
seems to have fixed it. But does that mean everyone who ever gets put on my server who decides to use html is going to have to put that in an htaccess file? If so, that sort of sucks.
__________________
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 21st, 2006, 12:03 AM   #3 (permalink)
Yabadabadoo
Super #1
 
Geoff's Avatar
 
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,013 posts
Gave thanks: 7
Thanked 28 times
if its a dedi you have (your server?), you can easily append .html to that line in the apache httpd.conf? id suggest finding out why it isnt working, but that would be a fine temp solution if using phps handler works.
__________________
Geoff Ellis - Surpass Dedicated Server Customer
www.adepttechs.net
Geoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 21st, 2006, 6:10 AM   #4 (permalink)
All Ur Base R Belong 2 Us
Excelling Contributor
 
mr_fern's Avatar
 
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
Geoff's got it =D, but yeah, definitely gotta look into it, don't forget that whole thing about unnecessary usage of the CPU to parse html files as php files.
__________________
Nobody doing nothing
mr_fern is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 21st, 2006, 6:14 AM   #5 (permalink)
says GIMME SOME MORE!
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,092 posts
Gave thanks: 8
Thanked 34 times
That last part is exactly what I was worried about. I'm responding back to the ticket now. The reason it wasn't responded to was because they closed it. I think they closed it because of the way I answered...it sounded like the problem was solved because I said I may have solved my own problem. So, I confused them lol

But this sounds like something I could fix myself...how? Where do I look, what do I add.

Wait, better idea...I'll let them do it. I could short out the building.
__________________

Last edited by David; March 21st, 2006 at 6:30 AM..
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 21st, 2006, 6:51 AM   #6 (permalink)
Yabadabadoo
Super #1
 
Geoff's Avatar
 
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,013 posts
Gave thanks: 7
Thanked 28 times
my experience with 500 errors has typically been with a badly configured httpd.conf and cgi scripts with incorrect, headers? content-type in particular if i remember correctly. (ive been working with pretty much php only the last 2 years)

might want to make sure that the default content type setting in the conf file is correct.

thats all i can think of for now. im gonna be playing in my own conf file in the next few days, so if i think of anything else ill drop it here
__________________
Geoff Ellis - Surpass Dedicated Server Customer
www.adepttechs.net
Geoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 21st, 2006, 8:05 AM   #7 (permalink)
says GIMME SOME MORE!
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,092 posts
Gave thanks: 8
Thanked 34 times
Cool beans. The more information, the more dangerous I can be to myself.

This was what I got back from the desk:

Quote:
We have now enabled php-html parsing with apache configuration file and it fixed the issue. Nowonwards, there is no need to add the parsing entry with each .htaccess file.
That sounds like it's basically passing the html through the php engine anyway. Granted, that does fix the problem but as Fern mentioned, that's higher CPU usage that isn't needed.
__________________
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 21st, 2006, 8:13 AM   #8 (permalink)
All Ur Base R Belong 2 Us
Excelling Contributor
 
mr_fern's Avatar
 
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
That's my only gripe with some of support, sometimes it's not about the best solution, just a solution.

I'll do some checking into phpsuexec for ya though.
__________________
Nobody doing nothing
mr_fern is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 21st, 2006, 8:17 AM   #9 (permalink)
Yabadabadoo
Super #1
 
Geoff's Avatar
 
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,013 posts
Gave thanks: 7
Thanked 28 times
ya it looks like they did exactly what i suggested earlier as a TEMP solution, and a big part of the recommendation was as mr fern stated, will cause unnessary resource usage, which ultimately is causing a longer load time. for a small server without a lot going on it wont make any noticable difference at all. but start trying to run a site like mr fern there and youll want that fixed properly asap:P
__________________
Geoff Ellis - Surpass Dedicated Server Customer
www.adepttechs.net
Geoff 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

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