I am trying to install php4 as an apache dso module. Everything works fine upto the point of starting apache. I get this message when starting:
Can't locate API module structure 'php4_module' in file /home/httpd/lib/libphp4.so: /home/httpd/lib/libphp4.so: undefined symbol: php4_module
bin/apachectl start: httpd could not be started
At this current time, I have apache running with mod_ssl, cold fusion and JSERV, all as DSO modules.
It is all running in Linux slackware 7 with kernel 2.2.16 with glibc2
This is the configuration I used for php4:
./configure --prefix=/home/httpd --with-apxs=/home/httpd/bin/apxs --with-xml --with-ftp --with-mysql=/usr/local --with-config-file-path=/home/httpd/conf --disable-debug --enable-track-vars --enable-magic-quotes --with-dom --with-servlet=/usr/local/jsdk --with-java=/usr/local/jdk --disable-short-tags --enable-calendar --with-openssl
Again, the configure, make and make install all work, the error happens when trying to load the module into apache.
This is how I configured apache:
SSL_BASE=/usr/local/ssl CFLAGS="-funroll-loops -02 -finline-functions" ./configure --prefix=/home/httpd --enable-module=so --add-module=src/modules/standard/mod_usertrack.c --enable-module=rewrite --enable-module=ssl --enable-module=log_referer --enable-module=vhost_alias --enable-module=mmap_static --enable-module=log_agent --disable-module=imap