Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: john on October 08, 2001, 05:10:08 PM

Title: template behavior question
Post by: john on October 08, 2001, 05:10:08 PM
hi.

i have a question on the templates we're all supposed to use when modifying config files:

i installed the web-calandar the other day, but when i restarted apache, i got an error (the perl check was just fine).

browsing thru httpd.conf, i discovered i had entered a "/n" instead of an "\n" in the template file.

well,i changed this in the template file, restarted apache, and still got that error.

changing the template the second time apparently did not update the httpd.conf file.

i had to edit the actual httpd.conf to remove the errant "/n" to get everything working again.

i'm assuming i did something wrong. but what?

thx,
john
Title: Re: template behavior question
Post by: Pierluigi Miranda on October 08, 2001, 06:48:42 PM
john wrote:
 
[...]
> well,i changed this in the template file, restarted apache,
> and still got that error.
[...]
> i had to edit the actual httpd.conf to remove the errant "/n"
> to get everything working again.
>
> i'm assuming i did something wrong. but what?

You forgot to expand the httpd template before restarting Apache.

When you add a template-custom fragment (recommended) or edit a template one (not so recommendable...), you MUST recreate the config file from the template:

/sbin/e-smith/expand-template

and restart the product, if you know it's a simple matter of a single config file, or

/sbin/e-smith/signal-event post-upgrade

and reboot, if the change involves more than a product.

In your case, what you have to do is:
1. edit the templates[-custom] file
2. /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
3. service httpd reload

As root, of course :)

--

Pierluigi Miranda
Title: Re: template behavior question
Post by: john on October 09, 2001, 05:36:06 AM
ah.

i see.

thanks,
john