Mail Archives: cygwin/2003/02/07/21:01:28
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/
- Raw text -