This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to build php in cygwin?
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.
begin:vcard
fn:Andrew DeFaria
n:DeFaria;Andrew
adr:;;2800 Madison Avenue C5;Fullerton;California;92831-2213;United States
email;internet:Andrew@DeFaria.com
tel;work:714-541-9960x5428
tel;fax:714-577-0618
tel;home:714-577-0618
x-mozilla-html:TRUE
url:http://defaria.com
version:2.1
end:vcard
--
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/