This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]



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/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/ /etc/apache/httpd.conf
rm /etc/apache/

$ 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.
Nur tote Fische schwimmen mit dem Strom!

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]