Re: how use php4 / php5 in localhost



Also sprach artev:

but you have both php4 and php5 how cgi?

Yes, on my developement server, I run all PHP versions as CGI, because
- it's easier to set up
- I can run as many PHP versions as I want
- changes in php.ini take effect immediately (no need to restart Apache)

I read a solution
that use PHP 5 how CGI on Apache port dedicated

Yes, that would be another solution. I have not tried it, though.

so the php4 can it used how module;

On my server (I'm using XAMPP), PHP is also running as a module, so you can
have that in addition to the CGI versions. Is it really necessary for you to
have PHP run as a module?

(I want use at the moment php5 only for two applications)

Think of the future: PHP4 will no longer be supported, and PHP6 is to come
out soon (read: sooner or later).

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

Yes, with additional requirements you may have to do it this way. Your
original post, however, was simply about the question of running different
PHP versions concurrently. You had not mentioned any additional constraints.

[Apache configuration using two different ports]
think is onoother good solutions?

As I said, I have never tried this solution. To me, it seems a bit
complicated (what if you want more than two PHP versions?), but it really
depends on your specific needs.

Greetings,
Thomas

--
C'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)


.



Relevant Pages

  • Re: PHP is looking for php.ini file in c:windows
    ... I'm not using the CGI ... SetEnv in httpd.conf won't have any effect on PHP as an Apache module, ... SetEnv in httpd.conf only affects subprocesses spawned by Apache - i.e. CGI. ...
    (comp.lang.php)
  • Re: HTML proxying in ASP.NET?
    ... web proxies out there for Apache, and written in PHP, or CGI. ... not found an example of a simple web proxy for IIS written in ASP.NET. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Database Security Issues
    ... > Could you elaborate on how you'd do this on an ISP's web server ... With apache it seem that suexec is the way to go (and thus introducing ... new problems like running php as cgi, but the enhanced per user security ...
    (comp.lang.php)
  • Re: What websites use Lisp?
    ... languages, frameworks, and libraries are used by various websites. ... languages for their CGI applications, my personal answer is that I ... In the future I plan to switch to PHP for the ... different alias to that script for each user online at a given ...
    (comp.lang.lisp)
  • Re: Apache: limiting the execution place
    ... They want it so users can't use FTP, shell, or a CGI or PHP script to view, ... other users via shell, FTP, web server processes (such as PHP or CGI ...
    (Security-Basics)