Allow apache to run a program
Robert Heller
heller at deepsoft.com
Tue Sep 6 19:32:36 UTC 2022
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
More information about the ubuntu-users
mailing list