LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-19-2018, 07:18 AM   #1
Mig21
Member
 
Registered: Jan 2005
Posts: 221

Rep: Reputation: 33
Trouble after upgradepkg httpd in Slackware 14.2


I just did the security upgrade for the latest Slackware and after that Apache failed to restart. I got this in its error_log:

[Thu Jul 19 08:13:10.395352 2018] [mpm_event:notice] [pid 27081:tid 139640228599680] AH00494: SIGHUP received. Attempting to restart
httpd: Syntax error on line 149 of /etc/httpd/httpd.conf: Cannot load lib64/httpd/modules/mod_mpm_event.so into server: /usr/lib64/httpd/modules/mod_mpm_event.so: undefined symbol: ap_queue_info_wait_for_idler

Seems like maybe the new version of apache required a newer version of APR which should have been but wasn't updated at the same time.

Does anyone have a quick solution for this? I guess I'll attempt a downgrade as an emergency fix.
 
Old 07-19-2018, 07:21 AM   #2
Mig21
Member
 
Registered: Jan 2005
Posts: 221

Original Poster
Rep: Reputation: 33
For now I downloaded https://mirrors.slackware.com/slackw...0-x86_64-1.txz and did an upgradepkg with it. Seems to be running ok.
 
Old 07-19-2018, 10:59 AM   #3
petslack
LQ Newbie
 
Registered: Apr 2009
Location: Sao Paulo, Brazil
Distribution: Slackware64-Current, CentOS, Debian, Kali
Posts: 27

Rep: Reputation: 7
Hi Mig21,

Try to use the httpd version from 14.2 repo with slackpkg upgrade httpd, it has version 2.4.34 and some bugfixes as well.
After that issue a httpd -V to check APR version matches or try to disable mpm-event module in httpd.conf if you don't need it.
 
Old 07-19-2018, 01:23 PM   #4
Mig21
Member
 
Registered: Jan 2005
Posts: 221

Original Poster
Rep: Reputation: 33
I'd rather not start using slackpkg, I'm generally quite happy with Slackware's lack of a fancy package management system.
 
Old 07-19-2018, 01:47 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,867

Rep: Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584
Did you just upgrade apache or have you upgraded all the packages that are in patches/? It is possible that apache would crap out if it relies on a newer version of a program that you don't have installed.

If you did install all the new patches, did you check for a /etc/httpd/httpd.conf.new file? If this is there, it means that the conf file included in the new package doesn't match your existing one. That could be because you modified the conf file, but it could also mean that Pat or upstream did. If you do have it, it'd be wise to run a diff on it and make any changes that are necessary.

While I know you said you don't want to use slackpkg, it does have a handy search for new config files. You can simply run slackpkg new-config and it will look for any .new files and will present you options on what to do. I always select prompt and then look at the diff of each one. If it seems like it is just upstream changes, I'll tell slackpkg to overwrite it, but if it's just my changes, I'll tell slackpkg to discard the new one. If there's upstream changes along with my own changes, I'll make a note of the file, tell slackpkg to ignore it, and manually change it.
 
Old 07-19-2018, 01:48 PM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,697

Rep: Reputation: Disabled
FWIW I updated httpd to 2.4.34 on slackware64-14.2 together with the rest on the stuff in /patches and it seems to start fine with the default configuration

Code:
# httpd -V
Server version: Apache/2.4.34 (Unix)
Server built:   Jul 18 2018 17:16:51
Server's Module Magic Number: 20120211:79
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/httpd/mime.types"
 -D SERVER_CONFIG_FILE="/etc/httpd/httpd.conf"
# httpd -M                
Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 mpm_event_module (shared)
 authn_file_module (shared)
 authn_core_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_core_module (shared)
 access_compat_module (shared)
 auth_basic_module (shared)
 reqtimeout_module (shared)
 filter_module (shared)
 mime_module (shared)
 log_config_module (shared)
 env_module (shared)
 headers_module (shared)
 setenvif_module (shared)
 version_module (shared)
 unixd_module (shared)
 status_module (shared)
 autoindex_module (shared)
 dir_module (shared)
 alias_module (shared)
 
1 members found this post helpful.
Old 07-19-2018, 03:16 PM   #7
petslack
LQ Newbie
 
Registered: Apr 2009
Location: Sao Paulo, Brazil
Distribution: Slackware64-Current, CentOS, Debian, Kali
Posts: 27

Rep: Reputation: 7
Quote:
Originally Posted by Mig21 View Post
I'd rather not start using slackpkg, I'm generally quite happy with Slackware's lack of a fancy package management system.
So just download and upgrade to the latest patch for httpd from the mirror and be happy.
https://mirrors.slackware.com/slackw..._slack14.2.txz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WTF!!?? upgradepkg httpd deleted all my websites! Mig21 Slackware 17 12-27-2016 11:58 PM
[SOLVED] Slackware Current - kernel_headers -- installpkg or upgradepkg kjhambrick Slackware 4 03-06-2016 06:15 PM
question about upgradepkg on slackware 9.1 artistik Linux - General 1 03-10-2004 05:24 AM
question about upgradepkg on slackware 9.1 artistik Linux - Software 3 01-31-2004 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration