Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 8 Feb 2003 03:01:07 +0100 From: Uwe Mayer Reply-To: Uwe Mayer X-Priority: 3 (Normal) Message-ID: <19736747540.20030208030107@planet-interkom.de> To: cygwin AT cygwin DOT com Subject: mod_php4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, there have been some problems installing mod_php4 with apache, using setup.exe. i had the problem previously and here is how you can install php anyways: what happens is that setup.exe installs mod_php4, returns and nothing. php doesn't work. what i did was: extract the libphp4.dll from your cygwin download directory into /usr/lib/apache/new run: $ /usr/sbin/apxs -i -a -n php4 libphp4.dll [activating module `php4' in /etc/apache/httpd.conf] cp libphp4.dll /usr/lib/apache/libphp4.dll chmod 755 /usr/lib/apache/libphp4.dll cp /etc/apache/httpd.conf /etc/apache/httpd.conf.bak cp /etc/apache/httpd.conf.new /etc/apache/httpd.conf rm /etc/apache/httpd.conf.new $ new/rebase.exe -d -b 0x68000000 -o 0x10000 /usr/lib/apache/libphp4.dll /usr/bin/cygbz21.0.dll /usr/bin/cygcrypto.dll /usr/bin/cygintl-1.dll /usr/bin/pq.dll /usr/bin/cygxml2-2.dll /usr/bin/cygz.dll d:\Cygwin\lib\apache\libphp4.dll: new base = 67ec0000, new size = 140000 d:\Cygwin\bin\cygbz21.0.dll: new base = 67e90000, new size = 30000 d:\Cygwin\bin\cygcrypto.dll: new base = 67dd0000, new size = c0000 d:\Cygwin\bin\cygintl-1.dll: new base = 67db0000, new size = 20000 d:\Cygwin\bin\pq.dll: new base = 67d80000, new size = 30000 d:\Cygwin\bin\cygxml2-2.dll: new base = 67ce0000, new size = a0000 d:\Cygwin\bin\cygz.dll: new base = 67cb0000, new size = 30000 apxs should have added the lines LoadModule php4_module lib/apache/libphp4.dll AddModule mod_php4.c to /etc/apache/httpd.conf, but it didn't add a mime type handler: AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps Adding these worked for me. Ciao, Uwe mailto:merkosh AT planet-interkom DOT de -- Nur tote Fische schwimmen mit dem Strom! -- 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/