[phpLogCon] install.php remove or not
Rainer Gerhards
rgerhards at hq.adiscon.com
Fri May 16 15:55:45 CEST 2008
If I understood the bugzilla entry correctly, the empty file causes
other grief ;)
So it might be good to add a comment to it (e.g. /*NOTCONFIGURED*/\n).
Then, you could check that comment. Two problems solved ;)
Rainer
On Fri, 2008-05-16 at 15:53 +0200, Andre Lorbach wrote:
> Hi,
>
> we could handle the configured / installed state different if we find no
> other way around this problem. But if possible I would like to find an
> alternative solution for the problem first.
>
> The installation method in phpLogCon is similar to the method used in
> phpbb.
>
> There is another thing that clearly tells you if phpLogCon was already
> configured, if the config.php file isn't empty anymore. By default an
> empty one with write access is shipped, right? This config.php file is
> written by the installation routine at the very end. So only if the
> config.php file is empty, the update needs to copy the install.php file.
> Is it possible to handle this by the package manager?
>
> --
> Best regards,
> Andre Lorbach
>
>
>
> > -----Original Message-----
> > From: phplogcon-bounces at lists.adiscon.com [mailto:phplogcon-
> > bounces at lists.adiscon.com] On Behalf Of Peter Vrabec
> > Sent: Friday, May 16, 2008 3:22 PM
> > To: phplogcon at lists.adiscon.com
> > Subject: Re: [phpLogCon] install.php remove or not
> >
> > On Thursday 15 May 2008 03:04:57 pm Andre Lorbach wrote:
> > > > -----Original Message-----
> > > > From: phplogcon-bounces at lists.adiscon.com [mailto:phplogcon-
> > > > bounces at lists.adiscon.com] On Behalf Of Peter Vrabec
> > > > Sent: Thursday, May 15, 2008 2:57 PM
> > > > To: phplogcon at lists.adiscon.com
> > > > Subject: Re: [phpLogCon] install.php remove or not
> > > >
> > > > ok. thnx. for answers Andre :)
> > > >
> > > > I'll do following:
> > > > * suggest users to rename config.php to something safe
> > > > * do not install install.php during package UPDATE
> > > > * restrict access to phplogcon, allowed only from localhost by
> default
> > >
> > > Sounds good to me :)
> > >
> > > Regarding the config.php, the default template is stored in the
> include
> > > directory called "config.sample.php". The config.php is created out
> of
> > > this template during the installation only. So you can savely copy
> all
> > > files over the old except for the install.php.
> >
> > Ooops. Things around install.php are not going well.
> > see: https://bugzilla.redhat.com/show_bug.cgi?id=444722
> > $ rpm -V phplogcon
> > S.5....T c /etc/phplogcon/config.php
> > missing /usr/share/phplogcon/install.php
> >
> > Do you think it would be possible to handle this problem different
> way? For
> > example in install.php something like:
> > if configured then {
> > exit
> > }
> > else {
> > do usual
> > }
> >
> >
> >
> >
> > > Best regards,
> > > Andre Lorbach
> > > _______________________________________________
> > > phpLogCon mailing list
> > > http://lists.adiscon.net/mailman/listinfo/phplogcon
> >
> >
> > _______________________________________________
> > phpLogCon mailing list
> > http://lists.adiscon.net/mailman/listinfo/phplogcon
> _______________________________________________
> phpLogCon mailing list
> http://lists.adiscon.net/mailman/listinfo/phplogcon
More information about the phpLogCon
mailing list