Re: Apache and mod_php4.c etc
| From: | Derek Slye | Date: | Thu, 02 Nov 2000 19:00:30 +0000 |
| Subject: | Re: Apache and mod_php4.c etc | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-584@lists.php.net to get a copy of this message | ||
On Wednesday, November 1, 2000, at 09:41 AM, Russell John Michell wrote:
> mySQL, and restarted I Apache (several times after several make-cleans
> of PHP4 and several alterations to apache's httpd.conf and apxs itself)
>
> I ran httpd -l, and mod_php3.c wasn't listed -
>
> <? phpinfo() ?> saved as phpinfo.php (prompts to download)
> or phpinfo.php3 (prompts to download) phpinfo.php4 (Displays <?
> phpinfo() ?> as text)
Umm...maybe I missed some earlier part of this thread, but are you trying to install the dynamic
apache module version of PHP? (You mentioned apxs which is used only for this.) If so, you
don't need to "replace" your existing server, just tell it to load and use PHP in
httpd.conf. If, on the other hand, you are compiling PHP directly (statically) into apache, you
would not use the --with-apxs directive and would use the --with-apache=/path/to/apache directive.
This method is harder as it is done in three stages (1. compile vanilla apache; 2. make and make
install PHP using --with-apache directive pointing to the source code from the first step; 3.
recompile apache adding --activate-module=src/modules/php/libphp4.a directive). Only by statically
linking in PHP will httpd -l would list mod_php3.c or mod_php4.c.
If you have tried these two methods with no success, there is one possibility left, although I would
not recommend it for security and performance reasons. You can compile PHP as a CGI.
Unfortunately, I haven't done this, and I don't know the steps.
--------------------------------
Derek Slye
NASA/Jet Propulsion Laboratory
Mission Software Systems Section
(818) 354-4119