[PHP] Re: Can't execute external program

2005-11-27 Thread Henry Castillo
Hi, Thank you, after a frustrating month the problem was solved. My system had SElinux blocking that.. no php, apache or file permissions. Something else to keep in mind. Henry On 11/24/05, n.g. <[EMAIL PROTECTED]> wrote: > put the executable into another directory rather than DOC_ROOT, > maybe yo

[PHP] Re: Can't execute external program

2005-11-25 Thread n.g.
or `sample1.new' was created in some other directory, for exampe, the cwd of apache server process. do a search to find it , or use full path in your commandh line. On 11/25/05, n.g. <[EMAIL PROTECTED]> wrote: > sorry , i have made mistake. > > `option +exec' is not required, and there is no such

[PHP] Re: Can't execute external program

2005-11-25 Thread n.g.
sorry , i have made mistake. `option +exec' is not required, and there is no such apache option. maybe you're running php in safe_mode ? On 11/24/05, n.g. <[EMAIL PROTECTED]> wrote: > put the executable into another directory rather than DOC_ROOT, > maybe you have reached apache security settin

[PHP] Re: Can't execute external program

2005-11-24 Thread Sandy Keathley
> > Here is the php I've created, fairly simple: > > > exec("/var/www/html/myprog -E 123456789098.dat sample1.txt > > sample1.new"); > > phpinfo(); > > ?> > > From the command line it runs perfectly A PHP script runs with the permissions of the user that Apache runs as, usually "nobody". When

[PHP] R: [PHP] Re: Can't execute external program

2005-11-24 Thread Sebastian \"En3pY\" Zdrojewski
lo Cc: php-general@lists.php.net Oggetto: [PHP] Re: Can't execute external program put the executable into another directory rather than DOC_ROOT, maybe you have reached apache security settings. or try add `option +exec' to your apache conf, but be aware this maybe a security problem to you

[PHP] Re: Can't execute external program

2005-11-24 Thread n.g.
put the executable into another directory rather than DOC_ROOT, maybe you have reached apache security settings. or try add `option +exec' to your apache conf, but be aware this maybe a security problem to your site to do so. On 11/24/05, Henry Castillo <[EMAIL PROTECTED]> wrote: > Hi > Still desp

[PHP] Re: Can't execute external program

2005-11-23 Thread Henry Castillo
I added 2>&1 but still nothing... as a matter of fact it won't execute anything. I put echo exec('asdf'); and nothing happend either ( i should've echoed an error) However it'll execute some other commands echo exec('ls -lart'); will output correctly. Any ohter Idea? Henry

Re: [PHP] Re: Can't execute external program

2005-11-23 Thread comex
> Hi > Still desperate Try adding 2>&1 to the command line; maybe that will show an error. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't execute external program

2005-11-23 Thread Henry Castillo
Hi Still desperate DOCUMENT_ROOT is /var/www/html Check all settings at http://provi.voicenetworx.net:8080/t.php >From the command line it runs perfectly: [EMAIL PROTECTED] html]# /var/www/html/myprog -E 123456789098.dat sample1.txt sample1.new (no output, it just creates the file .new) Here is th

[PHP] Re: Can't execute external program

2005-11-22 Thread n.g.
is /var/www/html your web root dir ? maybe its the plobrem. On 11/23/05, Henry Castillo <[EMAIL PROTECTED]> wrote: > That was on of the first things I checked: > safe mode is set to off > Any ideas... > Henry > Voip tech said the following on 11/20/2005 10:31 PM: > > Hello, > > I cannot get exe

[PHP] Re: Can't execute external program

2005-11-22 Thread Henry Castillo
That was on of the first things I checked: safe mode is set to off Any ideas... Henry Voip tech said the following on 11/20/2005 10:31 PM: > Hello, > I cannot get exec(), system() or passthru() to run an extenal program. > From the command line it runs perfectly: > I'm getting frustrated, Any

[PHP] Re: Can't execute external program

2005-11-21 Thread Ben
Voip tech said the following on 11/20/2005 10:31 PM: Hello, I cannot get exec(), system() or passthru() to run an extenal program. From the command line it runs perfectly: I'm getting frustrated, Any help will be deeply appreciated Henry The answer is probably in your php.ini. Look into