Click to See Complete Forum and Search --> : Cannot start Apache - Load_Module libphp4.so fails in httpd.conf


scott.irwin
03-15-2004, 11:16 PM
Ive just completed installing the items below.. after installing all of the applications one after the other.. everything worked perfectly.. PHP worked great , FreeTDS worked flawlessly, phpMyAdmin etc etc.. the system is OpenBSD 3.4

I restarted the server after adding each item into rc.local and apache fails to load giving the error "./apachectl start: httpd could not be started"
No errors specificlly written into the logs.. no core dump.. just fails.

if you take out the LoadModule php4_module libexec/libphp4.so line from httpd.conf .. the system starts.

The libphp4.so file is there.. and chmod 755.. php.ini is in its proper place .. etc etc..

This is the order and configuring that was used for the softwares.

ALL OF THESE PROGRAMS worked prior to reboot.

If I try to re-compile apache with --activate-module=src/modules/php.... it fails since there is no php build file within the apache distrib.

There are alot of posts related to the LoadModule.. but none seem to explain exactly the fix for this problem..

Any help is greatly appreciated..
Thanks..
==========================
FREETDS 6.2xxx
./configure --prefix=/usr/local/freetds --with-tdsver=7.0 --enable-msdblib --disable-threadsafe


APACHE 1.3.29
./configure --prefix=/usr/local/apache --enable-module=so

MYSQL 4.0.17
./configure --prefix=/usr/local/mysql

PHP 4.3.4
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mssql=/usr/local/freetds

PHPMyAdmin

Samba

scott.irwin
03-16-2004, 04:01 PM
I have been able to resolve the problem with failing Apache LoadModule Problem.. I believe that the problem may have existed between the compilation in phpo with MySql and Freetds.


I reconfigured each software in this order with these ./confige statements.

FreeTDS .0.62.1
./configure --prefix=/usr/local/freetds --with-tdsver=7.0 --enable-msdblib --disable-threadsafe

then PHP 4.3.4
./configure --with-apache=/root/apache_1.3.29 --with-mssql=/usr/local/freetds --enable-track-vars

then Apache 1.3.29
./configure --prefix=/usr/local/apache --enable-module=so --activate-module=src/modules/php4/libphp4.a

So without APXS DOS or MySql it works.. I will attempt to add MYsql into the fold to see if things breakdown on a separate machine.