Re: Running as a Module and as EXE on the same Apache server?
| From: | Alan Leff | Date: | Wed, 19 Jun 2002 17:14:13 +0000 |
| Subject: | Re: Running as a Module and as EXE on the same Apache server? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14303@lists.php.net to get a copy of this message | ||
Thanks for the suggestion. The reason for this is I have two sites currently
running on two machines and I want to have both sites running on one faster
machine. One site already uses Apache with php as a module and the other
site is using Netscape with php as cgi. The second site has several dos
batch files that are used as cgi programs that run a c program and a php
script.
Could I avoid the file extension changes by using two instances of Apache?
"Brian Huff" <bex@stellent.com> wrote in message
news:3D10814D.4040105@stellent.com...
>
> ummm... first question, if you can run it as a SAPI module, why on earth
> would you want to run the much slower and less secure CGI-based one? It
> used to be the case that the cgi was more stable, but I dont think
> that's true anymore.
>
> That being said, you could probably create different application types
> for the CGI and SAPI versions based on different file extensions, and
> then point them to different modules, like this:
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php-cgi .phpcgi
> Action application/x-httpd-php-cgi "/php/php.exe"
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php .phtml
>
> See if that works...
>
> --
>
> Brian 'Bex' Huff
> bex@stellent.com
> Phone: 952-903-2023
> Fax: 952-829-5424
>
> > Can I run php v4 both as a module and as a direct executable on the same
> > Apache server or using two instances of Apache on the same server?
> >
> >
>
>