Create log4pearl.conf for old Koha instance?
Hello! I am getting the following message in the about page: "You are missing the <log4perl_conf> entry in your koha-conf.xml file. Please add it, pointing to the log4perl.conf file for your Koha instance." After a Google search I looked for the log4perl.conf file on my server... but I can't find it. Do I have to create it in any way? If not, Ijust need to add the following line in my /etc/koha/sites/INSTANCE/koha-conf.xml ? <log4perl_conf>/etc/koha/log4perl.conf</log4perl_conf> Thank you in advance... -- Koha: 17.05.02.000 Debian 8.9
Hi Lisandro
I am getting the following message in the about page: "You are missing the <log4perl_conf> entry in your koha-conf.xml file. Please add it, pointing to the log4perl.conf file for your Koha instance."
After a Google search I looked for the log4perl.conf file on my server... but I can't find it. Do I have to create it in any way? If not, Ijust need to add the following line in my /etc/koha/sites/INSTANCE/koha-conf.xml ? <log4perl_conf>/etc/koha/log4perl.conf</log4perl_conf>
Thank you in advance...
In my demo installation (instance "sandkasten") I found the file "/etc/koha/sites/sandkasten/log4perl.conf" with the following content. Of course you will have to replace "sandkasten" with the name of your own instance. log4perl.logger.intranet = WARN, INTRANET log4perl.appender.INTRANET=Log::Log4perl::Appender::File log4perl.appender.INTRANET.filename=/var/log/koha/sandkasten/intranet-error.log log4perl.appender.INTRANET.mode=append log4perl.appender.INTRANET.layout=PatternLayout log4perl.appender.INTRANET.layout.ConversionPattern=[%d] [%p] %m %l %n log4perl.logger.opac = WARN, OPAC log4perl.appender.OPAC=Log::Log4perl::Appender::File log4perl.appender.OPAC.filename=/var/log/koha/sandkasten/opac-error.log log4perl.appender.OPAC.mode=append log4perl.appender.OPAC.layout=PatternLayout log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n The permissions are as follows: # ls -al /etc/koha/sites/sandkasten/log4perl.conf -rw-r----- 1 root sandkasten-koha 643 Nov 30 2016 /etc/koha/sites/sandkasten/log4perl.conf I never heard about this file before so I'm quite sure it is usually automatically created during the creation of the instance. However, my file "/etc/koha/sites/sandkasten/koha-conf.xml" does contain the following line which I never had to insert or change manually: <log4perl_conf>/etc/koha/sites/sandkasten/log4perl.conf</log4perl_conf> Hope this helps. Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi Michael. I did the following (INSTANCE stands for my koha instance name): nano /etc/koha/sites/INSTANCE/log4perl.conf Copy / Paste the content you share and replace with my INSTANCE name "sandkasten" chown root:biblioteca-koha /etc/koha/sites/INSTANCE/log4perl.conf chmod 640 /etc/koha/sites/INSTANCE/log4perl.conf After that, I added in my "/etc/koha/sites/INSTANCE/koha-conf.xml" <log4perl_conf>/etc/koha/sites/INSTANCE/log4perl.conf</log4perl_conf> Rebooted my Koha server... It seems to be working... but I don't know how to check if it is ok... No crashes so far... Could you please send a list of th content of /etc/koha/sites/INSTANCE/ directory? I want to know if anything else is missing there... Best wishes, Lisandro 2017-08-29 11:31 GMT-03:00 Michael Kuhn <mik@adminkuhn.ch>:
Hi Lisandro
I am getting the following message in the about page: "You are missing the <log4perl_conf> entry in your koha-conf.xml file. Please add it, pointing to the log4perl.conf file for your Koha instance."
After a Google search I looked for the log4perl.conf file on my server... but I can't find it. Do I have to create it in any way? If not, Ijust need to add the following line in my /etc/koha/sites/INSTANCE/koha-conf.xml ? <log4perl_conf>/etc/koha/log4perl.conf</log4perl_conf>
Thank you in advance...
In my demo installation (instance "sandkasten") I found the file "/etc/koha/sites/sandkasten/log4perl.conf" with the following content. Of course you will have to replace "sandkasten" with the name of your own instance.
log4perl.logger.intranet = WARN, INTRANET log4perl.appender.INTRANET=Log::Log4perl::Appender::File log4perl.appender.INTRANET.filename=/var/log/koha/sandkasten/intranet-error.log log4perl.appender.INTRANET.mode=append log4perl.appender.INTRANET.layout=PatternLayout log4perl.appender.INTRANET.layout.ConversionPattern=[%d] [%p] %m %l %n
log4perl.logger.opac = WARN, OPAC log4perl.appender.OPAC=Log::Log4perl::Appender::File log4perl.appender.OPAC.filename=/var/log/koha/sandkasten/opac-error.log log4perl.appender.OPAC.mode=append log4perl.appender.OPAC.layout=PatternLayout log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n
The permissions are as follows:
# ls -al /etc/koha/sites/sandkasten/log4perl.conf -rw-r----- 1 root sandkasten-koha 643 Nov 30 2016 /etc/koha/sites/sandkasten/log4perl.conf
I never heard about this file before so I'm quite sure it is usually automatically created during the creation of the instance.
However, my file "/etc/koha/sites/sandkasten/koha-conf.xml" does contain the following line which I never had to insert or change manually:
<log4perl_conf>/etc/koha/sites/sandkasten/log4perl.conf</log4perl_conf>
Hope this helps.
Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Lisandro
It seems to be working... but I don't know how to check if it is ok... No crashes so far... Could you please send a list of th content of /etc/koha/sites/INSTANCE/ directory? I want to know if anything else is missing there...
The content is: -rw-r----- 1 root sandkasten-koha 14680 Nov 30 2016 koha-conf.xml -rw-r----- 1 root sandkasten-koha 643 Nov 30 2016 log4perl.conf -rw-r----- 1 root sandkasten-koha 2361 Jun 30 09:34 zebra-authorities.cfg -rw-r----- 1 root sandkasten-koha 2044 Jun 30 09:34 zebra-authorities-dom.cfg -rw-r----- 1 root sandkasten-koha 2341 Jun 30 09:34 zebra-biblios.cfg -rw-r----- 1 root sandkasten-koha 2314 Jun 30 09:34 zebra-biblios-dom.cfg -rw-r----- 1 root sandkasten-koha 26 Nov 30 2016 zebra.passwd If you need the content of one or more of these files, just tell me so. Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi Michael. All the files are in my Koha instance under that directory. Thank you... 2017-09-03 5:37 GMT-03:00 Michael Kuhn <mik@adminkuhn.ch>:
Hi Lisandro
It seems to be working... but I don't know how to check if it is ok... No crashes so far... Could you please send a list of th content of /etc/koha/sites/INSTANCE/ directory? I want to know if anything else is missing there...
The content is:
-rw-r----- 1 root sandkasten-koha 14680 Nov 30 2016 koha-conf.xml -rw-r----- 1 root sandkasten-koha 643 Nov 30 2016 log4perl.conf -rw-r----- 1 root sandkasten-koha 2361 Jun 30 09:34 zebra-authorities.cfg -rw-r----- 1 root sandkasten-koha 2044 Jun 30 09:34 zebra-authorities-dom.cfg -rw-r----- 1 root sandkasten-koha 2341 Jun 30 09:34 zebra-biblios.cfg -rw-r----- 1 root sandkasten-koha 2314 Jun 30 09:34 zebra-biblios-dom.cfg -rw-r----- 1 root sandkasten-koha 26 Nov 30 2016 zebra.passwd
If you need the content of one or more of these files, just tell me so.
Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
participants (2)
-
Michael Kuhn -
Prof. Lisandro Laura