How to solve 404 Error on temporary cPanel URL
Some times when you go to the temporary cPanel URL i.e. http://ip/~username/ you get a 404 Not Found error.
If you don’t know “How to solve 404 Error on temporary cPanel URL” then refer below mentioned steps:
To resolve this first tail the apache error log:
[root@serversolutions~]# tail -f /usr/local/apache/logs/error_log [Thu May 15 14:21:23 2008] [error] [client 188.8.131.52 ] File does not exist: /usr/local/apache/htdocs/~username, referer: [Thu May 15 14:21:23 2008] [error] [client 184.108.40.206] File does not exist: /usr/local/apache/htdocs/~username, referer:
If you get the above error it is most likely that mod_userdir protection is enabled for the user nobody (DefaultHost) and it should be disabled.
To disable mod_userdir follow the steps below :
01. Login to WHM & click on “Security Center”
02. Navigate to Apache mod_userdir Tweak and make sure DefaultHost (nobody) is checked under the excluded box
03. click Save at the bottom and try again.
If you wish to allow access of temporary URL’S for specific users than you put the desired users in the ‘additional users‘ section for ‘DefaultHost (nobody)’ under ‘Apache mod_userdir Tweak’ in WHM.