Forum Moderators: coopster

Message Too Old, No Replies

sef url on webserver running php as cgi

         

scholattu

1:36 pm on Sep 23, 2009 (gmt 0)

10+ Year Member



Hi,

I had to move a site from a server which was running php as apache module to another server which runs php as cgi.

The site is built with search engine friendly urls (removing .php extension from some php files) and in the .htaccess file have these entries.
<Files filename>
ForceType application/x-httpd-php
</Files>

Now, in the new server, I cannot get it working as php runs as cgi.

I have already tried the following commands and couldnt get working.
AddHandler php-cgi .php
AddHandler php5-script .php
addhandler application/x-httpd-php .php .html

Any help would be appreciated.

jdMorgan

2:45 pm on Sep 23, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi scholatu, and welcome to WebmasterWorld!

Check out this forum's Library [webmasterworld.com], where you will find several threads --I count seven on the first page-- on installing PHP and getting it running.

Jim

scholattu

1:58 pm on Sep 25, 2009 (gmt 0)

10+ Year Member



thanks for your reply jdMorgan,

I assume my requirement has less to do with the php configuration. I am hosting this site with a shared hosting package.
I dont have access to the apache configuration also.

I am just looking for replacement for the command "ForceType application/x-httpd-php" (runs on php as module), for a server running php as cgi.
Tried so many combinations that I got from google & here in webmasterworld, but didnt get it to work.

jdMorgan

5:46 pm on Sep 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I understand what you're asking, then you may be looking for the "AddType" kludge or the "AddHandler" method mentioned in several of the tutorial threads here. Other than that, you may need a 'real' PHP expert's help (not me). ;)

Jim