Centos 6.2 installationApache error..



  • I’ve looked and looked and done this more than once on centos 5.x machines, but I am having an issue getting centos 6.2 up and working…all of the packages are downloading fine but I get an error when it gets to setting up and starting Apache Web Server…Iptables and selinux turned off…

    Configuring services.

    • Setting up fog user…Exists
    • Setting up and starting MySql…OK
    • Backing up user reports…OK
    • Setting up and starting Apache Web Server…Failed! (2)

    Not sure what the error (2) means I have looked at the functions script and it looks straight forward, just not sure what the deal is…any suggestions would be great, thanks!

    ********Solved, geez you can waste more time on the simple things…so it was my hostname wasn’t set for some reason, fixed that and we are good to go…

    service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: httpd: apr_sockaddr_info_get() failed for xxxx.xxx
    httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName



  • Check /etc/hosts for your hostname.
    Check /etc/httpd/conf/httpd.conf or other apache conf file for this directive:
    ServerName [url=“http://www.example.com:80”]www.example.com:80[/url]
    Check /etc/sysconfig/network for the :
    HOSTNAME= xxxxxx directive

    Somewhere you haven’t defined your machines hostname and apache is saying, “ok fine, we’re ‘localhost’ then . . .”


Log in to reply
 

459
Online

38968
Users

10709
Topics

101632
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.