X-Spam-Check-By: sourceware.org
Message-ID: <1d3a88250605131534n5462b308oef22cbf2dd0f4159@mail.gmail.com>
Date: Sun, 14 May 2006 00:34:09 +0200
From: Lloeki <lloeki@gmail.com>
To: cygwin@cygwin.com
Subject: Re: PHP for Cygwin
In-Reply-To: <4464D621.1A6ACBC6@dessent.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Disposition: inline
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAlHG5AM/MnEOuR6C3tkYdTMKAAAAQAAAAF3zUc3n9Nk2uSpohprrVHQEAAAAA@videotron.ca> 	 <4464D621.1A6ACBC6@dessent.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id k4DMYGAn027995

> Getting PHP to build under Cygwin is NOT trivial;While not strictly trivial, it's not hard at all. It required me nopatches or whatever. That is, if you keep your track on buildingstatic stuff (CGI/FCGI, CLI, static in apache or the likes, but notapxs/apxs2, .SO and the likes). I compiled it numerous timessuccessfully. Just install the right libs/packages and it will compilefine.
for reference, here's roughly my configure for php 5.1.2 (wrapped in abuild script)
        ./configure \                --prefix=/opt/php  \                --disable-ipv6 --with-zlib --enable-bcmath \                --enable-calendar --disable-dom --enable-exif --enable-ftp --wi$                --with-gettext --enable-mbstring \                --with-mysql=/opt/mysql --enable-pcntl \                --with-readline  --without-pear \                --enable-fastcgi
then make && make install
then I just do this, for convenience:
       cp sapi/cli/php.exe /opt/php/bin/php_cli.exe        ln -sf /opt/php/bin/php_cli.exe /usr/bin/php        cp php.ini-dist /etc/php.ini.default        if [ -e /etc/php.ini ]; then                echo "/etc/php.ini preserved"        else                cp /etc/php.ini.default /etc/php.ini        fi        ln -sf /etc/php.ini /opt/php/lib/php.ini
that's all. cli+cgi/fcgi on one run.
Lloeki
