Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Fri, 12 Oct 2001 05:55:51 -0700
Message-ID: <GJEHLFJEMNLAKEBLCEHAGEIOCAAA.happycloud@undream.com>
From: "Joshua" <happycloud@undream.com>
To: cygwin@cygwin.com
Subject: Hw to load php in apache
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal

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/

