delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <1d3a88250605131534n5462b308oef22cbf2dd0f4159@mail.gmail.com> |
Date: | Sun, 14 May 2006 00:34:09 +0200 |
From: | Lloeki <lloeki AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: PHP for Cygwin |
In-Reply-To: | <4464D621.1A6ACBC6@dessent.net> |
MIME-Version: | 1.0 |
References: | <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAlHG5AM/MnEOuR6C3tkYdTMKAAAAQAAAAF3zUc3n9Nk2uSpohprrVHQEAAAAA AT videotron DOT ca> <4464D621 DOT 1A6ACBC6 AT dessent DOT net> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |