Perl scripts are showing 404 error in cpanel
Issue: Sometimes, you get 404 error in the browser while executing perl script hosted under cPanel server.
Fix: The 404 errors may occur for perl script because of the domain doesn't have CGI enabled for the account. You can check the same using the following command:
[root@server]# grep HASCGI /var/cpanel/users/username*
HASCGI=0
^
In order to fix this issue for that user, you should be able to modify the HASCGI value in the file "/var/cpanel/users/username*" to 1 and then run /scripts/updateuserdomains and then /scripts/rebuildhttpdconf
P.S: Replace username with your actual user of the domain.
Fix: The 404 errors may occur for perl script because of the domain doesn't have CGI enabled for the account. You can check the same using the following command:
[root@server]# grep HASCGI /var/cpanel/users/username*
HASCGI=0
^
In order to fix this issue for that user, you should be able to modify the HASCGI value in the file "/var/cpanel/users/username*" to 1 and then run /scripts/updateuserdomains and then /scripts/rebuildhttpdconf
P.S: Replace username with your actual user of the domain.
Comments
Post a Comment