Click to See Complete Forum and Search --> : help with php-apache instlallng


noppie
09-05-2002, 07:36 PM
hello all
I have read the documents and the manual
and tried everything I can think of.

I install mysql everything works

Updated instructions for installing Apache 2.x with PHP4 and MySQL:
(1)
Download httpd-2.0.40-i686-pc-linux-gnu-rh73.tar.gz from http://www.apache.org/dist/httpd/binaries/linux/

(2)
Download php4-latest.tar.gz from http://snaps.php.net/

(3)
tar -xzvf httpd-2.0.40-i686-pc-linux-gnu-rh73.tar.gz
cd httpd
./configure --prefix=/Apps/apache --enable-module=so
make
make install

(4)
tar -xzvf php-4.2.2.tar.gz
cd php*
./configure --with-mysql --with-apxs2=/Apps/apache/bin/apxs

(To find path/to/apxs, do slocate -u /, then slocate apxs) i found it in Apps/apache

/usr/share/nan/man8/apxs.8bz2
/usr/local/src/mod-perl-1.27/apaci/apxs_cflags.PL
'' '' '' '' '' '' '' apxs_cflage
""""""""""""""/httpd/support/apxs.in
""""""""""""""httpd/support/apxs
/usr/local/apache/bin/apxs
/Apps/apache/bin/apxs

noppie
09-05-2002, 07:41 PM
cont...


Add the following to httpd.conf
AddType application/x-httpd-php .php
LoadModule php4_module /path/to/libphp4.so(((/Apps/apache/modules/libphp4.so)))
(To find path/to/libphp4.so, do slocate -u /, then slocate libphp4.so)

(6)
Restart httpd:
/path/to/apachectl restart

I restated and the php script doesn't show up..
what did I do wrong
please help me..
I am about to go crazy.
Naomi