RE: [PHP-INST] problem installing php on apache 2 after unistalli ng apach 1.3
| From: | Jonathan Thomas | Date: | Tue, 02 Jul 2002 20:21:35 +0000 |
| Subject: | RE: [PHP-INST] problem installing php on apache 2 after unistalli ng apach 1.3 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-7586@lists.php.net to get a copy of this message | ||
How are you compiling httpd?
Should be something like
./configure --with-apxs2=/path/to/apxs/binary
--with-config-file-path=/path/to/httpd.conf/directory
--enable-track-vars...blahblahblah...
If you are, and you're receiving this error - then it's possible that you
did not compile apache2 with DSO support (enable-module=so)...then you're
stuck actually compiling php INTO apache rather than as a module.
Thanks,
JT
-----Original Message-----
From: Desmond Lee [mailto:desmond60@hotmail.com]
Sent: Tuesday, July 02, 2002 3:54 PM
To: php-install@lists.php.net
Subject: [PHP-INST] problem installing php on apache 2 after unistalling
apach 1.3
Hi there
I've installed apache 2 and now i'm trying to install php4.
I can't get php to work. When i install from the source i follow the
instructions. But when i get to the 'make install' i get some errors as
follows:
make[1]: Entering directory `/root/unzipped/php-4.2.1'
/root/unzipped/php-4.2.1/build/shtool mkdir -p "/usr/lib/apache" && apxs -S
LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Warning: /usr/sbin/httpd not found or not executable
apxs:Warning: Continuing anyway...
apxs:Warning: Sorry, no DSO support for Apache available
apxs:Warning: under your platform. Make sure the Apache
apxs:Warning: module mod_so is compiled into your server
apxs:Warning: binary `/usr/sbin/httpd'.
apxs:Warning: Continuing anyway...
apxs:Error: Config file /etc/httpd/conf/httpd.conf not found
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/root/unzipped/php-4.2.1'
make: *** [install-recursive] Error 1
I think that's why my php install isn't working. And in my httpd.conf file i
have the following line:
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
but i don't have anything in my module directory. Is this because the 'make
install' didn't work properly
I'm also thinking that from the error messages that php is getting confused
as to where apache is installed. Apache 2 is installed in /usr/local/apache2
the old apache install (which was installed when linux installed) was
removed and it use to live in /etc/httpd/ which shows up in some of the
warning messages above.
Any one have any ideas? Thanks a bunch, i'm totally lost.
Regards
Desmond
_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php