RE: [PHP] How to access a program outside of PHP?
| From: | Adam Douglas | Date: | Wed, 10 Sep 2003 15:56:01 +0000 |
| Subject: | RE: [PHP] How to access a program outside of PHP? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162185@lists.php.net to get a copy of this message | ||
> > Hi. I'm trying to develop a web interface to the ghostscript (gs)
> > application. I have the ghostscript syntax down perfectly
> in the console.
> > Now when I go to try and do it in PHP I get nothing. No
> errors, nothing
> just
> > a blank page with PHP logs turned on and errors turned on.
>
> Does the Apache user have permission to run this program? PHP
> runs as the
> Apache user when installed as a module.
It should. I've moved the gs and all dependencies into /var/www/htdocs/.
I've ran it from that location and it seems to work fine. Also I've chowned
the /htdocs/ to be www:www. Should have all the rights it needs.
Apache/HTTPD runs as www.