This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Hw to load php in apache
- To: cygwin at cygwin dot com
- Subject: Hw to load php in apache
- From: "Joshua" <happycloud at undream dot com>
- Date: Fri, 12 Oct 2001 05:55:51 -0700
I cannot seem yo get apache to load my php module
Here is all that I did so far. Tell me where I went wrong.
Installed and compile apache with
./configure --enable-module=so --enable-rul=SHARED_CORE
(I tried the module-enable=max but it just kept breaking)
make
make install
compile mysqlclients no problemo
compiled php with:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local -
-enable-safe-mode --enable-memory-limit --enable-track-vars --enable-trans-s
id --enable-magic-quotes --with-gd=/usr/local/gd-1.3 --with-zlib --with-db -
-with-gdbm --enable-bcmath --enable-inline-optimizations --disable-debug --w
ith-ttf --with-xml
make,
made a copy of the libphp4.a called libphp4.so for the install to be happy
make install
cd lib
gcc --shared -o libphp4.dll libphp4.a /usr/local/apahe/libexec/libhttpd.dll
copied the new libphp4.dll to apache/libexec dir ( also tried copying it
alomg with libhttpd to the main and bin dir of apache - same result)
added the lines to httpd.conf:
LoadModule libphp4_module /libexec/libphp4.dll
start apache gives:
Syntax error...
Cannot load /usr/local/apache/libphp4.dll into server: dlopen Win32 error
126
or (depending on where I put the dlls when I gcc -shared them or
afterwards):
API error..cannot find linphp4_module in libphp4.dll or something like that.
I'm not sure which error is best so to speak :)
Other things I tried:
-removing apxs and adding with-apache. same problem.
-adding --enable-module=libphp4 to apache. cannot find module
-adding -shared and libhttpd.dll path to apxs
ran out of ideas
btw. I;m using apache 1.3.20 an php 4.0.6 with diffs from stipe (thanks
stipe!)
Heeeellllpppp!!!
Joshua
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/