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 have a OpenVZ container running Debian 6 on my server. After every restart of the container I have to manually start the Apache2 web server using its init script. In the error log I can't find any useful information.

Every suggestion is appreciated :-).

share|improve this question
    
Check /var/log/apache2/error.log after container restart –  Kamil Šrot Dec 8 '12 at 17:06

1 Answer 1

Is it possible that Apache2 is not registered as a service in your container? If so you may run insserv /etc/init.d/apache2 in the OpenVZ container to star apache at boot.

share|improve this answer
    
Unfortunately this didn't help. I executed the command you proposed, it executed without any feedback. Any other suggestions? –  Ulf Klose Oct 21 '12 at 18:51
    
well the insserv command does not output anything, did you restart the container after running that command to see if apache is starting at boot? If it isn't can you check the apache error log to see if there are any errors there? –  Ducu Oct 22 '12 at 7:24

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.