note 49204 added to install.unix.apache2
| From: | (dan.scott@acm.org) | Date: | Thu, 20 Jan 2005 04:36:02 +0000 |
| Subject: | note 49204 added to install.unix.apache2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83650@lists.php.net to get a copy of this message | ||
Building PHP 5.x with Apache2 on SuSE Professional 9.1/9.2
SuSE uses a rather fragmented set of Apache configuration files stored in /etc/apache2/. When you
configure PHP 5.x with:
$ ./configure --with-apxs2=/usr/sbin/apxs2
$ make
everything builds just fine; but when you issue:
$ su -c "make install"
the unconventional Apache conf file layout confuses the install-sapi section of the Makefile and the
process halts with the following error:
apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.
make: *** [install-sapi] Error 1
At this point only the PHP SAPI library has been copied into place; the rest of the files (like PEAR
scripts, PHP-CLI, etc) have not been installed. But never fear! You can overcome this problem with
the following steps:
1. Edit Makefile and change the following line to remove "install-sapi":
install_targets = install-sapi install-cli install-pear install-build install-headers
install-programs
2. Issue the make install command again:
$ su -c "make install"
3. Add the PHP module & type instructions to the Apache configuration. As root, create a new
file, /etc/apache2/conf.d/php5.conf that contains the following lines:
LoadModule php5_module /usr/lib/apache2/libphp5.so
AddType application/x-httpd-php php
--- And that's it. Everything else is just as the documentation suggests it should be.
----
Manual Page -- http://www.php.net/manual/en/install.unix.apache2.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49204
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49204&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49204&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49204&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49204&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49204&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49204&report=yes
Search -- http://master.php.net/manage/user-notes.php