LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   problem configure IBM HTTP Server with PHP support in slackware 9.1 (https://www.linuxquestions.org/questions/slackware-14/problem-configure-ibm-http-server-with-php-support-in-slackware-9-1-a-183212/)

dm0nkz 05-19-2004 05:46 AM

problem configure IBM HTTP Server with PHP support in slackware 9.1
 
Has anyone successfully installed configure IBM HTTP Server on slackware 9.1?
I am having problems/errors when restarting IBM HTTP Server...

I edited the
/opt/IBMHttpServer/conf/httpd.conf # file and added the

LoadModule php4_module libexec/libphp4.so


then i tried to restart the IBM HTTP server with ...
/opt/IBMHttpServer/bin/apachectl restart


Syntax error on line 231 of /opt/IBMHttpServer/conf/httpd.conf:
API module structure `php4_module' in file /opt/IBMHttpServer/libexec/libphp4.so is garbled - perhaps this is not an Apache module DSO?
/opt/IBMHttpServer/bin/apachectl restart: httpd could not be started


I would appreciate any help!

Thanks and God Bless!

GAVollink 05-19-2004 06:57 AM

libphp
 
Where did you get LibPHP? Did it come in the IBM Web server distribution (I'm doubting this).

Anyway, the libPHP was not compiled with the same options as Apache. You may have to rebuild PHP from source either making sure that Dynamic Shared Object support is enabled -- or using the IBM compile as a reference.

I don't have a php install in front of me, but check the output of

% ./configure --help |more

This output should show you the different DSO object support options.

Good luck

dm0nkz 05-19-2004 08:49 PM

Thanks GAVollink! You pointed me to the right direction!

I downloaded the latest PHP source...

php-4.3.6.tar.bz2

and recompiled it with the following options..


./configure --prefix=/usr --enable-force-cgi-redirect --enable-fastcgi --sysconfdir=/etc --enable-discard-path --with-config-file-path=/opt/IBMHttpServer/conf --enable-safe-mode --with-openssl --enable-bcmath --with-bz2 --with-pic --enable-calendar --enable-ctype --with-gdbm --with-db3 --enable-dbase --enable-ftp --with-iconv --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png --with-gmp --with-mysql=shared,/usr --with-xml=shared,/usr --with-gettext=shared,/usr --with-mm=/usr --enable-trans-sid --enable-shmop --enable-sockets --with-regex=php --enable-sysvsem --enable-sysvshm --enable-yp --enable-memory-limit --with-tsrm-pthreads --enable-shared --disable-debug --with-zlib=/usr --with-apxs=/opt/IBMHttpServer/bin/apxs

$ make
# make install







I think the crucial options are...

--with-apxs=/opt/IBMHttpServer/bin/apxs
--with-config-file-path=/opt/IBMHttpServer/conf


Appreciate the help! I will try to document the setup and submit it to
IBM, APACHE, and PHP..

Thanks and God Bless!

-Hanz Yoro


All times are GMT -5. The time now is 09:37 AM.