delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/22/16:14:22

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019