I use CenOS Enterprise 5. I've removed existing apache2 then installed the latest apache2. Everything is fine except the original /etc/rc.d/init.d/httpd is now missing. Without this file I can't add httpd to service (commands like "service httpd start" does not work). I have tried to link /usr/local/apache2/bin/apachectl to /etc/rc.d/init.d/httpd, but it won't work.
[root@cenos bin]# ln -s /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
[root@cenos bin]# service httpd start
httpd: unrecognized service
My question is how to add the latest apache2 startup command to service. Can someone provides me the original /etc/rc.d/init.d/httpd script for CenOS Enterprise 5? I googled but could not find the latest one.
Thanks!
---------- Post updated at 11:55 AM ---------- Previous update was at 11:22 AM ----------
Ok. The link is working and httpd can be started by service. A new issue occurs:
[root@cenos]# service httpd status
/etc/init.d/httpd: line 95: lynx: command not found
[root@cenos init.d]#