[nylug-talk] Executable scripts and PHP5 - Apache2

Michael Bacarella
Tue Oct 31 14:18:35 EST 2006


On Tue, Oct 31, 2006 at 02:11:25PM -0500, michael.pitchford at yale.edu wrote:
> Easy Question - and an answer would be soo useful!
> 
> I have a bash script which executes just fine from the cl.
> 
> (It uses efax to answer an incoming multipage fax,
> Converts the pages to pdf, and finally posts all the pdf pages
> as a single big pdf on a html page. -So any nincompoop can send
> a fax for easy posting.)
> 
> When I call the same script with exec() in an otherwise fine html-php page,
> nothing happens. Why?
> The permissions, ownerships seem inorder, as are the paths to everything.
> We're using PHP5 and Apache2 and other exec() lines work just fine.
> 
> Where to find a solution?
> 
> Any pointers would be gratefully received. NYLUG? Where better to ask!

You can run PHP from the command line.

Try it under strace:

$ strace -f php efax.php

find your exec() call and see what happens.

--
Michael Bacarella <mbac at netgraft.com>


More information about the nylug-talk mailing list