Bug #2575 Updated: Can't make libphp3.so
| From: | Bug Database | Date: | Sun, 19 Dec 1999 23:54:05 +0000 |
| Subject: | Bug #2575 Updated: Can't make libphp3.so | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13862@lists.php.net to get a copy of this message | ||
ID: 2575
Updated by: shaneo
Reported By: a.kreicy@aditel.at
Status: Closed
Bug Type: Installation problem
Assigned To:
Comments:
I just tried the latest cvs version of Redhat 6.1 using
these commands, and it worked. Please try these commands:
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
or use PHP as a DSO:
QUICK INSTALL (DSO - Dynamic Shared Object)
(For this to work, your httpd has to have mod_so enabled. Check with
httpd -l)
gunzip php-3.0.x.tar.gz
tar xvf php-3.0.x.tar
cd ../php-3.0.x
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-xml
make
make install
At this point you need to edit your httpd.conf file and uncomment the
PHP AddType line that looks like this:
AddType application/x-httpd-php3 .php3
You should also add a line to actually load the PHP module. Something
like this should work:
LoadModule php3_module modules/libphp3.so
Then restart your server and it should start parsing .php3 through PHP.
Full Bug description available at: http://bugs.php.net/?id=2575