Re: Running as a Module and as EXE on the same Apache server?
| From: | Brian Huff | Date: | Wed, 19 Jun 2002 13:04:13 +0000 |
| Subject: | Re: Running as a Module and as EXE on the same Apache server? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14297@lists.php.net to get a copy of this message | ||
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?
>
>