Apache setup
Posted: 12 April 2005 06:13 AM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  341
Joined  11-12-2004

Having a problem with the moved site that is stumping me. On the old site befoe I moved I had modified the .htaccess file with the following ,

<Files dbn>
AcceptPathInfo on
SetOutputFilter PHP
SetInputFilter PHP
</Files>

DirectoryIndex dbn index index.php index.shtml index.html index.htm

using the exact same .htaccess file on the new server,

It reads the file first as sepcified however it is not recognizing it as php.

Is ther something else that need to be setup?

Profile
 
 
Posted: 12 April 2005 07:41 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1075
Joined  08-01-2002

Check to see what version of Apache they are using, the specified info above is for a server running Apache v.2, if they are running Apache v1 the information is different, but layed out in the EE manual on what to use for Apache 1 vs Apache 2.

 Signature 
Profile
 
 
Posted: 12 April 2005 08:25 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  341
Joined  11-12-2004

Its Apache version 2.0.53…

Wierd huh?

Profile
 
 
Posted: 12 April 2005 08:30 AM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

I’d contact the Host and ask them what you should use in the .htaccess file to force a particular file to be parsed as PHP.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 12 April 2005 08:37 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
RankRankRank
Total Posts:  341
Joined  11-12-2004

That would be me, unfortunately:>)

Like I said, it works with exactly the same file on the old server.

Profile
 
 
Posted: 12 April 2005 12:20 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  341
Joined  11-12-2004

However, I am using a new control panel software on this server and aparently they have it set up to invoke php as a cgi program rather than a server module.

Is there any considerations for doing so? Should I change the overall server setup?

Profile
 
 
Posted: 12 April 2005 12:26 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Well, if you have the option to run PHP as a module rather than a CGI process I’d definitely recommend doing so.  It’s almost universally a better choice and easier to work with with fewer limitations.

I think the instructions mention something you can try for PHP as CGI, though.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 12 April 2005 12:46 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
RankRankRank
Total Posts:  341
Joined  11-12-2004

Yep, I got it working with the set handler

<Files dbn>
SetHandler application/x-httpd-php
</Files>

I’ve got a question into interworx…

Profile
 
 
Posted: 12 April 2005 01:54 PM   [ Ignore ]   [ # 8 ]  
Research Assistant
RankRankRank
Total Posts:  341
Joined  11-12-2004

BTW, I ran this

php_sapi_name and verified that it is not running as a cgi.

Which makes sense because I knew I was not invoking it as such and could not find any redirects, etc in any of the apache config files.

Thinking that the input/output filters have been replaced with the SetHandler application/x-httpd-php directive.

However, I checked the change logs for apache and cannot find any indication of such, setinputfilter and setoutputfilter were added in 2.011.

I don’t know what’s up…

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64912 Total Logged-in Users: 30
Total Topics: 81863 Total Anonymous Users: 19
Total Replies: 440096 Total Guests: 174
Total Posts: 521959    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb