: Apache .conf files not working. Apache restarts even without ANY conf files For some reason, my apache instances have stopped updating their conf files. I am able to reboot apache without any
For some reason, my apache instances have stopped updating their conf files. I am able to reboot apache without any errors logged and apache will not recognize any changes.
I have gone so far as to actually try to break apache by removing the </VirtualHost> tag at the end of my .conf file and rebooting only to have it restart without error.
Next I fully removed all .conf files from the apache directory and restarted. Again apache started without error.
I have run updates, upgrades, rebooted multiple times.
How is this possible? How can apache reboot while having no conf files to work with? This is affecting multiple servers of mine, not just an individual one.
More posts by @Si4351233
1 Comments
Sorted by latest first Latest Oldest Best
So I solved this after many hours of going back and forth. I wanted to post incase anyone has the same issue.
Problem:
Somehow, all of the 000-default.conf symlinks within my /sites-enabled folder were replaced by the actual file 000-default.conf about 2 weeks ago. This happened on approx 90% of my servers, so the incident was not isolated.
Since the symlink was broken, there was no way for it to reflect the changes, and kept rebooting based on the config which was written in its place.
Solution:
Remove the 000-default.conf from /etc/apache2/sites-enabled
Re-enable the site using a2ensite 000-default.conf
service apache2 restart
This seems to have fixed the issue. Hopefully it helps someone else down the road. I still have no idea what caused the symlink to be overwritten by the actual file.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.