delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/15/15:12:17

X-Spam-Check-By: sourceware.org
Message-Id: <1137355920.7806.251903339@webmail.messagingengine.com>
From: "Brett Serkez" <techie AT serkez DOT net>
To: robert AT webtent DOT com, cygwin AT cygwin DOT com
MIME-Version: 1.0
References: <43CA8A92 DOT 2000409 AT webtent DOT net>
Subject: Re: Running php scripts under cygwin
In-Reply-To: <43CA8A92.2000409@webtent.net>
Date: Sun, 15 Jan 2006 15:12:00 -0500
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

> You would think I could find lots of info on this subject, but for
> some reason I can't. I found info from googling the subject and some
> mention of building php with cygwin, but do not see PHP in cygwin
> setup. I tried to run a php script from a cygwin prompt using the
> php.exe installed into Windows, but get lots of module errors. Is it
> possible to run a php script under cygwin. I just have a php script
> that I use for backup with rsync over ssh and those tools work great
> under cygwin. I'd like to use this same script that I use on my
> unix/linux servers.

You would need to down load the php source package from www.php.net,
install required development tools (i.e.,gcc, make...) and then
configure, compile and install just as you would on a Linux system.

Perl and php are so close in syntax, in the case of such a utility
script, I would image it would be easier to convert the php script to
perl to run under Cygwin, than build php from source.

Are you intending to run the script from Apache, command line, cron?

I use perl to drive rsync over ssh backups on both Linux and Windows and
it works, save the issues that have been reported on this list.  For
myself, I've had to compile a custom rsync to utilize pipes vs. a local
socket to work around initial hangs, others have see hangs with large
transfers.

Brett
----------------------------------------------------------------
Brett C. Serkez, Techie


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