Re: [PHP4BETA] Problem Compiling Apache with the PHP4.0b3 Module
| From: | Matthew Hixson | Date: | Fri, 11 Feb 2000 19:50:39 +0000 |
| Subject: | Re: [PHP4BETA] Problem Compiling Apache with the PHP4.0b3 Module | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10146@lists.php.net to get a copy of this message | ||
On Fri, 11 Feb 2000, Steve Benson wrote:
> Hi,
>
> Please help, I've been trying to get PHP4 up on my server for several days now.
>
> I'm using RH Linux 6.1 Kernel 2.2.12-20 and the Apache source version
> 1.3.11 which I've compiled and have running with Perl and experienced no
> problems until trying to add the PHP4 module.
>
> When I follow the instructions included with the PHP4.0b3 distribution:
Hi Steve,
I'm running Apache 1.3.11 and PHP 4.0b3 on several Linux (Debian potato)
boxes and one FreeBSD box. I've found that the instructions that come with
_Apache_ for installing PHP are very straightforward and I haven't had a
problem getting Apache and PHP running. The file you need to examine is
README.configure in the top level Apache source directory. Included below is
the relevant bit.
Good luck,
-M@
The PHP language (http://www.php.net) is an HTML-embedded scripting language
which can be directly integrated into the Apache HTTP server for powerful HTML
scripting. The package can be found at http://www.php.net/download-php.php3.
1. How you can install Apache with a statically linked PHP:
$ gunzip <apache_1.3.X.tar.gz | tar xvf -
$ gunzip <php-3.0.tar.gz | tar xvf -
$ cd apache_1.3.X
$ ./configure --prefix=/path/to/apache
$ cd ../php-3.0
$ ./configure --with-apache=../apache_1.3.X
$ make
$ make install
[optionally you now have the chance to prepare or add more
third-party modules to the Apache source tree]
$ cd ../apache_1.3.X
$ ./configure --prefix=/path/to/apache \
--activate-module=src/modules/php3/libphp3.a
$ make
$ make install
2. You can also use APXS:
$ cd apache-1.3.X
$ ./configure --prefix=/path/to/apache --enable-shared=max
$ make
$ make install
$ cd php-3.0.X
$ ./configure --with-apxs=/path/to/apache/bin/apxs \
--with-config-file-path=/path/to/apache
$ make
$ make install
At this point don't forget to edit your conf/httpd.conf file and
make sure the file contains the line for PHP 3:
AddType application/x-httpd-php3 .php3
Or this line for PHP 4:
AddType application/x-httpd-php .php
Then restart your server.
--
Matthew Hixson
Code Mangler
Vista.com
Bringing Small Business Online