[opensuse] Apache Start Up Problem
Hi All, I had a weird problem today. I noticed that after a reboot of my server, my owncloud instance on my desktop was complaining about an invalid certificate. I tried to 'open owncloud in browser' and was presented with my apache default page. So first thing I tried is restart the apache service. This fixed the problem. However, every time I reboot apache is not loading my configuration correctly and the problem repeats. It appears to be loading the default configuration file fine at boot but ignoring the other files. (including owncloud). But when I manually stop and start the service they load fine. Huh?? Any idea how I can diagnose what is causing this problem? What is the difference between the apache service loading at boot compared to manually starting the service? Thanks -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Paul Groves wrote:
I had a weird problem today. I noticed that after a reboot of my server, my owncloud instance on my desktop was complaining about an invalid certificate. I tried to 'open owncloud in browser' and was presented with my apache default page.
So first thing I tried is restart the apache service. This fixed the problem. However, every time I reboot apache is not loading my configuration correctly and the problem repeats.
It appears to be loading the default configuration file fine at boot but ignoring the other files. (including owncloud). But when I manually stop and start the service they load fine. Huh??
Any idea how I can diagnose what is causing this problem?
What is the difference between the apache service loading at boot compared to manually starting the service?
Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference. -- Per Jessen, Zürich (20.1°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/09/17 17:35, Per Jessen wrote:
Paul Groves wrote:
I had a weird problem today. I noticed that after a reboot of my server, my owncloud instance on my desktop was complaining about an invalid certificate. I tried to 'open owncloud in browser' and was presented with my apache default page.
So first thing I tried is restart the apache service. This fixed the problem. However, every time I reboot apache is not loading my configuration correctly and the problem repeats.
It appears to be loading the default configuration file fine at boot but ignoring the other files. (including owncloud). But when I manually stop and start the service they load fine. Huh??
Any idea how I can diagnose what is causing this problem?
What is the difference between the apache service loading at boot compared to manually starting the service? Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference. systemctl start apache2 or service apache2 start
How does a service load at boot? I do not understand how it can be missing a configuration file on load. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Paul Groves wrote:
On 08/09/17 17:35, Per Jessen wrote:
Paul Groves wrote:
I had a weird problem today. I noticed that after a reboot of my server, my owncloud instance on my desktop was complaining about an invalid certificate. I tried to 'open owncloud in browser' and was presented with my apache default page.
So first thing I tried is restart the apache service. This fixed the problem. However, every time I reboot apache is not loading my configuration correctly and the problem repeats.
It appears to be loading the default configuration file fine at boot but ignoring the other files. (including owncloud). But when I manually stop and start the service they load fine. Huh??
Any idea how I can diagnose what is causing this problem?
What is the difference between the apache service loading at boot compared to manually starting the service? Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference. systemctl start apache2 or service apache2 start
How does a service load at boot? I do not understand how it can be missing a configuration file on load.
If your config files were on a filesystem still to be mounted when apache starts (on a reboot), but that's a bit far fetched I would say. On a reboot, before you restart apache2, investigate how it was started - which arguments etc. There must be some sort of difference to a manual restart. -- Per Jessen, Zürich (14.1°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service?
Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference.
Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
Carlos E. R. wrote:
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service?
Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference.
Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully.
In principle yes, in practice a vanilla Apache doesn't need any other service. The way Paul describes the issue, it is as if Apache comes with two different configs. If the vhosts config directory was NFS mounted .... -- Per Jessen, Zürich (15.0°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/09/17 13:05, Per Jessen wrote:
Carlos E. R. wrote:
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service? Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference. Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully. In principle yes, in practice a vanilla Apache doesn't need any other service. The way Paul describes the issue, it is as if Apache comes with two different configs. If the vhosts config directory was NFS mounted ....
All config files (including the default file) are in /etc/apache2/ on the root filesystem Again, the default file is loading fine but my site config files are not. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Paul Groves wrote:
On 09/09/17 13:05, Per Jessen wrote:
Carlos E. R. wrote:
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service? Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference. Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully. In principle yes, in practice a vanilla Apache doesn't need any other service. The way Paul describes the issue, it is as if Apache comes with two different configs. If the vhosts config directory was NFS mounted ....
All config files (including the default file) are in /etc/apache2/ on the root filesystem
Right.
Again, the default file is loading fine but my site config files are not.
Anything unusual in the logs? system logs, apache logs, startup logs? -- Per Jessen, Zürich (15.4°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op zondag 10 september 2017 13:25:18 CEST schreef Paul Groves:
On 09/09/17 13:05, Per Jessen wrote:
Carlos E. R. wrote:
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service?
Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference.
Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully.
In principle yes, in practice a vanilla Apache doesn't need any other service. The way Paul describes the issue, it is as if Apache comes with two different configs. If the vhosts config directory was NFS mounted ....
All config files (including the default file) are in /etc/apache2/ on the root filesystem
Again, the default file is loading fine but my site config files are not.
What the actual root of your website? /srv/www/htdocs ?? Are the files owned by wwwrun:www ?? Could you post the /etc/apache2/. ....conf for the site on paste.opensuse,org and post the link here? And, like Per says, check /var/log/apache2/error_log -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Knurpht - Gertjan Lettink wrote:
Op zondag 10 september 2017 13:25:18 CEST schreef Paul Groves:
On 09/09/17 13:05, Per Jessen wrote:
Carlos E. R. wrote:
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service?
Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference.
Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully.
In principle yes, in practice a vanilla Apache doesn't need any other service. The way Paul describes the issue, it is as if Apache comes with two different configs. If the vhosts config directory was NFS mounted ....
All config files (including the default file) are in /etc/apache2/ on the root filesystem
Again, the default file is loading fine but my site config files are not.
What the actual root of your website? /srv/www/htdocs ?? Are the files owned by wwwrun:www ??
For the content, as long as they can be read, that'll suffice. -- Per Jessen, Zürich (17.8°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/09/17 13:26, Knurpht - Gertjan Lettink wrote:
Op zondag 10 september 2017 13:25:18 CEST schreef Paul Groves:
Carlos E. R. wrote:
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service? Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference. Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully. In principle yes, in practice a vanilla Apache doesn't need any other service. The way Paul describes the issue, it is as if Apache comes with two different configs. If the vhosts config directory was NFS mounted .... All config files (including the default file) are in /etc/apache2/ on
On 09/09/17 13:05, Per Jessen wrote: the root filesystem
Again, the default file is loading fine but my site config files are not. What the actual root of your website? /srv/www/htdocs ?? yes Are the files owned by wwwrun:www ?? yes Could you post the /etc/apache2/. ....conf for the site on paste.opensuse,org and post the link here? /etc/apache2/apache2.conf below. (I removed all the hundreds of comments and instructions).
I don't see how it could be this, I haven't change this file since install time and it did work fine until recently. And again, it works when I manually start the service. No updates have been installed either. DefaultRuntimeDir ${APACHE_RUN_DIR} PidFile ${APACHE_PID_FILE} Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 5 User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} HostnameLookups Off ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn IncludeOptional mods-enabled/*.load IncludeOptional mods-enabled/*.conf Include ports.conf <Directory /> Options FollowSymLinks AllowOverride None Require all denied </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> AccessFileName .htaccess <FilesMatch "^\.ht"> Require all denied </FilesMatch> LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %O" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent IncludeOptional conf-enabled/*.conf IncludeOptional sites-enabled/*.conf
And, like Per says, check /var/log/apache2/error_log Blank
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-09-09 14:05, Per Jessen wrote:
Carlos E. R. wrote:
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service?
Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference.
Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully.
In principle yes, in practice a vanilla Apache doesn't need any other service. The way Paul describes the issue, it is as if Apache comes with two different configs. If the vhosts config directory was NFS mounted ....
Some filesystem that mounts via network, or perhaps encryption... :-? Some of the large data directories I serve to my local network are in an external (usb3) drive that is also encrypted. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On 10/09/17 22:22, Carlos E. R. wrote:
On 2017-09-09 14:05, Per Jessen wrote:
Carlos E. R. wrote:
On 2017-09-08 18:35, Per Jessen wrote:
Paul Groves wrote:
What is the difference between the apache service loading at boot compared to manually starting the service? Assuming by "manually starting the service" you mean "systemctl start apache2", there should be no difference. Well, yes, there is one: during boot, some other needed service may not have started yet. Later on, they are all running, hopefully. In principle yes, in practice a vanilla Apache doesn't need any other service. The way Paul describes the issue, it is as if Apache comes with two different configs. If the vhosts config directory was NFS mounted .... Some filesystem that mounts via network, or perhaps encryption... :-? There is only one filesystem. root on an SSD. Nothing is mounted to this server.
Some of the large data directories I serve to my local network are in an external (usb3) drive that is also encrypted.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I had to reboot the server the other day and I am back at this problem again. I have several config files: in /etc/apache2/ aaa-default.conf owncloud.conf portal.conf and a few config files for some websites When apache loads up at boot time it only loads aaa-default.conf and ignores the other files If I restart the apache service manually then all files are loaded fine. I cannot see anything obvious as to the cause in the error log.Is there a service start log for apache anywhere? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi Everyone, Still having trouble with this and not made any progress. Apache is still not loading any other config files at boot time other than the default one. However, the files are then loaded when typing systemctl restart apache2 Is there any log file for the apache service that may show what happens when the service starts at boot time i.e. in systemctl somewhere? The regular apache log shows nothing out of the ordinary. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
Knurpht - Gertjan Lettink
-
Paul Groves
-
Per Jessen