Forum Moderators: coopster
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.
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
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.