Koozali.org: home of the SME Server

Custom templates failing in 5.6U3

Upaboveit

Custom templates failing in 5.6U3
« on: April 25, 2003, 10:05:45 PM »
I'm following the directions here: http://www.e-smith.org/custom/ to write custom template fragments for httpd.conf. I've created the mirrored directory tre in template-custom, places the modified copies of the original template fragments into the appropriate directory and everything else that the page says I should do. However, the changes just aren't being picked up when I restart Apache, nor are they picked up after a full reboot. At present I have to manually edit httpd.conf, restart Apache and remember to redo the changes the next time I do anything in the console that might affect access or restart the server.

I must be missing something. Is there an arcane secret to making the custom template system work that isn't present on the customising page?

Bill Talcott

Re: Custom templates failing in 5.6U3
« Reply #1 on: April 25, 2003, 10:55:04 PM »
Did you expand the templates? That's what rebuilds your configuration files, and it's not done automatically on reboot.

/sbin/e-smith/expand-template /path/to/file.conf

Upaboveit

Re: Custom templates failing in 5.6U3
« Reply #2 on: April 26, 2003, 12:12:09 AM »
I sure am. Still failing. The fragments don't seem to be read at all.

Bill Talcott

Re: Custom templates failing in 5.6U3
« Reply #3 on: April 26, 2003, 12:29:32 AM »
Upaboveit wrote:
>
> I've created the mirrored directory
> tre in template-custom,

"template-custom"?

"To allow customizations, and to clearly isolate user-customizations from package-installed templates, a second template tree is rooted at /etc/e-smith/templates-custom/..."

It's supposed to be "templates-custom", if that wasn't a typo...

Upaboveit

Re: Custom templates failing in 5.6U3
« Reply #4 on: April 26, 2003, 12:49:02 AM »
Sorry about that. Yes, it's an online typo rather than reflective of what's on the server. The correct directory name is on the server.

Bill Talcott

Re: Custom templates failing in 5.6U3
« Reply #5 on: April 28, 2003, 05:48:41 PM »
Just to make sure you've done everything...

You created /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/.

You copied whatever fragment you wanted to edit from /etc/e-smith/templates/etc/httpd/conf/httpd.conf/ to /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/.

You edited /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/##fragment for whatever changes you wanted.

You ran /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf to expand the file.

And /etc/httpd/conf/httpd.conf doesn't show the changes?