I have an apache configuration problem (Apache 2.4.6 on CentOS 7.2) which I can't ferret out with
Apache runs (it is started anew every Monday because the system is a virtual box for development) but shows the "It works!" page only;
apachectl -S doesn't emit any output. In fact, any execution of the
/sbin/apachectl script yields no output at all.
/sbin/httpd -t tells me, "
Syntax OK" (this had found some errors for which
apachectl -t had let me down, especially in my macros use).
Probably relevant non-standard features of my configuration:
- I use apache macros (
LoadModule macro_module modules/mod_macro.so)
- I use symbolic links in my configuration (e.g. links to
sites-available/*.conffiles in a
sites-enabled/sibling directory which doesn't seem to be used by default in CentOS installations). (No broken links, AFAICS;
httpd -twould have complained, as I just tested.)
I found the following error in the
journalctl -xe output:
Could not open configuration file /etc/httpd/sites-enabled/vhosts-vbox-therp.conf: Permission denied. However, IMHO there is nothing wrong with this file:
lrwxrwxrwx. root root /etc/httpd/sites-enabled/vhosts-vbox-therp.conf -> ../sites-available/vhosts-vbox-therp.conf -rw-r--r--. root root /etc/httpd/sites-available/vhosts-vbox-therp.conf drwxr-xr-x. root root /etc/httpd/sites-available drwxr-xr-x. root root /etc/httpd/sites-enabled drwxr-xr-x. root root /etc/httpd drwxr-xr-x. root root /etc dr-xr-xr-x. root root /
After elimination of that mentioned symlink, Apache reloaded successfully; however, the rest of the problem persists (no virtual hosts, no
I updated apache (
yum update httpd; now
2.4.6-40.el7.centos before). Didn't help.
There are still some symbolic links (used via macros), but I have a productive CentOS server where they don't cause problems (
(... and I fixed a few typos.)