You are here: Re: executing .php outside of cgi-bin « PHP Language « IT news, forums, messages
Re: executing .php outside of cgi-bin

Posted by sam on 11/10/05 19:06

"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/install.windows.apache2.php

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация