Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I compiled and installed Apache from source code on Amazon EC2 running Amazon Linux Distribute. After installation, I issue the following command:

$ sudo chkconfig --add httpd

I get the error:

error reading information on service httpd: No such file or directory

How could I fix it?

share|improve this question

1 Answer 1

Locate your Apache with locate command.Also check restarting the Apache and check if its show you in process-list also check httpd -S command.

You can try this alternative:

Add to your script these lines:

#chkconfig: 345 80 20 
#description: example script

345 - levels 80 - start priority 20 - stop priority

These are example values, you can change them.

Add your script with command: chkconfig --add

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.