icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.
Old May 23rd, 2006, 7:45 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Joined in Jul 2004
Lives in Levittown, NY
Hosted on sh142
58 posts
Gave thanks: 0
Thanked 0 times
Rule 4.

4. No php_value entries should be given in the .htaccess file. All such entries can be given on a php.ini file instead

This means what? I can't use .htacess files as I should be able to... Oh come on guys. Alot of my scripts depend on .htacess files. This is going to kill all of my programming.
__________________
Hosted By Surpasshosting on sh142 : WLVAC
Dygear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 23rd, 2006, 7:58 PM   #2 (permalink)
Skittles
Super #1
 
DewKnight's Avatar
 
Joined in Aug 2004
Lives in Space ship
Hosted on dedi
6,480 posts
Gave thanks: 91
Thanked 176 times
You can use rewrites and such.. and error pages, redirects, etc, everything that would normally go in a .htaccess... The only difference, is that anything that would modify php settings (safe mode, max upload, etc), instead of being placed in the .htaccess, you would place in a php.ini file. You can still modify everything the same.
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people.
DewKnight is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 23rd, 2006, 8:02 PM   #3 (permalink)
Registered User
Seasoned Poster
 
Joined in Jul 2004
Lives in Levittown, NY
Hosted on sh142
58 posts
Gave thanks: 0
Thanked 0 times
So, this is my .htaccess file. What would I have to do to get it to run with out the 500 error. Keep in mind, I'm using a feature called URL Look back from apache.

Code:
<Files WCS>
	ForceType application/x-httpd-php
</Files>
__________________
Hosted By Surpasshosting on sh142 : WLVAC
Dygear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 23rd, 2006, 8:05 PM   #4 (permalink)
Registered User
Seasoned Poster
 
Joined in Jul 2004
Lives in Levittown, NY
Hosted on sh142
58 posts
Gave thanks: 0
Thanked 0 times
Answered my own question. Here's my .htaccess file now.


Code:
# for suexec..
<Files WCS>
  SetHandler application/x-httpd-php
</Files>
__________________
Hosted By Surpasshosting on sh142 : WLVAC

Last edited by Dygear; May 23rd, 2006 at 8:06 PM.
Dygear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 23rd, 2006, 8:07 PM   #5 (permalink)
Skittles
Super #1
 
DewKnight's Avatar
 
Joined in Aug 2004
Lives in Space ship
Hosted on dedi
6,480 posts
Gave thanks: 91
Thanked 176 times
I did some searching, and it looks like you just change that middle line to this:

SetHandler application/x-httpd-php

Quote:
ForceType

When you are using files with (or without) an extension different then the normal extension for that filetype you can use ForceType in your .htaccess file to make it clear to the server how to handle that file (or all the files in the folder) (this works on servers without phpsuexec).
An example: When you have a file called 'item' (like Nucleus uses for FancyURL's) and want it to be parsed by the server as php you use the following code in your .htaccess file:

??? ForceType application/x-httpd-php

However, when your server uses phpsuexec this will result in an internal server error. To solve this you can simply use SetHandler instead of ForceType, so your .htaccess-file becomes:

??? SetHandler application/x-httpd-php
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people.
DewKnight 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