For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > November 2005 > Re: executing .php outside of cgi-bin









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: executing .php outside of cgi-bin
sam

2005-11-10, 6:56 pm


"Paul Battersby" <batman42ca@yahoo.ca> a écrit dans le message de news:
3uidneK6j5A0H_feRVn-og@rogers.com...
> I'm running php4, Apache2 on Win2000.
>
> I've inherited a web site that I want to run on my own server. There are
> .php and .htm files mixed together in various sub directories.
>
> What I want to do is have the server recognize that anything ending in
> .php
> (no matter where it is found) is to be executed but without needing the #!
> directive at the top of every .php file.
>
> I've searched the web, looked carefully through the Httpd.conf file and I
> still can't figure it out.
>
> Any ideas?


It seams that you are using php4 as cgi binary and not as apache module.
Right ?

To make things work as you like you have to compile php4 as apache module
and change some directives in your httpd.conf file

See here for more details:
http://www.php.net/manual/en/instal...ows.apache2.php


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com