NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
winsbury
Nov 15, 2010Aspirant
Enable Perl / CGI on NV+ shared HTML directory
I have a share ( intranet ) set up as html and the website works great for html but will not execute .pl or cgi files. http://IPaddress/intranet/cgi-bin/helloworld.html ...
WhoCares_
Nov 16, 2010Mentor
winsbury wrote: 1. edit httpd.conf to ensure the additional .conf files are loaded last.
(...)
change the sequence of the last two lines
from :Include /etc/frontview/apache/addons/*.conf
Include /etc/frontview/apache/Shares.conf
to:Include /etc/frontview/apache/Shares.conf
Include /etc/frontview/apache/addons/*.conf
Should not be necessary. At least I didn't have to make any changes in the loading of the config files to make it work.
winsbury wrote: 3. Reboot the Readynas to pick up the changes.
It's not necessary to reboot. Just do a
apache-ssl -k restart -f /etc/frontview/httpd.conf
winsbury wrote: 4. Create a test .pl file
(...)cd intranet/cgi-bin
vi test.pl
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello 2 my World</H1>\n";
Save the file.
Since the file needs to be executable by the user the web server is running as, you should make that so immediately:
chmod 755 test.pl
Saves you the hassle of testing first, failing, and then changing the permissions anyway ;)
-Stefan
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!