Hi, With Koha 17.11.06.000 On L-Ubuntu 16,04 Desktop from package installation method, I am getting follwoing error while uploading .kpz file at Home › Tools › Plugins. *Cannot unpack file to the plugins directory.Please verify that the Apache user can write to the plugins directory.* What is the right permission ?? . As a root user, I have created plugins directory drwxr-xr-x 6 gechlibrary-koha gechlibrary-koha 4096 Jun 8 22:48 gechlibrary drwxr-xr-x 2 root root 4096 Jun 12 17:28 plugins I tried to change, chown -R gechlibrary-koha:gechlibrary-koha /var/lib/koha/plugins/ drwxr-xr-x 6 gechlibrary-koha gechlibrary-koha 4096 Jun 8 22:48 gechlibrary drwxr-xr-x 2 gechlibrary-koha gechlibrary-koha 4096 Jun 12 17:28 plugins Alias /plugin/ "/var/lib/koha/plugins/" is updated in /etc/apache2/sites-available/gechlibrary.conf In both cases, I am not able to to perform upload plugin. Please help. Satish MV Librarian Govt. Engineering College, Hassan
Hi Satish, What user does Apache run under? On my Debian system the default is www-data. If that is the case on your Ubuntu system then I would do: su chgrp www-data plugins su chmod 775 plugins I think that addresses the indicated problem. Best, Doug -----Original Message----- From: Koha [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of SATISH Sent: Tuesday, June 12, 2018 12:43 PM To: Koha <koha@lists.katipo.co.nz> Subject: [Koha] Plugin Error Hi, With Koha 17.11.06.000 On L-Ubuntu 16,04 Desktop from package installation method, I am getting follwoing error while uploading .kpz file at Home › Tools › Plugins. *Cannot unpack file to the plugins directory.Please verify that the Apache user can write to the plugins directory.* What is the right permission ?? . As a root user, I have created plugins directory drwxr-xr-x 6 gechlibrary-koha gechlibrary-koha 4096 Jun 8 22:48 gechlibrary drwxr-xr-x 2 root root 4096 Jun 12 17:28 plugins I tried to change, chown -R gechlibrary-koha:gechlibrary-koha /var/lib/koha/plugins/ drwxr-xr-x 6 gechlibrary-koha gechlibrary-koha 4096 Jun 8 22:48 gechlibrary drwxr-xr-x 2 gechlibrary-koha gechlibrary-koha 4096 Jun 12 17:28 plugins Alias /plugin/ "/var/lib/koha/plugins/" is updated in /etc/apache2/sites-available/gechlibrary.conf In both cases, I am not able to to perform upload plugin. Please help. Satish MV Librarian Govt. Engineering College, Hassan _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Satish, What you probably need to do is to change the ownership of the directories to be whatever user identity the apache server is running with. You can find this with a command like: # ps -ef | grep apache On my Debian system the user is 'www-data' Then change the ownership of the directories accordingly. Hope this helps, Chris Brown On Tue, Jun 12, 2018 at 7:43 PM SATISH <lis4satish@gmail.com> wrote:
Hi,
With Koha 17.11.06.000 On L-Ubuntu 16,04 Desktop from package installation method,
I am getting follwoing error while uploading .kpz file at Home › Tools › Plugins.
*Cannot unpack file to the plugins directory.Please verify that the Apache user can write to the plugins directory.*
What is the right permission ?? . As a root user, I have created plugins directory
drwxr-xr-x 6 gechlibrary-koha gechlibrary-koha 4096 Jun 8 22:48 gechlibrary drwxr-xr-x 2 root root 4096 Jun 12 17:28 plugins
I tried to change, chown -R gechlibrary-koha:gechlibrary-koha /var/lib/koha/plugins/
drwxr-xr-x 6 gechlibrary-koha gechlibrary-koha 4096 Jun 8 22:48 gechlibrary drwxr-xr-x 2 gechlibrary-koha gechlibrary-koha 4096 Jun 12 17:28 plugins
Alias /plugin/ "/var/lib/koha/plugins/" is updated in /etc/apache2/sites-available/gechlibrary.conf
In both cases, I am not able to to perform upload plugin.
Please help.
Satish MV Librarian Govt. Engineering College, Hassan _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
A few things here: * do you have the plugin directory defined in koha-conf.xml, a la <pluginsdir>/var/lib/koha/instance/plugins</pluginsdir> * are the directories listed above owned and grouped into instance-koha (instance will be the name of your instance) * are the permissions correct for that directory *and* it's subdirectories (for plugins, usually 755 is good) Package installs, except in exceptional and highly non-standard circumstances, don't use the www-data user. Use the system user koha-create created for you, as that's what your instance is running with (you can see the user it's using in /etc/apache2/sites-available/instance.conf under AssignUserID) I hope this helps. Cheers, Liz On 13/06/18 08:13, Chris Brown wrote:
Hi Satish,
What you probably need to do is to change the ownership of the directories to be whatever user identity the apache server is running with. You can find this with a command like:
# ps -ef | grep apache
On my Debian system the user is 'www-data'
Then change the ownership of the directories accordingly.
Hope this helps,
Chris Brown
On Tue, Jun 12, 2018 at 7:43 PM SATISH <lis4satish@gmail.com> wrote:
Hi,
With Koha 17.11.06.000 On L-Ubuntu 16,04 Desktop from package installation method,
I am getting follwoing error while uploading .kpz file at Home › Tools › Plugins.
*Cannot unpack file to the plugins directory.Please verify that the Apache user can write to the plugins directory.*
What is the right permission ?? . As a root user, I have created plugins directory
drwxr-xr-x 6 gechlibrary-koha gechlibrary-koha 4096 Jun 8 22:48 gechlibrary drwxr-xr-x 2 root root 4096 Jun 12 17:28 plugins
I tried to change, chown -R gechlibrary-koha:gechlibrary-koha /var/lib/koha/plugins/
drwxr-xr-x 6 gechlibrary-koha gechlibrary-koha 4096 Jun 8 22:48 gechlibrary drwxr-xr-x 2 gechlibrary-koha gechlibrary-koha 4096 Jun 12 17:28 plugins
Alias /plugin/ "/var/lib/koha/plugins/" is updated in /etc/apache2/sites-available/gechlibrary.conf
In both cases, I am not able to to perform upload plugin.
Please help.
Satish MV Librarian Govt. Engineering College, Hassan _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- -- Liz Rea Catalyst.Net Limited Level 6, Catalyst House, 150 Willis Street, Wellington. P.O Box 11053, Manners Street, Wellington 6142 04 803 2265 GPG: B149 A443 6B01 7386 C2C7 F481 B6c2 A49D 3726 38B7
participants (4)
-
Chris Brown -
Doug Dearden -
Liz Rea -
SATISH