[Koha-bugs] [Bug 13486] About page Apache version is empty if Apache version is 2.4

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 22 03:30:00 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13486

Jerry Weng <chenyi.weng at techyi.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #1 from Jerry Weng <chenyi.weng at techyi.com> ---
(In reply to Jerry Weng from comment #0)
> Overview: 
> 
> Ubuntu 14.04.1, Apache version 2.4.7-1ubuntu4.1, Koha 3.18.01
> About Koha Page -> Server information -> Apache version is empty
> 
> Errors in directly running /usr/sbin/apache2 -V and similar entries in
> /var/log/koha/library/intranet-error.log 
> [Mon Dec 22 10:18:42.479349 2014] [core:warn] [pid 2225] AH00111: Config
> variable ${APACHE_PID_FILE} is not defined
> [Mon Dec 22 10:18:42.480141 2014] [core:warn] [pid 2225] AH00111: Config
> variable ${APACHE_RUN_USER} is not defined
> [Mon Dec 22 10:18:42.480616 2014] [core:warn] [pid 2225] AH00111: Config
> variable ${APACHE_RUN_GROUP} is not defined
> [Mon Dec 22 10:18:42.481116 2014] [core:warn] [pid 2225] AH00111: Config
> variable ${APACHE_LOG_DIR} is not defined
> [Mon Dec 22 10:18:42.728000 2014] [core:warn] [pid 2225] AH00111: Config
> variable ${APACHE_RUN_DIR} is not defined
> [Mon Dec 22 10:18:42.776297 2014] [core:warn] [pid 2225] AH00111: Config
> variable ${APACHE_LOG_DIR} is not defined
> AH00543: apache2: bad user name ${APACHE_RUN_USER}

Worked after fixing the following line, also tested on Apache/2.2.22 (Ubuntu),
seems backward compatible.

/usr/share/koha/intranet/cgi-bin/about.pl

 my $mysqlVersion  = `mysql -V`;
 my $apacheVersion = `httpd -v 2> /dev/null`;
 $apacheVersion = `httpd2 -v 2> /dev/null` unless $apacheVersion;
+$apacheVersion = (`/usr/sbin/apache2ctl -V 2> /dev/null`)[0] unless
$apacheVersion;
-$apacheVersion = (`/usr/sbin/apache2 -V`)[0] unless $apacheVersion;
 my $zebraVersion = `zebraidx -V`;

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list