On Tue, 16 Aug 2005, Evan Chaney wrote:

> In this particular instance I need PHP to be able to execute
> ImageMagick's "convert" binary which I installed using Fink. As it
> is, when I visit the page that has the PHP script in it Apache writes
> "sh: line 1: convert: command not found" to the error log.
>
> If I add a symbolic link in /usr/bin pointing to /sw/bin/convert the
> script operates fine. But I was really hoping to find a more general
> solution so I wouldn't have to create links every time I want to
> access a Fink-installed program through PHP (which runs as the same
> user as Apache?www).
>
There are several ways to accomplish this.  If you track down the script
that starts Apache (I have to admit I don't completely understand this in
Tiger -- lots of stuff starts in /System/Library/LaunchDaemons, but not
httpd as far as I can tell), you could put /sw/bin in the PATH there.
Another would be to add it to the PATH statement in /etc/rc.common.

Wayne

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wayne Brehob    [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to