Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange permissions problem?



 Hey David, 

Thanks!   That tip got me through it!  Once I used the proc_open() function I got a more informative error message (convert: Postscript delegate failed '/...': No such File or directory).  From there it was pretty easy to see that convert was having trouble finding ghostscript - I had a symbolic link from /usr/bin/convert -> /opt/local/bin/convert but ghostscript didn't have that same symbolic link so I created the symbolic link and everything worked!  The key was getting the error message - great tip, thanks! 

- Jared 


----- Original Message ---- 
From: David Kramer <[hidden email]> 
To: [hidden email] 
Sent: Friday, May 9, 2008 11:03:32 PM 
Subject: Re: strange permissions problem? 

Jared Carlson wrote: 
> Evening, 
> 
> This might be an easy one, but I'm struggling a bit with a PHP script.  The script simply converts a postscript file to a PNG using ImageMagick's convert... 
> 
> so: 
> 
> exec("/usr/bin/convert temp.ps temp.png"); 
> 
>>From my local server this script isn't working, it just silently fails.  However, from command line the script works just fine.  So my conclusion is the www user doesn't have permission to execute convert whereas from the command line the user (jcarl) does... 
> 
> I can dump out CONVERT help from the PHP script (so the www user can) but I can't create the PNG file via the local server... 
> 
> Any ideas?  Thanks - and have a good weekend... 


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org