Re: how use php4 / php5 in localhost
- From: artev <mailnotspammm@xxxxxxxxxxx>
- Date: Mon, 29 Oct 2007 00:32:16 +0100
but you have both php4 and php5 how cgi?
I read a solution
that use PHP 5 how CGI on Apache port dedicated
so the php4 can it used how module;
(I want use at the moment php5 only for two applications)
the trick is to setting a virtualhost on one other port,
so cgi and module functioning are separated in security mode
and is possible to use same environment, same webserver and sam
document_root
to write at bottom file apache
Port 80
Listen 80
<VirtualHost *>
ServerName localhost
ServerAdmin me@localhost
DirectoryIndex index.php
DocumentRoot "C:/Programmi/Apache Group/Apache/htdocs"
ScriptAlias /cgi-bin/ "C:/PHP5/"
Action php5-script /cgi-bin/php-cgi.exe
AddHandler php5-script .php5
</VirtualHost>
Listen 81
<VirtualHost *:81>
ServerName localhost
ServerAdmin me@localhost
DirectoryIndex index.php
DocumentRoot "C:/Programmi/Apache Group/Apache/htdocs"
ScriptAlias /cgi-bin/ "C:/PHP5/"
Action php5-script /cgi-bin/php-cgi.exe
AddHandler php5-script .php .php5
</VirtualHost>
think is onoother good solutions?
.
- Follow-Ups:
- Re: how use php4 / php5 in localhost
- From: Thomas Mlynarczyk
- Re: how use php4 / php5 in localhost
- References:
- how use php4 / php5 in localhost
- From: artev
- Re: how use php4 / php5 in localhost
- From: Thomas Mlynarczyk
- how use php4 / php5 in localhost
- Prev by Date: Re: how use php4 / php5 in localhost
- Next by Date: Requirement for a PHP Web Developer based in TN
- Previous by thread: Re: how use php4 / php5 in localhost
- Next by thread: Re: how use php4 / php5 in localhost
- Index(es):
Relevant Pages
|