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 » .HTACCESS DefaultType application/x-httpd-php?

PHPsuexec Information and tips

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old May 23rd, 2006, 5:36 PM   #1 (permalink)
Registered User
Comfy Contributor
 
Daniel_Hatcher's Avatar
 
Joined in Dec 2004
Lives in United Kingdom
137 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
.HTACCESS DefaultType application/x-httpd-php?

How can i add a area like say

DefaultType application/x-httpd-php

not the php.ini file as .htaccess no longer allows it?
__________________
ResidentFantasy.info
Daniel_Hatcher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 23rd, 2006, 10:03 PM   #2 (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
This is an Apache command and it remains in .htaccess files as do all other apache configuration statements.

Only PHP configuration statements are affected by phpSUexec activation.
__________________
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 May 24th, 2006, 7:01 AM   #3 (permalink)
Registered User
Comfy Contributor
 
Daniel_Hatcher's Avatar
 
Joined in Dec 2004
Lives in United Kingdom
137 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
But i get a 500 System error when i view my website and tahs all i have in my .htaccess file.
__________________
ResidentFantasy.info
Daniel_Hatcher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 24th, 2006, 9:27 AM   #4 (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
I don't think "DefaultType" is a valid command. Are you wanting to add another extention to a handler?

Like:

AddHandler application/x-httpd-php .php5 .phtml

would add extentions php5 and phtml to be handled by php.

Or, what is the problem without the .htaccess file?
__________________
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 May 26th, 2006, 8:37 PM   #5 (permalink)
Registered User
Comfy Contributor
 
Daniel_Hatcher's Avatar
 
Joined in Dec 2004
Lives in United Kingdom
137 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
No what it was right that code made it so files without any extension loaded like PHP. So i could do things like domain.com/page/name/john the easy way. Now i know it works because before i went to the AEON plan it was working. It does not really matter as i've just done the files like domain.com/name.php?john anyway.
__________________
ResidentFantasy.info

Last edited by Daniel_Hatcher; May 26th, 2006 at 8:38 PM.
Daniel_Hatcher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 26th, 2006, 9:44 PM   #6 (permalink)
H
after g, before i
Super #1
 
H's Avatar
 
Joined in Jul 2004
Hosted on Gojira
7,869 posts
Gave thanks: 44
Thanked 127 times
Correct me if I'm wrong, but isn't that mod_rewrite?
H is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 26th, 2006, 11:04 PM   #7 (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
ForceType application/x-httpd-php

will force all files in a folder without extensions to the handler type, php in the example above.
__________________
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 May 26th, 2006, 11:53 PM   #8 (permalink)
H
after g, before i
Super #1
 
H's Avatar
 
Joined in Jul 2004
Hosted on Gojira
7,869 posts
Gave thanks: 44
Thanked 127 times
Yes, but "domain.com/page/name/john -> domain.com/name.php?john" points a lot of fingers to mod_rewrite. I understand what forcetype does.
H is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 27th, 2006, 12:01 AM   #9 (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
Quote:
Originally Posted by Daniel_Hatcher
How can i add a area like say

DefaultType application/x-httpd-php

not the php.ini file as .htaccess no longer allows it?
Sorry Haugland, I should have quoted this the last time.
__________________
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
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