Shivtek
asked on
Run CGI on cpanel server
Hey Guys,
I am trying to run a cgi script (its a website page)...on a cpanel/whm server.
When I try to run that I get the following message:
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again. URL: http://www.domain.com/cgi-bin/form1.cgi
I have tried running with permission 755.
Please help
I am trying to run a cgi script (its a website page)...on a cpanel/whm server.
When I try to run that I get the following message:
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again. URL: http://www.domain.com/cgi-bin/form1.cgi
I have tried running with permission 755.
Please help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
my files are in .cgi extension and on the top it starts like this:
#!"E:\Perl\bin\perl.exe"
use CGI 'qw/:standard :html3/';
the .htaccess which is not in cgi-bin folder, but is in the domain root (public_html) has the following:
#RewriteEngine on
# Use PHP5 Single php.ini as default
#AddHandler application/x-httpd-php5s .php
AddHandler application/x-httpd-php5 .html .htm
AddHandler cgi-script cgi PHP html
AddType x-httpd-php .php .htm .htm
AddType application/x-httpd-php .php .htm .html
# AddHandler x-httpd-php .php .htm .html
<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php5
</FilesMatch>
Options All -Indexes
AddHandler cgi-script .pl .cgi
Options Includes ExecCGI
Still no luck