On Fri, 9 Mar 2001, Johannes Ambrose wrote:
>Hi,
>I hope this is not a stupid question. The faq tells me it should just
>work.
>
>When compiling apache on Red Hat 6.2 with :
>./configure --prefix=/usr/local/apache
>--activate-module=src/modules/php4/libphp4.a
>
>everything works fine. However, make gives me a build error because
>there is no such directory as src/modules/php4. In other words. the
>libphp4.a file does not get created. I've looked at the FAQ and mail
>lists but nothing obvious jumps out at me.
Please read the INSTALL file that comes with the PHP 4 distribution:
-----------8<----------------------------------
QUICK INSTALL (Static)
$ cd apache_1.3.x
$ ./configure
$ cd ..
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install
$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
$ make
(you should now have an httpd binary which you can copy to your Apache bin
dir if is is your first install then you need to "make install" as well)
$ cd ../php-4.0.x
$ cp php.ini-dist /usr/local/lib/php.ini
You can edit /usr/local/lib/php.ini file to set PHP options.
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php
-----------8<----------------------------------
--Jani
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]