Koozali.org: home of the SME Server

[Solved] BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?

Offline n9yty

  • 16
  • +0/-0
Is there a switch to turn on in the GUI to get the system to read the config files in /etc/httpd/conf.d/*.conf ?   I manually added an Include line in /etc/httpd/conf/httpd.conf, but it says that file will be overwritten and should not be edited.

I was trying to get BackupPC running and this was speed bump number one. :)  Working through the other issues and hopefully will be able to report back with notes when the setup is complete. I was able to also get LDAP lookups working so that the backuppc logins are controlled by the central user/password store which is a good thing.
« Last Edit: November 09, 2011, 07:07:51 AM by pfloor »

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: 8.0b6 - no reading of /etc/http/conf.d/*.conf ?
« Reply #1 on: November 08, 2011, 03:32:16 AM »
Did you have a look at this first? http://wiki.contribs.org/BackupPC
In life, you must either "Push, Pull or Get out of the way!"

Offline n9yty

  • 16
  • +0/-0
Re: 8.0b6 - no reading of /etc/http/conf.d/*.conf ?
« Reply #2 on: November 08, 2011, 03:36:46 AM »
I did, and in fact started there, but it seems to be out of date and all packages I installed were dysfunctional because of the conf.d directory not being read so therefore the web component of BackupPC was never started. That is why I asked the question. :)

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: 8.0b6 - no reading of /etc/http/conf.d/*.conf ?
« Reply #3 on: November 08, 2011, 04:00:25 AM »
It is not out of date, the contrib was written for SME7 and not 8.  It looks like this is one that will need to be updated to work with SME8.

There are some more current instructions here and a test rpm for SME8 already being worked on.  Did you look here...
http://wiki.contribs.org/SME8.0_Contribs_QA#smeserver-BackupPC

And here...
http://forums.contribs.org/index.php/topic,46991.msg231365.html#msg231365
In life, you must either "Push, Pull or Get out of the way!"

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: 8.0b6 - no reading of /etc/http/conf.d/*.conf ?
« Reply #4 on: November 08, 2011, 04:05:58 AM »
Also, I am changing the summary to reflect the real issue.
« Last Edit: November 08, 2011, 04:21:12 AM by pfloor »
In life, you must either "Push, Pull or Get out of the way!"

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #5 on: November 08, 2011, 08:24:20 AM »
In order to have you changes not being overwritten you will need to create a custom template, which should contains something like this:

Code: [Select]
Include conf.d/*.conf
The most common place IMHO is to place this just after the LoadModule sections. For more information on custom templates see the SME Server Developers Guide in the wiki. It contains a section on how to work with templates and custom templates.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline n9yty

  • 16
  • +0/-0
Re: BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #6 on: November 08, 2011, 03:44:11 PM »
I had looked at every post that contained BackupPC in it, and yes, I had tried all of those other things, but at least on the system I am testing on, an install from the 8.0b6 ISO, none of those addressed the issue of the conf.d/*.conf files not being read.

If a "template" is the fix to alter the main httpd.conf file to read the conf.d/*.conf files, then those contrib packages probably need to be modified to include such a template.

[UPDATE:  I did make this change in a template file:

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/25IncludeConfD:
# Include supplementary configuration files
Include conf.d/*.conf
]

However, once I did modify the system to include all of the conf.d/*conf files I ran into several other errors because some of the other *.conf files already in the conf.d directory were trying to include modules that were not installed on my system. I don't know if they were put there as part of the stock install or as part of the BackupPC contribs (I didn't add anything else), but the bottom line is that they did not work.

I am only posting here to point out the issues, I eventually did get things working here and I do not have enough understanding of SME to dig into the lower levels to build a fixed contrib package.  I am trying to help a local nonprofit with a small central file/backup server, and SME looked good for this purpose.
« Last Edit: November 08, 2011, 04:35:38 PM by n9yty »

Offline n9yty

  • 16
  • +0/-0
Re: BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #7 on: November 08, 2011, 03:55:00 PM »
Oh, and when I could not get it to work (and since it s a test pre-install box anyway) I updated to the testing RPMS to get on 8.0b7.

Eventually I wiped out my previous BackupPC stuff and used this:

yum --enablerepo=smecontribs install BackupPC

to install:

http://smemirror.fullnet.co.uk/releases/testing/8.0beta7/smecontribs/i386/repoview/BackupPC.html

And yet still, even at that point, I could not access the web interface without adding in an Include in the main httpd.conf file.

It could be something wrong on my install, I am not ruling that out, but the point is that it didn't "just work". Just a word to those in the future who may find this thread via a search.

UPDATE:
In looking through more, I see a version of an install package under the 7.5.1 release tree, smeserver-BackupPC, and it seems to have all the SME specific files for the GUI, the web config stuff, and so on, but I wasn't sure how it would interact with the RPM above that is in the 8.0 branch.

UPDATE2:
So, I am still learning about SME Server.  So it appears that both the BackupPC package *AND* the smeserver-BackupPC package need to be installed?  If so, this is clearly my problem as I only installed the BackupPC one.  I followed the instructions to add the sme7contribs repo in as well and installed smeserver-BackupPC via yum with both sme7contribs and smecontribs enabled to handle dependencies.  The install went fine, and all seems to work now.  Since this is a test server, I will blow it all away and try to reproduce the steps without all of my prior bungled modifications. :)
« Last Edit: November 08, 2011, 07:02:01 PM by n9yty »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #8 on: November 08, 2011, 09:07:00 PM »
So it appears that both the BackupPC package *AND* the smeserver-BackupPC package need to be installed?

Yes, and if you had followed the instructions in the wiki page you referred to, this should have happened automatically.

Offline n9yty

  • 16
  • +0/-0
Re: BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #9 on: November 08, 2011, 10:21:06 PM »
Thanks for the snide help.  This goes a long way toward helping people feel part of the community and want to learn and contribute back.  The fact that there is a ton of conflicting information is not confusing at all to a wizard like you I am sure.

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #10 on: November 09, 2011, 07:05:06 AM »
Thanks for the snide help.  This goes a long way toward helping people feel part of the community and want to learn and contribute back.  The fact that there is a ton of conflicting information is not confusing at all to a wizard like you I am sure.
Please mind yourself here, Charlie is correct.

The Wiki page correctly instructs you to install smeserver-BackupPC.  Had you followed all the instructions, that contrib would have pulled in BackupPC and the rest of the requires and you would not have needed to start this thread in the first place.

There is a good lesson in this for you here.  That lesson is if you want to install XYZ, look for smeserver-XYZ (or on some older packages e-smith-XYZ) first.  This "smeserver-XYZ" package will provide all the necessary SME related items (such as the required templates) and will usually pull in XYZ with it as a dependency.

Many people have worked hard here so that all you would have had to do in your case is "yum install smeserver-BackupPC" and not worry about templates and config files.  On SME7 BackupPC "just works" and on SME8 it works with a little extra effort. Once tested and perfected, it will "just work" on SME8 too.

That is the whole point about SME.  Simply follow the how-to's and install pre-written contribs and off you go, no hassling with config files (or conf.d files in your case).  It should "just work" and if it doesn't after following ALL the instruction then you should raise a bug in the bug tracker.

Again, please mind your tone in here.  Charlie does not wear the Developer badge for nothing, you may want to show him a little respect because when you are in a pinch and really need help, he is a good chap to have on your side :-)
« Last Edit: November 09, 2011, 07:07:14 AM by pfloor »
In life, you must either "Push, Pull or Get out of the way!"

Offline n9yty

  • 16
  • +0/-0
Re: [Solved] BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #11 on: November 09, 2011, 04:55:59 PM »
Thanks, but what you just spelled out so clearly was not clearly apparent from the reading of that WIKI page.  In fact, the second link to the BackupPC package is not even working, and it was not clearly written why there were two packages linked.

But, all of that goes with learning, but still correction can be given in a way that helps and encourages learning or it can be given in a way that says "go away you are stupid."  The fact that I manually put together all the pieces without the help of the great work done in the smeserver-BackupPC package shows that I am probably not stupid, I just had not found any good piece of written documentation that demonstrated what you expounded on in your reply.  Coupled with the fact that all the forum posts in the v8 threads about BackupPC lead one to believe that the v7 packages simply did not work properly.

My apologies if I offended anyone, but in reality if one can only offer help through condescension it may have been better for him to suffer a fool and not reply at all.  I found the answer in the end on my own by manually examining the packages to see what files and what they contained and manually having to dig through the repos because the links on the WIKI were not correct.  However, I don't expect you to see my point.

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: [Solved] BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #12 on: November 09, 2011, 05:11:20 PM »
But, all of that goes with learning, but still correction can be given in a way that helps and encourages learning or it can be given in a way that says "go away you are stupid."

I'm quite sure that this is not what Charlie meant.. :-)
you are welcome here, like everybody else

Offline n9yty

  • 16
  • +0/-0
Re: [Solved] BackupPC on 8.0b6 - not reading of /etc/http/conf.d/*.conf ?
« Reply #13 on: November 09, 2011, 07:44:25 PM »
Thanks, and again, my apologies to all if I misunderstood the nature of the reply, my only point was to make the point about how it was perceived.  Could have been just me, and I acknowledge that.  So, Sorry Charlie if I took your reply with more venom and less helpful advice than you intended.