Click to See Complete Forum and Search --> : PHP 4.2.2/Apache 1.3.26 apxs install error


rstasek
08-30-2002, 07:02 PM
I ran the following command to get mod_so.c listed in httpd -l:

./configure --prefix=/usr/local/apahe \
--activate-module=src/modules/standard/mod_so.c
--enable-module=so

Now mod_so.c is listed twice in httpd -l, but whatever.

However, when I try to install php:

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

seems to work OK, but the subsequent "make" ends with this:

stub.lo: file not recognized: File truncated
*** Error code 1
Stop in /root/php-4.2.2.
*** Error code 1
Stop in /root/php-4.2.2.

/root/apache_1.3.26/stub.lo is indeed a 0 byte file, but how do I correct this?

rstasek
08-30-2002, 07:05 PM
Correction, /root/php-4.2.2/stub.lo is a 0 byte file. sigh. tired.

rstasek
08-30-2002, 07:21 PM
a little farther along:

ran a "make clean" , then another "make", which seemed to work.

but now neither a "make install" nor a "make clean install" work.

Making install in .
*** Error code 1
Stop in /root/php-4.2.2.
*** Error code 1
Stop in /root/php-4.2.2.

rstasek
08-30-2002, 08:52 PM
Here's what finally worked, for the benefit of anyone as sad as me reading this :)

make clean
./configure --with-apxs=/path/to/apxs
make
make install

cp php.ini-dist /usr/local/lib/php.ini

restart apache

Now my fabulous hello.php script works from the comand line, but NOT from a web page. I guess that's another thread...