Re: how use php4 / php5 in localhost



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?
.



Relevant Pages

  • Re: Apache, php?
    ... Or do I have to reinstall apache after php5? ... the port - it's not enabled by default. ...
    (freebsd-questions)
  • Re: [PHP] Payflow and Php5 on FreeBSD
    ... going back to php4 is not an option, ... source-install of php5. ... copy it in to the php5 extensions area on the original box, ... a php5-pfpro port in the official FreeBSD ports collection: ...
    (php.general)
  • Re: 7.1 release / apache22 / php5
    ... The libphp5.so is placed by the php5 port. ... When you deinstall php5, make clean, make config, make ... first install apache22 then php5. ...
    (freebsd-questions)
  • RE: Loading php5 and apache 1.3
    ... apache, php5, mysql5 Have no problem with the mysql5 part. ... I reported the default had changed for php5 port not to ...
    (freebsd-questions)