LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-18-2018, 12:51 PM   #1
krakanut
Member
 
Registered: Aug 2012
Distribution: The Slackware
Posts: 62

Rep: Reputation: Disabled
httpd.conf and php.ini affected after upgrade


Hello all, I am running 14.2 and just used slackpkg to upgrade to the 4.4.111 kernel and latest bind package. After I ran this I - admittedly in error - selected to use the new config files. I do not use bind services so did not think would hurt. In any case, after reboot, my sugarcrm quit working. I traced back to missing information in httpd.conf and etc/php.ini. Neither of the file dates were changed (ls -tl) I am just curious why these files were affected at all for the kernel/bind updates and more so why the file date would not have been changed to today's date.
 
Old 01-18-2018, 02:05 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by krakanut View Post
Neither of the file dates were changed (ls -tl) I am just curious why these files were affected at all for the kernel/bind updates and more so why the file date would not have been changed to today's date.
These files were not affected by the recent updates, but php was last updated on Fri Oct 27 20:34:35 UTC 2017 and httpd on Wed Oct 25 19:09:26 UTC 2017.

So if something is missing in these files this has been since when you applied these updates or before, no later (unless you edited these files yourself later).

I'd check if there has been a change in sugarcrm instead.
 
Old 01-18-2018, 02:12 PM   #3
krakanut
Member
 
Registered: Aug 2012
Distribution: The Slackware
Posts: 62

Original Poster
Rep: Reputation: Disabled
That is the crazy part, those config files were dated 10/26 but they were missing some config settings - i.e. the server IP address in httpd.conf. Sugar was working up to the point I ran the most recent updates. Could it be possible that all the config files were updated because I selected use new on this update?

Just to confirm, these are the upgrades I made this morning.

-rw-r--r-- 1 root root 3477928 Jan 18 06:50 kernel-source-4.4.111-noarch-1
-rw-r--r-- 1 root root 253536 Jan 18 06:48 kernel-modules-4.4.111-x86_64-1
-rw-r--r-- 1 root root 974 Jan 18 06:48 kernel-huge-4.4.111-x86_64-1
-rw-r--r-- 1 root root 25089 Jan 18 06:48 kernel-headers-4.4.111-x86-1
-rw-r--r-- 1 root root 978 Jan 18 06:48 kernel-generic-4.4.111-x86_64-1
-rw-r--r-- 1 root root 60683 Jan 18 06:48 kernel-firmware-20180104_65b1c68-no
-rw-r--r-- 1 root root 14070 Jan 18 06:47 bind-9.10.6_P1-x86_64-1_slack14.2
 
Old 01-18-2018, 02:23 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by krakanut View Post
That is the crazy part, those config files were dated 10/26 but they were missing some config settings - i.e. the server IP address in httpd.conf. Sugar was working up to the point I ran the most recent updates. Could it be possible that all the config files were updated because I selected use new on this update?
Exactly that happened.
If slackpkg asks you what to do with the .new files, you should always determine if that can be done using the interactive process (pick option 'p') and then use the diff menu to view the differences to your original configuration files. The Slackware package tools did not overwrite your configuration, with good reason. You overwrote your customized httpd.conf and php.ini when you told slackpkg to use all the .new files it found.
Note that your originals should still be present on the system, they will have been suffixed with ".orig". Moving them back in place will solve your issue but please spend a little time comparing the old and the new files to see if there's anything in the new files you need to adopt in your original files.

It would be good if you read this: https://docs.slackware.com/howtos:sl...using_slackpkg
 
2 members found this post helpful.
Old 01-18-2018, 02:54 PM   #5
krakanut
Member
 
Registered: Aug 2012
Distribution: The Slackware
Posts: 62

Original Poster
Rep: Reputation: Disabled
Thank you for the explanation - I was not aware that slackpkg would do this. I be more careful in future.
 
  


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
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
PHP module not in httpd.conf alkmie Mandriva 2 07-19-2006 07:43 PM
modifying httpd.conf for php Cikotic Linux - Software 6 08-22-2004 12:38 PM
PHP.ini Troubles on conf file Gerardoj Linux - General 3 03-24-2004 08:03 PM
PHP and httpd.conf adcripps Linux - Newbie 8 05-18-2002 04:23 PM

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

All times are GMT -5. The time now is 08:00 AM.

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
Open Source Consulting | Domain Registration