For what its worth, I downloaded the Apache packages AFTER I installed the base Linux system. They compiled fine, but did not warn that the "links" package was missing.
so, make certain you have run "yum install links".
Also, nothing was mentioned in the documentation about the difference between two similar looking files in different locations: "apachectl" in "/usr/local/apache2/bin/apachectl" and "/usr/sbin/apachectl". I ended up using the /usr/sbin/apachectl. "/usr/local/apache2/bin/apachectl" to this day still returns an error: "/usr/local/apache2/apachectl: line 94: lynx: command not found". No idea why. Apache's work with the "/usr/sbin/apachectl" version however.
[root@]# ls -l /usr/local/apache2/bin/apachectl
-rwxr-xr-x. 1 root root 3428 Jan 27 12:11 /usr/local/apache2/bin/apachectl
- [root@]# ls -l /usr/sbin/apachectl
-rwxr-xr-x. 1 root root 3916 Dec 8 12:10 /usr/sbin/apachectl
I was stuck getting through all the intricacies of the file /etc/httpd/conf/httpd.conf. I'm all for web-security, but for clueless newbies like myself, its a bugger to have to wade into a plethora of Internet help files, like this one, to finally get a simple service to start.
For anybuddy else getting stuck in getting
apachectl status to return a decent value - I bet you're also getting stuck where I was with the default values not being all that good in the
/etc/httpd/conf/httpd.conf file. Uncomment and modify the appropriate sections. You may want to order
Allow from all in the
<Location /server-info> and
<Location /server-status> points just to be sure your service is starting properly. Make sure to always restart the service with
service httpd restart. Then, you can pare down access and return to
Deny from all rules when you know your Apache server's running well.