Perl- Access is denied :couldn’t create child process: 720005
Written by Saran on
September 8, 2011,
Updated
December 21, 2013This error entry in apache’s error log when you try to run perl script could be very frustrating. The only solution is to narrow down the issue. Make sure
web development environment is ready,
Perl Binary is Installed, if everything is O.K, open and review Apache's httpd.conf file, which is usually located in
Apache/conf folder.
- In httpd.conf, find <Directory in httpd.conf file, inside this tag make sure line reads - Options Indexes FollowSymLinks ExecCGI
- Find another line AddHandler cgi-script .cgi in httpd.conf and just below it add AddHandler cgi-script .pl, ignore if it's already there. You should be able to run perl scripts on your server now. But above error still persist, we need to modify perl script file:
- If you are on windows set your script path to #!Perl from #!c:/dir/perl and add use CGI::Carp qw( fatalsToBrowser ); in your perl file something like[cc lang="perl"] #!Perl print "Content-type: text/htmlnn"; use CGI::Carp qw( fatalsToBrowser ); print "Hellow world"; [/cc]