richardforth / apache2buddy

apache2buddy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buddy cannot load includes

rvcoutinho opened this issue · comments

Includes as httpd-mpm.conf not loaded (ServerLimit is set in httpd-mpm.conf):

VERBOSE: Processing conf/httpd.conf
VERBOSE: Searching Apache configuration for the user directive
VERBOSE: ${APACHE_USER} 
VERBOSE: Using Ubuntu workaround for: user
VERBOSE: Processing /etc/apache2/envvars
[ >> ] Running user (httpd) does NOT match config (www-data).
VERBOSE: Searching Apache configuration for the pidfile directive
VERBOSE: CONFIG NOT FOUND 
[ -- ] pidfile setting is CONFIG NOT FOUND.
VERBOSE: Stripping any quotes from string ...
VERBOSE: BEFORE (CONFIG NOT FOUND).
VERBOSE: AFTER (CONFIG NOT FOUND).
[ -- ] Actual pidfile is /usr/local/apache2/logs/httpd.pid.
[ -- ] Parent PID: 1.
VERBOSE: output of 'pmap' is different depending on distro!
[ OK ] Memory usage of parent PID is less than 50MB: 42160 Kilobytes.
VERBOSE: PID passed to uptime function: 1
VERBOSE: Raw uptime: 29:12
[ -- ] Apache has been running 0d 0h 29m 12s.
[ !! ] *** LOW UPTIME ***.
[ @@ ] The following recommendations may be misleading - apache has been restarted within the last 24 hours.
[ -- ] Your server has 29980 MB of PHYSICAL memory.
VERBOSE: Searching Apache configuration for the serverlimit directive
VERBOSE: CONFIG NOT FOUND 
[ >> ] ServerLimit directive not found, assuming default values.
[ -- ] Your ServerLimit setting is 16.

It ends up in a division by 0 error:

VERBOSE: Memory usage by PID 2656 is K
VERBOSE: Memory usage by PID 2657 is K
VERBOSE: Memory usage by PID 2658 is K
Use of uninitialized value $count in division (/) at - line 958 (#1)

Illegal division by zero at - line 958 (#2)
    (F) You tried to divide a number by 0.  Either something was wrong in
    your logic, or you need to put a conditional in to guard against
    meaningless input.
    
Uncaught exception from user code:
	Illegal division by zero at - line 958.
	main::get_memory_usage("httpd", "httpd", "average") called at - line 2772

What version of Ubuntu do you have and how did you install Apache?

Running official httpd Docker version using debian:buster