Click to See Complete Forum and Search --> : php-4.0.4pl1 on apache creats problem


hasan
05-02-2001, 06:27 AM
I havve installed the php4 and apache on solaris but in browser instead of parsing the file to html page it gives me the plain text of the php code.Now i have change the configuration of apache and install with following commands.
#./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libp
hp4.a --enable-shared=php4 --enable-shared=max --enable-module=so
#make
#make install

It runs succesfully ,but when i try php to reconfigure for apxs with the following command
./configure --with-apxs=/usr/local/apache/bin --with-config-file-path=/usr/local/apache

I recive the following command,
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
./configure: /usr/local/apache/bin: cannot execute
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path.
configure: error: ;

help me I get struct from the daily practice of installation.
thanx

smarlowe
05-02-2001, 07:06 AM
The --with-apxs switch needs the path to apxs including the apxs part as well, so it should look somthing like this:

./configure --with-apxs=/usr/local/apache/bin/apxs