Reply to Re: Can't execute external program

Your name:

Reply:


Posted by "n.g." on 11/25/05 10:25

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. <nyvsld@gmail.com> wrote:
> 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@gmail.com> 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@gmail.com> wrote:
> > >
> > > is /var/www/html your web root dir ?
> > > maybe its the plobrem.
> > >
> > > On 11/23/05, Henry Castillo <henryperu@gmail.com> 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 :-)
>


--
Tomorrow will be a good day :-)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация