X-Spam-Check-By: sourceware.org
Message-ID: <43D3F58C.2030103@verysmall.org>
Date: Sun, 22 Jan 2006 22:13:48 +0100
From: "pobox@verysmall.org" <pobox@verysmall.org>
User-Agent: Thunderbird 1.6a1 (Windows/20060119)
MIME-Version: 1.0
To: cygwin@cygwin.com
CC: robert@webtent.com
Subject: Re: Running php scripts under cygwin
References: <43CA8A92.2000409@webtent.net> <1137355920.7806.251903339@webmail.messagingengine.com> <43CAB25B.8070808@webtent.net> <43CAB584.49D4C018@dessent.net> <43CAF207.3090203@webtent.net>
In-Reply-To: <43CAF207.3090203@webtent.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> Thanks for the tips. Luckily I came back to the list after trying to 
> build PHP with some options with no luck. I only need a static build and 
> that installed fine. Then I had a warning about using date() and set the 
> default timezone prior to the call in the script to get by that. Now it 
> says mail() is an unknown function. What is this missing?

Here is how I compile php 5.x under cygwin.

I have these cygwin modules (may be you do not need all, just I do not 
know which you need) -

bison, bzip2, cvs, flex, gcc, gd, grep, keychain, libtool1.5, libxml, 
libxml2, libxml2-devel, make, openssh, perl, readline, rsync, 
subversion, unzip, vim, whois, zip

Get Apache 1.3.34 sources and php 5.1.1 sources.

Go into Apache sources directory and do

./configure

Go into php sources directory and do

./configure --with-apache=PATH_TO_APACHE_SOURCES --without-pear

(--without-pear is needed - otherwise does not work)

make
make install

make install will suggest that you add /usr/local/lib/php to your 
php.ini include_path.

Copy the php.ini into /usr/local/lib/php.ini and edit if needed.

Go back to the Apache sources directory.

./configure --activate-module=src/modules/php5/libphp5.a

make
make install

You might need to do

mv /usr/local/apache/libexec/libhttpd.dll /usr/local/apache/bin

With this you will have php cli, I believe, so you can execute scripts 
with cron.

Iv


--
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/

