|
Posted by Henry Castillo on 11/27/05 18:06
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. <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 :-)
>
Navigation:
[Reply to this message]
|