Problem installing Apache and PHP on Red Hat 8.0

N

nylex23

Guest
Lo, I'm trying to set up a web server with PHP support on my machine and have been following a tutorial (http://sysbotz.com/articles/amp.htm) to help. It has been fine so far, apart from one step. It says to do the following:

# ./configure --prefix=/usr/local/apache --enable-module=rewrite --activate-module=src/modules/php4/libphp4.a

When I do, I get this: configure: error: unrecognized option: --activate-module=src/modules/php4/libphp4.a

If it makes a difference, I'm trying to install httpd-2.0.45 and php-4.3.1. Any ideas?

Thanks for any help.
 
T

Testin da Cable

Guest
um no idea :mad: you don't need that prefix because that's where apache will install by default iirc. I can understand --enable-module, but --activate-module I've never heard of tbh.
you might be better off using the full path, ie. --activate-module=/full/path/to/wherever/phpsrc/is/src/modules/php4/libphp4.a
 
O

old.LeitMotif

Guest
Hi,

I don't like the way the article chooses to install PHP (personal taste).

I would install Apache something along the lines of:-

Code:
cd <apache source dir>
./configure --prefix=/usr/local/apache_2.0.45 --enable-module=so --enable-module=rewrite
make;
make install;

that will install apache to /usr/local/apache_2.0.45 i would then advise you to symlink /usr/local/apache to /usr/local/apache_2.0.45.

If you are trying to use MySQL then you should install that before you continue with PHP.

And if your apache install looks good you can install PHP :-

Code:
cd <php source dir>
./configure --with-apxs2=/usr/local/apache_2.0.45/bin/apxs
make
make install

Ive not tested the configuration statements so i fully expect a bashing if they don't work, and you will have time to make a sandwich during the `make` phase of the PHP install :)

Disclaimer :: again... people do things in different ways so im sure someone has a better suggestion.. please also note that by installing it from source you may fubar your current apache installation, which on RH8.0, is probably installed by RPM

I would certainly recommend that you look at http://www.php.net/manual/en/install.apache2.php for PHP's installation guide as there are things that will bite :)

;)
 

Users who are viewing this thread

Top Bottom