Hello,
have an problem with AuthLDAP in Wordpress get an error:
Ett fel uppstod vid uppdatering av AuthLDAP: Uppdateringen kan inte installeras eftersom vi inte kommer kunna kopiera vissa filer. Detta beror oftast på inkonsekventa filrättigheter. authLdap.css, phpunit.travis.xml, composer.json, .travis.after.sh, readme.txt, .travis.yml, README, ldap.php, phpunit.xml.dist, view, patchcoverage, src, authLdap.php, .travis.install.sh, .gitignore, --, README.md, tests, view/admin.phtml, patchcoverage/index.html, patchcoverage/css, patchcoverage/ldap.php.html, patchcoverage/dashboard.html, patchcoverage/js, patchcoverage/fonts, patchcoverage/authLdap.php.html, src/LdapList.php, tests/AllTests.php, tests/TestHelper.php, tests/bootstrap.php, tests/phpunit.xml, tests/LdapTest.php, tests/TestConfiguration.php.dist, tests/authLdapTests, patchcoverage/css/bootstrap.min.css, patchcoverage/css/nv.d3.min.css, patchcoverage/css/style.css, patchcoverage/js/html5shiv.min.js, patchcoverage/js/holder.min.js, patchcoverage/js/bootstrap.min.js, patchcoverage/js/jquery.min.js, patchcoverage/js/d3.min.js, patchcoverage/js/respond.min.js, patchcoverage/js/nv.d3.min.js, patchcoverage/fonts/glyphicons-halflings-regular.ttf, patchcoverage/fonts/glyphicons-halflings-regular.svg, patchcoverage/fonts/glyphicons-halflings-regular.woff2, patchcoverage/fonts/glyphicons-halflings-regular.eot, patchcoverage/fonts/glyphicons-halflings-regular.woff, tests/authLdapTests/LdapTest.php
is on swedish but have translate to english
This is usually due to inconsistent file permissions.
what can i do for fix that can remove and install an new!!
Good Morning bengt6,
I don’t actually understand the message, but as I guess it has to do with permissions. To access the word press container run the following command:
# univention-app shell wordpress
This takes you into the wordpress container . Here you can check the permissions
root@wordp-15218527:/var/www/html/wp-content/plugins# ls -l
total 372
drwxr-xr-x 4 www-data www-data 4096 Nov 6 13:33 akismet
drwxr-xr-x 6 root root 4096 May 3 2017 authldap
-rw-r--r-- 1 root root 360752 May 3 2017 authldap.zip
-rw-r--r-- 1 www-data www-data 2255 May 22 2013 hello.php
-rw-r--r-- 1 www-data www-data 28 Jun 5 2014 index.php
if the permissions are not appropriate, then you can change it. For example:
root@wordp-15218527:/var/www/html/wp-content/plugins# chmod -R 755 authldap/
You can then have a look into this file also to debug:
root@wordp-15218527:/var/log/apache2# more error.log
root@wordp-15218527:/var/log/apache2# more access.log
Regards
Anna Takang
Hello,
yes is permission what can understand was on swedish can undersatnd if not can read that.
I will try that command then
Hello, that not helped me nothing but what happen if remove that plugin and install again can do that.
What can see is that some info in that plugin from my Unvention server
how can change that pluging to www-data www-data. for when check they another plugin have www-data and authldap have root root perhaps that for get error
Good Afternoon bengt6,
I am sorry I dont’t really understand your question. Please can you post to me the result of
univention-app shell wordpress
ls -l /var/www/html/wp-content
Regards
Anna Takang
Hey,
I will do that but then do that is coming up another thing:
-rw-r–r-- 1 www-data www-data 418 Sep 25 2013 index.php
-rw-r–r-- 1 www-data www-data 19935 Jan 2 2017 license.txt
-rw-r–r-- 1 www-data www-data 7413 Oct 31 15:45 readme.html
lrwxrwxrwx 1 root root 1 Sep 15 18:43 wordpress -> .
-rw-r–r-- 1 www-data www-data 5447 Sep 27 2016 wp-activate.php
drwxr-xr-x 10 www-data www-data 4096 Sep 15 19:12 wp-admin
-rw-r–r-- 1 www-data www-data 364 Dec 19 2015 wp-blog-header.php
-rw-r–r-- 1 www-data www-data 1627 Aug 29 2016 wp-comments-post.php
-rw-r–r-- 1 www-data www-data 2764 Oct 7 12:56 wp-config-sample.php
-rw-r–r-- 1 www-data www-data 3507 Oct 7 12:56 wp-config.php
drwxr-xr-x 9 www-data www-data 4096 Nov 7 14:12 wp-content
-rw-r–r-- 1 www-data www-data 3286 May 24 2015 wp-cron.php
drwxr-xr-x 18 www-data www-data 12288 Sep 15 18:42 wp-includes
-rw-r–r-- 1 www-data www-data 2422 Nov 21 2016 wp-links-opml.php
-rw-r–r-- 1 www-data www-data 3301 Oct 25 2016 wp-load.php
-rw-r–r-- 1 www-data www-data 34327 May 12 19:12 wp-login.php
-rw-r–r-- 1 www-data www-data 8048 Jan 11 2017 wp-mail.php
-rw-r–r-- 1 www-data www-data 16200 Apr 6 2017 wp-settings.php
-rw-r–r-- 1 www-data www-data 29924 Jan 24 2017 wp-signup.php
-rw-r–r-- 1 www-data www-data 4513 Oct 14 2016 wp-trackback.php
-rw-r–r-- 1 www-data www-data 3065 Aug 31 2016 xmlrpc.php
in plugins is these:
rwxr-xr-x 8 www-data www-data 4096 Sep 29 21:24 accesspress-twitter-auto-post
drwxr-xr-x 4 www-data www-data 4096 Nov 7 10:34 akismet
drwxr-xr-x 6 root root 4096 May 3 2017 authldap
-rw-r–r-- 1 root root 360752 May 3 2017 authldap.zip
-rw-r–r-- 1 www-data www-data 2255 May 22 2013 hello.php
-rw-r–r-- 1 www-data www-data 28 Jun 5 2014 index.php
drwxr-xr-x 16 www-data www-data 4096 Oct 4 08:39 jetpack
drwxr-xr-x 10 www-data www-data 4096 Oct 26 12:11 updraftplus
drwxr-xr-x 11 www-data www-data 4096 Nov 2 11:03 wordfence
drwxr-xr-x 3 www-data www-data 4096 Sep 15 19:04 wordpress-importer
drwxr-xr-x 5 www-data www-data 4096 Nov 7 10:34 wp-slimstat
drwxr-xr-x 5 www-data www-data 4096 Oct 31 22:45 wp-super-cache
Hope you can understand me
Good Afternoon bengt6:
I think you should change the ownership of the authlap folder, in the container i.e.
- Go into the container:
univention-app shell wordpress
- Then change into the folder
root@wordp-15218527:~# cd /var/www/html/wp-content/plugins/ root@wordp-15218527:/var/www/html/wp-content/plugins# ls -l total 372 drwxr-xr-x 4 www-data www-data 4096 Nov 6 13:33 akismet drwxr-xr-x 6 root root 4096 May 3 2017 authldap -rw-r--r-- 1 root root 360752 May 3 2017 authldap.zip -rw-r--r-- 1 www-data www-data 2255 May 22 2013 hello.php -rw-r--r-- 1 www-data www-data 28 Jun 5 2014 index.php
- Change the ownership:
chown -R www-data:www-data authldap
Regards
Anna Takang
Good Evening Takang!
is working now could update authldap was an zip to.