I have a vps running whm and cpanel.
No .pl files will run, but instead return an error 404. whether or not they are in the cgi-bin directory. Text files that are in the cgi-bin also give a error 404.
I have checked permissions. The cgi-bin directory is 0755, and the files inside are 0644.
In WHM in global appache setup changed "directory "/" options" to inlcude exeCGI, followSymLinks, Inlcudes, IncludesNOEXEC, Indexes, SymLinksIfOwnerMatch
then restarted apache.
In my httpd.conf
I found this line was already there:
# These extensions are used to redirect incoming requests to WHM
AddHandler cgi-script .cgi .pl .plx .ppl .perl
I tried adding this to my .htaccess as well:
AddHandler cgi-script .cgi .pl
Options +ExecCGI +IncludesNOEXEC
XBitHack on
I found a link that said I needed to change my virtualhost to include this line:
ScriptAlias /cgi-bin/ "/var/www/vhosts/mysite.com/httpdocs/cgi-bin/"
but my httpd.conf has this line already:
<IfModule alias_module>
ScriptAlias /cgi-bin/ /home/qsginc/public_html/cgi-bin/
</IfModule>
which is the right directory.
I found this link in the forums here:
Perl files return 404
but it's not really for easy appache 4
Can someone please let me know what I missed here?
No .pl files will run, but instead return an error 404. whether or not they are in the cgi-bin directory. Text files that are in the cgi-bin also give a error 404.
I have checked permissions. The cgi-bin directory is 0755, and the files inside are 0644.
In WHM in global appache setup changed "directory "/" options" to inlcude exeCGI, followSymLinks, Inlcudes, IncludesNOEXEC, Indexes, SymLinksIfOwnerMatch
then restarted apache.
In my httpd.conf
I found this line was already there:
# These extensions are used to redirect incoming requests to WHM
AddHandler cgi-script .cgi .pl .plx .ppl .perl
I tried adding this to my .htaccess as well:
AddHandler cgi-script .cgi .pl
Options +ExecCGI +IncludesNOEXEC
XBitHack on
I found a link that said I needed to change my virtualhost to include this line:
ScriptAlias /cgi-bin/ "/var/www/vhosts/mysite.com/httpdocs/cgi-bin/"
but my httpd.conf has this line already:
<IfModule alias_module>
ScriptAlias /cgi-bin/ /home/qsginc/public_html/cgi-bin/
</IfModule>
which is the right directory.
I found this link in the forums here:
Perl files return 404
but it's not really for easy appache 4
Can someone please let me know what I missed here?
Last edited by a moderator: