PERL DOES NOT WORK
PERL DOES NOT WORK
Hello,
I have tried to place following simple .pl script in web/domain/cgi-bin folder, and given its 755 permission, but when i try to load it into browser, it asks to download the file instead of execution.
Please help. Thanks
I have tried to place following simple .pl script in web/domain/cgi-bin folder, and given its 755 permission, but when i try to load it into browser, it asks to download the file instead of execution.
Code: Select all
#!/usr/bin/perl
print "content-type: text/html \n\n";
Re: PERL DOES NOT WORK
Works fine, but need a little adjustment in apache virtual host:
Code: Select all
<Directory /your-directory>
Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
</Directory>
Re: PERL DOES NOT WORK
didn't work, still asking for download page
Re: PERL DOES NOT WORK
get this done!
need to change web template in domain properties to 'phpcgi' and then put this .htaccess in public_html folder.
need to change web template in domain properties to 'phpcgi' and then put this .htaccess in public_html folder.
Code: Select all
AddHandler cgi-script .cgi
Options +ExecCGI