Allow apache to run a program
Jerry Geis
jerry.geis at gmail.com
Tue Sep 6 20:06:15 UTC 2022
On Tue, Sep 6, 2022 at 3:34 PM Robert Heller <heller at deepsoft.com> wrote:
> There is a program called suexec for that. There appears to be two packages
> available (according to apt-file): apache2-suexec-custom and
> apache2-suexec-pristine. Its been decades since I have used suexec, so I
> don't
> know what the current "state of the art" is. Running a random CGI program
> is
> potionally "dangerious" and if improperly set up, will set you up to be
> hacked.
>
>
> At Tue, 6 Sep 2022 14:43:25 -0400 "Ubuntu user technical support,? not for
> general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
>
> >
> > I am trying to get apache2 (ubuntu 20.04 LTS) to run a program from a cgi
> > script.
> > the path to the program is
> >
> > /usr/local/bin/myprogram
> >
> > How do I allow apache2 to run this program?
> >
> > I tried adding this to serve-cgi-bin.conf and restarting but did not work
> > <Directory /usr/local/bin>
> > Order Allow,Deny
> > Options ExecCGI FollowSymLinks
> > Allow from all
> > </Directory>
> >
> > Thanks,
> > Jerry
> >
>
> --
> Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
> Deepwoods Software -- Custom Software Services
> http://www.deepsoft.com/ -- Linux Administration Services
> heller at deepsoft.com -- Webhosting Services
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Thanks,
I had to enable suexec "a2enmod suexec" and things started working like I
expected.
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220906/32ad2fcd/attachment.html>
More information about the ubuntu-users
mailing list