Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: gutberle on May 21, 2012, 05:44:48 pm

Title: [SOLVED]Apache2 installed modules, ports.conf changes being reset automatically!
Post by: gutberle on May 21, 2012, 05:44:48 pm
Hi All,

I am trying to run OpenERP 6.0.x on my Zentyal 2.2 box with SSL support and https rewriting. To achieve this I changed the Zentyal administration port to 442 to free up 443 and of course made the required changes to the apache2 configuration.

Problem: Things run very smoothly, but (at least) once every day all of my changes to the apache2 configuration are being reverted:

- All modules I enabled using a2enmod (ssl proxy_http headers rewrite) and confirmed by restarting apache2 are being reset, e.g. apache2 suddenly does not understand "SSLEngine on".
- The changes I made to ports.conf to allow ports 80 and 443 to be serviced are being reverted, i.e. a standard ports.conf that only has port 80 entries is installed.
- My rewrite instructions are removed from /etc/apache2/sites-available/default.

My Question: Is this by design, e.g. as a protective feature and what can I do to prevent this or at least make sure that my changes survive the day... ;-)

Regards,
Ingmar
Title: Re: Apache2 installed modules, ports.conf changes being reset automatically!
Post by: christian on May 21, 2012, 05:53:56 pm
This (http://trac.zentyal.org/wiki/Documentation/Community/HowTo/CustomizeConfigFiles) perhaps  ???
Title: Re: Apache2 installed modules, ports.conf changes being reset automatically!
Post by: gutberle on May 21, 2012, 08:04:27 pm
Hi Christian,

thank you VERY much for the lightning quick reply and yes, that is the mechanism...

Based on the document you pointed me to alone I could not get things going because it leaves out a few things and also is out of date, but with the help of one other forum post (http://forum.zentyal.org/index.php/topic,10267.msg42729.html#msg42729 (http://forum.zentyal.org/index.php/topic,10267.msg42729.html#msg42729)) I managed to solve my problem quickly and smoothly.

And just in case someone "official" listens in, here are some suggestions for a revision of the document...

- The folder name now is /etc/zentyal/hooks and not /etc/ebox/hooks
- Same for the stubs directory, which is now in /usr/share/zentyal/stubs
- The document does not say which service is called what (webserver or apache or apache2) but /usr/share/zentyal/stubs lists all services with the names used.
- The document does not mention that the file/script has to be made executable. Don't laugh, I only realized that these were "real" shell scripts when I read the above post.
   None of the examples are set to executable, which in a way makes sense, but also is misleading as well.
- The document does not really say which file (or rather extension) type is executed when and what happened up to that point. This is explained for .postsetconf in the above post.

Thanks again,
Ingmar
Title: Re: [SOLVED]Apache2 installed modules, ports.conf changes being reset automatically!
Post by: Neru on May 23, 2012, 11:11:47 am
Thank you very much for all the suggestions, we'll take them into account.

Regards
Title: Re: [SOLVED]Apache2 installed modules, ports.conf changes being reset automatically!
Post by: J. A. Calvo on May 23, 2012, 11:42:21 am
Hi, thanks for the feedback!

Just to let you know that http://trac.zentyal.org/wiki/Documentation/Community/HowTo/CustomizeConfigFiles and any other wiki page under the /Community/ section can be directly edited by any community member (you just need to login into trac with your forum username & password).

This document was intented for Zentyal 2.0 (as stated in the header), it would be nice to update it to 2.2 but keep some small comment about the 'ebox' path for people who are still using 2.0.

Best regards,