Koozali.org: home of the SME Server

Problem with httpd.conf

Offline Alex_SG

  • 7
  • +0/-0
Problem with httpd.conf
« on: February 12, 2017, 02:23:19 AM »
Hi!

The changes for virtual domains and host will be not applied.

My /etc/httpd/conf/ looks:

-rw-r--r-- 1 root root  33603 24. Jan 18:20 httpd.conf
-rw------- 1 root root  35567 11. Feb 12:22 httpd.conf.1035
-rw------- 1 root admin 35567 11. Feb 00:01 httpd.conf.16217
-rw------- 1 root admin 37293 11. Feb 17:38 httpd.conf.17594
-rw------- 1 root admin 37293 11. Feb 17:46 httpd.conf.2558
-rw------- 1 root admin 37293 11. Feb 17:48 httpd.conf.2620
-rw------- 1 root admin 37321 11. Feb 17:49 httpd.conf.2649
-rw------- 1 root admin 37293 11. Feb 18:00 httpd.conf.2773
-rw------- 1 root admin 37321 11. Feb 18:01 httpd.conf.2818
-rw------- 1 root root  32265 25. Jan 00:25 httpd.conf.2892
-rw------- 1 root root  37321 11. Feb 18:15 httpd.conf.3087
-rw------- 1 root root  32265 25. Jan 00:35 httpd.conf.3294
-rw------- 1 root admin 37351 11. Feb 18:20 httpd.conf.3410
-rw------- 1 root admin 37351 11. Feb 18:23 httpd.conf.3540
-rw------- 1 root admin 37351 11. Feb 18:23 httpd.conf.3569
-rw------- 1 root admin 37351 11. Feb 19:22 httpd.conf.3763
-rw------- 1 root admin 37351 11. Feb 19:22 httpd.conf.3795
-rw------- 1 root admin 41207 11. Feb 19:23 httpd.conf.3851
-rw------- 1 root admin 41423 11. Feb 19:24 httpd.conf.3884
-rw------- 1 root admin 35567 11. Feb 17:10 httpd.conf.4391
-rw------- 1 root admin 36121 11. Feb 17:13 httpd.conf.4481
-rw------- 1 root admin 36157 11. Feb 17:15 httpd.conf.4532
-rw------- 1 root admin 36157 11. Feb 17:26 httpd.conf.4739
-rw------- 1 root admin 36157 11. Feb 17:27 httpd.conf.4853
-rw------- 1 root admin 37293 11. Feb 17:29 httpd.conf.5071
-rw------- 1 root admin 37293 11. Feb 17:32 httpd.conf.5354
-rw------- 1 root admin 37293 11. Feb 17:34 httpd.conf.5641
-rw------- 1 root root  41423 11. Feb 19:43 httpd.conf.955

[root@sme04 conf]# apachectl -V | grep SERVER_CONFIG_FILE
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


The httpd.conf is not touched.

In messages log there is:

Feb 11 19:59:54 sme04 esmith::event[2647]: Running event handler: /etc/e-smith/events/post-upgrade/S05init-accounts
Feb 11 19:59:54 sme04 esmith::event[2647]: failed to fix permissions for www at /etc/e-smith/events/post-upgrade/S05init-accounts line 62.
Feb 11 19:59:54 sme04 esmith::event[2647]: failed to fix permissions for apache at /etc/e-smith/events/post-upgrade/S05init-accounts line 66.

signal-event post-upgrade and reboot was made...

Additional packages:
Collaboration: pseudonyms
Administration: Domain pseudonyms

Has anybody an idea to fix it?


Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Problem with httpd.conf
« Reply #1 on: February 12, 2017, 02:15:19 PM »
If the version of httpd.conf with the latest date/time includes the changes you're trying to make, you could manually rename it and restart httpd-e-smith:
Code: [Select]
cd /etc/httpd/conf
mv httpd.conf httpd.conf.save
mv httpd.conf.955 httpd.conf
sv t httpd-e-smith

This doesn't identify the source of the problem, but may reduce the urgency...


Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Problem with httpd.conf
« Reply #2 on: February 12, 2017, 02:28:19 PM »
You may get a better idea of the source of the problem by manually expanding the httpd.conf template and/or looking at /var/log/messages for lines related to the httpd.conf template

Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
grep template.*httpd.conf /var/log/messages |less -S


Offline Alex_SG

  • 7
  • +0/-0
Re: Problem with httpd.conf
« Reply #3 on: February 12, 2017, 05:47:00 PM »
Thx, yes renamed the httpd.conf.955 to httpd.conf. But i must find the source of the prob.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Problem with httpd.conf
« Reply #4 on: February 12, 2017, 11:44:37 PM »
hi Alex_Sg..

first of all welcome here..

you'd tell us more about your server: its history, what did you install

I notice that something is strange on your server: on a server of mine I have
Code: [Select]
[root@fileserver ~]# ls -la /etc/httpd/conf/
totale 72
drwxr-xr-x 3 root root  4096 19 dic 09:18 .
drwxr-xr-x 6 root root  4096 24 lug  2016 ..
-rw-r--r-- 1 root root 43536  3 dic 09:57 httpd.conf
-rw-r--r-- 1 root root 13139 18 lug  2016 magic
drwxr-xr-x 2 root root  4096  6 nov 02:30 proxy

so it seems to me your permissions are wrong

also, the output of
Code: [Select]
/sbin/e-smith/audittools/templates
will help

and, finally, the one from
Code: [Select]
history | grep chmod
will help too

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Problem with httpd.conf
« Reply #5 on: February 14, 2017, 03:44:18 PM »
any news? did you solve your issue?