Bug 65360 - DefaultRuntimeDir error, 500
Summary: DefaultRuntimeDir error, 500
Status: RESOLVED WORKSFORME
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_auth_digest (show other bugs)
Version: 2.4.41
Hardware: Other Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-07 06:39 UTC by TheRealOne
Modified: 2021-06-07 12:02 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TheRealOne 2021-06-07 06:39:32 UTC
I updated apache2 with sudo apt upgrade, then apache couldn't start, because of DefaultRuntimeDir

therealone@compaq:~$ apache2
[Mon Jun 07 06:30:48.491316 2021] [core:warn] [pid 22224] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

Tried starting with sudo apache2ctl start, it started, but internal server error.

[Sun Jun 06 15:35:50.339516 2021] [mpm_event:notice] [pid 854:tid 139798139325504] AH00491: caught SIGTERM, shutting down           [Sun Jun 06 15:35:53.121416 2021] [mpm_event:notice] [pid 3100:tid 140138304855104] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Sun Jun 06 15:35:53.121729 2021] [core:notice] [pid 3100:tid 140138304855104] AH00094: Command line: '/usr/sbin/apache2'           [Sun Jun 06 15:35:54.604603 2021] [core:alert] [pid 3101:tid 140138197804800] [client 192.168.1.7:59106] /var/www/html/.htaccess: Invalid command 'always', perhaps misspelled or defined by a module not included in the server configuration                          [Sun Jun 06 15:35:54.737099 2021] [core:alert] [pid 3101:tid 140138164233984] [client 192.168.1.7:59110] /var/www/html/.htaccess: Invalid command 'always', perhaps misspelled or defined by a module not included in the server configuration, referer: https://192.168.1.8/download_canary_build.html             [Sun Jun 06 15:35:55.916539 2021] [core:alert] [pid 3101:tid 140138289510144] [client 192.168.1.7:59116] /var/www/html/.htaccess: Invalid command 'always', perhaps misspelled or defined by a module not included in the server configuration                          [Sun Jun 06 15:35:56.051634 2021] [core:alert] [pid 3101:tid 140138189412096] [client 192.168.1.7:59120] /var/www/html/.htaccess: Invalid command 'always', perhaps misspelled or defined by a module not included in the server configuration, referer: https://192.168.1.8/download_canary_build.html
[Sun Jun 06 15:35:58.668675 2021] [core:alert] [pid 3101:tid 140138147448576] [client 192.168.1.7:59126] /var/www/html/.htaccess: Invalid command 'always', perhaps misspelled or defined by a module not included in the server configuration                          [Sun Jun 06 15:35:58.797576 2021] [core:alert] [pid 3101:tid 140138130663168] [client 192.168.1.7:59130] /var/www/html/.htaccess: Invalid command 'always', perhaps misspelled or defined by a module not included in the server configuration, referer: https://192.168.1.8/download_canary_build.html
Comment 1 Eric Covener 2021-06-07 10:51:12 UTC
What's the contents of /var/www/html/.htaccess?
Comment 2 TheRealOne 2021-06-07 11:53:23 UTC
Aparently the module for Headers was not loaded, tho for some reason if I don't start apache2ctl without sudo it simply doesn't work, and when restarting, the service isn't called automatically
Comment 3 TheRealOne 2021-06-07 11:55:44 UTC
The contents of .htaccess are just calling HSTS headers and a 404 page calling