[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Overwrite somebody's httpd.conf.old

On Wed, 28 Apr 2004, Fabio Tranchitella wrote:

> Hi, I'm packaging a web-based tool for administering LDAP
> servers called phpldapadmin. I have a question related Apache*
> auto-configuration.
> During the postinstall, I modify the httpd.conf in order to add an
> Include line and I save the old httpd.conf as httpd.conf.old, without
> check if it already exists. I saw other postinstall script from others
> web-based packages but I've never seen any test for httpd.conf.old.
> Maybe I am too cautious, but in my opinion I can overwrite somebody
> else's httpd.conf.old. In your opinion is useful a test during the
> postinstall? Or I can overwrite httpd.conf.old without any test?
> I don't know if someone thought about this problem ...
> Thank you,
> Fabio T.
> I'm not subscribed to this mailing-list, if you answer please Cc me..

Much simplre solution is NOT to touch httpd.conf and put your config lines
in conf.d. Treat that file as a configfile either using the dpkg standard
or ucf.


<user> fajita: step one
<fajita> Whatever the problem, step one is always to look in the error log.
<user> fajita: step two
<fajita> When in danger or in doubt, step two is to scream and shout.

Reply to: