On 5/14/2020 3:04 PM, Jim Albert wrote:
On 5/14/2020 2:55 PM, Suresh Kumar wrote:
Hi, I am not an expert in Apache.
I have a synology DS918+ NAS (some kind of flavor of linux kernel
4.4) and using their package center installed apache 2.2, perl etc.
The webroot is working for php (I believe they use nginx) along with
Mariadb at
http://localIP/phpMyAdmin/
I have some perl cgi scripts and trying to execute it under
http:// localIP/myfolder/index.pl <http://index.pl>
Please note that static html is working. Thus this
http:// localIP/myfolder/index.html
works however this
http:// localIP/myfolder/index.pl <http://index.pl>
does not work and get a 500 error.
I need to enable cgi and need some guidance how to go about the change.
Thank you
You are probably missing configurations explained here:
https://httpd.apache.org/docs/2.2/mod/mod_alias.html#scriptalias
Jim
Also... please take note the warning on the above apache documentation
page about placing your scripts under DocumentRoot which appears to be
what you are doing given your script and static page are within the same
directory.
Jim