i'm installing from source apache 2.0.54 and php 5.0.4. php is being installed as a module. i am using suse linux 9.3. i've successfully installed apache with so enabled (--enable-so). now i'mhaving problems getting PHP to configure, make, and make install correctly. durin the configure process i kept getting 'xml2-config' not found, even though libxml2 was installed. i installed libxml2-devel and this seemed to solf this problem. i configured php as such: /configure --with-apxs2=/patch/to/apache2/apxs --with-mysql=/path/to/mysql/ this configures, but i get warnings halfway through stating "Warning: inter-library dependencies are not known to be supported ... libtool could not satisfy all declared inter-library dep. of module libphp5. using a static module instead"

ok, so, i get that warning, but it makes. then i run make install and get the following:

===================
[root@arrow php-5.0.2]# make install
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache2/modules/libphp5.a
ranlib /usr/local/apache2/modules/libphp5.a
chmod 644 /usr/local/apache2/modules/libphp5.a
libtool: install: warning: remember to run libtool --finish /home/flumpy/temp/php-5.0.2/libs'
Warning! dlname not found in /usr/local/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: cannot access
/usr/local/apache2/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
.

make: *** [install-sapi] Error 1

so, i cannot get it to install correctly as you can see, and i'm at a loss. it refuses to create the libphp5.so module. any thoughts? anyone whose had this problem and gotten past it?

thx

    11 days later

    lemme see you ./configure line

    mine looks something like this
    ./configure --prefix=/usr/local/apache --enable-module=so --enable-mods-shared=most

    Also, if you install like this, you need to do a search for the libphp5.so module, and you need to make sure that the php5 module is in the /usr/local/apache/modules directory.

    but then you need to change the ownerships to this libphp5 module.

    lemme know if you still need help. i have been working on getting mysql, php, and apache to work on linux (fc4) for a few days now, with about 10 rebuilds. once i get done, i am going to post my documentation (instructions) online, because all of the instructions i find are ambiguous, and none have worked right.

    post what you have and if you are still having trouble.

      Write a Reply...