Saint Isaiah

Registered
Aug 29, 2011
3
0
51
Hey everyone,

I've spent two days looking for an answer through the forums, but no matter what solution I've tried that is provided by cPanel staff, I still have this issue. So hopefully there's something small I'm missing.

Everytime I go to rebuild via EasyApache, whether it's through WHM or SSH using /scripts/easyapache, It always halts towards the very end with this error:

Code:
-- Begin test 'Basic HTTP Request for static content' --
localhost did not have any working mirrors.  Please check your internet connection or dns server. at /usr/local/cpanel/Cpanel/HttpRequest.pm line 596.
This is currently how my hosts file is configured:

Code:
127.0.0.1               62153.server.local 62153 localhost
204.45.133.242          s1.playeraffinity.net s1 localhost.localdomain localhost
And here is my resolv.conf file:

Code:
search box.local
# Generated by NetworkManager
domain box.local
nameserver 8.8.8.8
nameserver 8.8.4.4
I've tried removing "search box.local" and "domain box.local", but it's always overwritten after running EasyApache.

Now because this is merely a final test that it's having the hiccup on and the websites load perfectly when testing them after the build, would it be safe to assume this is a more trivial problem that could be disregarded, such as removing the file 'AN_EASYAPACHE_BUILD_IS_CURRENTLY_RUNNING' in /usr/local/apache, or should this be considered as something far more serious and rectified immediately?

I've tried getting help from the server provider who installed the OS (CENTOS 6.3 x86_64 standard) to take a look at it, but the most they'll offer is an OS reinstall which is impossible for me as I have my site already on the server which I must avoid interrupting.

Also, I am running cPanel on EDGE v11.32.4.11.

Any help is greatly appreciated!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

Your /etc/hosts file is incorrect. This is what you have:

Code:
127.0.0.1               62153.server.local 62153 localhost
204.45.133.242          s1.playeraffinity.net s1 localhost.localdomain localhost
You cannot have your hostname set with localhost. It should look like this:

Code:
127.0.0.1               localhost localhost.localdomain
204.45.133.242          s1.playeraffinity.net s1
Thanks!