delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/21/09:37:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <911E4B4A51A3D3119DD600508B44B4A498E850@ammail.ucsm.ac.uk>
From: "Johnston, Keith (Ambleside)" <k DOT johnston AT ucsm DOT ac DOT uk>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: success with mod_php
Date: Wed, 21 May 2003 14:37:10 +0100
MIME-Version: 1.0

I too have been experiencing trouble with php. I got it working as follows:

when I first installed mod_php there was no 'mod_php4.dll' following
post-installion script execution. Furthermore ther were no additions to
httpd.conf to enable php processing.

I enabled php by:

1.	reinstalled php but edited the post-install script during setup to
comment the final 'rm' command - this prevents dll deletion.
#!/bin/sh
module=php4
module_dll=libphp4.dll
prefix=/usr
confdir=/etc
libdir=${prefix}/lib/apache
rebase_dlls="${libdir}/${module_dll} ${prefix}/bin/cygbz21.0.dll
${prefix}/bin/cygcrypto.dll ${prefix}/bin/cygintl-1.dll ${prefix}/bin/pq.dll
${prefix}/bin/cygxml2-2.dll ${prefix}/bin/cygz.dll
${prefix}/bin/cyggdbm.dll"
cd ${libdir}/new
${prefix}/sbin/apxs -i -a -n ${module} ${module_dll}
#${prefix}/bin/rebase -d -b 0x68000000 -o 0x10000 ${rebase_dlls}
${prefix}/bin/rebase ${rebase_dlls}
#rm -f ${libdir}/new/${module_dll}

2.	ran rebaseall - this solved the 
D:\cygwin\bin\cygintl-1.dll to > same address as parent(0xCA0000) !=
0xCB0000 
type issue.

3.	finally I edited httpd.conf to add the following lines so that the
php dll was enabled with apache:
AddModule mod_php4.c
AddType application/x-httpd-php .php
LoadModule php4_module lib/apache/new/libphp4.dll

I hope this is of help to someone.

However, I do still get the [warn] Loaded DSO lib/apache/libphp4.dll uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it > with -DE > API) message - any help with this would be appreciated...
regards,
KJ


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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