Easy Apache 3 build fails -localhost did not have any working mirrors
Last Post 05 Jan 2016 03:31 PM by SuperUser Account. 0 Replies.
Author Messages
SuperUser AccountUser is Offline
New Member
New Member
Posts:17


--
05 Jan 2016 03:31 PM
    So the build gets all the way to Ioncube loader and then you get a message "localhost did not have any working mirrors. Please check your internet connection or dns server."

    This is caused by the way centos 7 (and version 6) sets up the hosts file (in particular if you use Network Manager). (/etc/hosts). The incorrect part is showing a local host entry after the normal host name.

    Here is what the incorrect part looks like:
    127.0.0.1 localhost localhost4 localhost4.localdomain4
    ::1 localhost localhost6 localhost6.localdomain6
    74.3.176.214 cpanel10.chinookservers.com cpanel10 localhost.localdomain localhost


    Now we correct it to what it should be :
    127.0.0.1 localhost localhost4 localhost4.localdomain4
    ::1 localhost localhost6 localhost6.localdomain6
    74.3.176.214 cpanel10.chinookservers.com cpanel10

    Since this was a new server, my simplest route is to do a reboot once the hosts file has been adjusted, then re-run the easy apache build. For me this worked.


    ---