X-Spam-Check-By: sourceware.org Message-ID: <1d3a88250605131534n5462b308oef22cbf2dd0f4159@mail.gmail.com> Date: Sun, 14 May 2006 00:34:09 +0200 From: Lloeki To: cygwin AT cygwin DOT 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: <4464D621 DOT 1A6ACBC6 AT dessent DOT net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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