Try verifying the following: - does the web server user (apache/nobody) have a shell? - can the web server user/group execute the file? (x permission) I believe this is your problem, the exec option for the apache would be useful if you need to run an executable from the apache service, not from the command line. Check out the earlier and I think you're gonna solve your issue. Regards, En3pY Sebastian Konstanty Zdrojewski ________________________________ URL: http://www.en3py.net/ E-Mail: en3py@xxxxxxxx ________________________________ Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -----Messaggio originale----- Da: n.g. [mailto:nyvsld@xxxxxxxxx] Inviato: giovedì 24 novembre 2005 10.16 A: Henry Castillo Cc: php-general@xxxxxxxxxxxxx Oggetto: 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 your site to do so. On 11/24/05, Henry Castillo <henryperu@xxxxxxxxx> wrote: > 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: > [root@hnick html]# /var/www/html/myprog -E 123456789098.dat > sample1.txt sample1.new (no output, it just creates the file .new) > > Here is the php I've created, fairly simple: > <?php > exec("/var/www/html/myprog -E 123456789098.dat sample1.txt > sample1.new"); phpinfo(); ?> > > > > On 11/22/05, n.g. <nyvsld@xxxxxxxxx> wrote: > > > > is /var/www/html your web root dir ? > > maybe its the plobrem. > > > > On 11/23/05, Henry Castillo <henryperu@xxxxxxxxx> 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 exec(), system() or passthru() to run an extenal > program. > > > > From the command line it runs perfectly: > > > > > > <snip> > > > > > > > I'm getting frustrated, Any help will be deeply appreciated > > > > Henry > > > > > > The answer is probably in your php.ini. Look into whether you are > > > running in safe mode or not, and if you are whether you have your > > > program in the safe_mode_exec_dir or not. Also check > > > disable_functions to see if any of the ones you are having trouble with are listed. > > > > > > - Ben > > > > > > > > > > > > -- > > Tomorrow will be a good day :-) > > > > -- Tomorrow will be a good day :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/180 - Release Date: 23/11/2005
Attachment:
smime.p7s
Description: S/MIME cryptographic signature