0

I just installed Apache 2 on CentOS5 from source (httpd-2.2.15.tar.gz) using:

./configure --prefix=/usr/local/apache
make
make install
/usr/local/apache/bin/apachectl start

I have verified that httpd is running in ps, and verified it is serving the default htdocs page. However, Apache is not found in 'service --status-all' and is not found in '/etc/init.d', so I cannot run 'service httpd status' or '/etc/init.d/httpd start', and other commands.

Any ideas what I am missing?

2 Answers2

1

service httpd status would only work on a pre-packaged apache install(i think). You are compiling by hand. There should be a contrib directory in apache source. look for an init script there. I think there is one for RedHat based systems.

solefald
  • 2,301
  • 15
  • 14
  • Hmm, I may have to resort to the pre-packaged install. Thanks for the tip. –  Apr 18 '10 at 02:55
0

Just a suggestion - try service apache2 instead of service httpd; found that works in most cases.

squircle
  • 524
  • 6
  • 14
  • Unfortunately, neither of these return any results: 'service --status-all | grep httpd' or 'service --status-all | grep apache' Thank you for your suggestion. –  Apr 18 '10 at 02:56