how to build php in cygwin?
Andrew DeFaria
Andrew@DeFaria.com
Thu May 6 20:52:00 GMT 2004
Joshua Daniel Franklin wrote:
>On Thu, 6 May 2004 14:37:29 +0800, kalmen <kalmen@tm.net.my> wrote:
>
>
>>I am not familiar with compilation under cygwin , but i need the php for
>>testing most of the
>>LAMP application in cygwin , before deploy into the linux box , therefore i
>>need to try to
>>build the php and mod_php myself.
>>where can i find information for building the php ? Steps , requirements and
>>docs ?
>>
>>
>
>You can find what the Cygwin package maintainer has here:
>
>http://apache.dev.wapme.net/support/cygwin-packages/apache-modules/mod_php4/
>
>Use the README file to find out what the build requirements are.
>
>You also might be able to build the latest from source, I haven't
>tried it and don't know if it works or not.
>
>
>
Well I went to that URL and downloaded
http://apache.dev.wapme.net/support/cygwin-packages/apache-modules/mod_php4/apache-php-4.2.0-2.tar.bz2,
bunzip2 and untarred it and ran the postinstall (after first commenting
out the last line which is an rm which assumes that the preceeding line,
the rebase, doesn't fail):
$ /etc/postinstall/apache-php.sh
[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
usage: rebase -b BaseAddress [-Vdv] [-o Offset] [-T FileList | -] Files...
After this I cannot start Apache. Running a syntax check:
$ httpd -t
Syntax error on line 238 of /etc/apache/httpd.conf:
Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 126
--
Question: Why do people always seem to find things in the last place
that they look? Answer: Because most people stop looking after they find it!
--
Nebraska: At least the cows are sane.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Andrew.vcf
Type: text/x-vcard
Size: 293 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040506/5fe80a30/attachment.vcf>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list