delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/12/20:57:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 12 Oct 2001 05:55:51 -0700
Message-ID: <GJEHLFJEMNLAKEBLCEHAGEIOCAAA.happycloud@undream.com>
From: "Joshua" <happycloud AT undream DOT com>
To: cygwin AT cygwin DOT com
Subject: Hw to load php in apache
MIME-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019