Can't install any plugin on Wordpress Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
consig1iere
Posts: 17
Joined: Sat Dec 30, 2017 6:33 am

Can't install any plugin on Wordpress

Post by consig1iere »

I did a clean install of Wordpress. Logged in and all that but when I try to install any plugins, it asks me to put ftp credentials or some kind of permission. Here is the screenshot of the issue.


Screenshot
https://ibb.co/hRNQHZG
Attachments
dietpi_wordpress.png
dietpi_wordpress.png (10.51 KiB) Viewed 1224 times
User avatar
Joulinar
Posts: 2297
Joined: Sat Nov 16, 2019 12:49 am

Re: Can't install any plugin on Wordpress

Post by Joulinar »

Hi,

this is a behavior of Wordpress themselves and you would need to install a FTP server. It can be easily done by running dietpi-software and than select ProFTP as File Server
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
consig1iere
Posts: 17
Joined: Sat Dec 30, 2017 6:33 am

Re: Can't install any plugin on Wordpress

Post by consig1iere »

Joulinar wrote: Mon Mar 02, 2020 12:36 pm Hi,

this is a behavior of Wordpress themselves and you would need to install a FTP server. It can be easily done by running dietpi-software and than select ProFTP as File Server
Yes ProFTP is installed, still no luck.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Can't install any plugin on Wordpress

Post by johnvick »

User avatar
Joulinar
Posts: 2297
Joined: Sat Nov 16, 2019 12:49 am

Re: Can't install any plugin on Wordpress

Post by Joulinar »

@consig1iere

what is the exact error message you are facing? You just posted a simple login screen but without any error message.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
tallbastard
Posts: 7
Joined: Sat Aug 08, 2020 4:59 pm

Re: Can't install any plugin on Wordpress

Post by tallbastard »

Dietpi fresh convert ;
I experience similar issue with fresh install of wordpress. Have setup basic install on but wordpress can't write to it's plugin directory.. surely we don't need to adjust ownership to operate basic functions ? Have added define('FS_METHOD','direct');
to the wp-config to stop it requesting ftp target info which clarifies a permissions blockage..

dietpi@BerryDietPi:/var/www/wordpress/wp-content$ ls -l
total 12
-rw-r--r-- 1 nobody nogroup 28 Jan 8 2012 index.php
drwxrwxr-x 3 nobody nogroup 4096 Jun 10 21:48 plugins
drwxr-xr-x 5 nobody nogroup 4096 Jun 10 21:48 themes

please advise
User avatar
Joulinar
Posts: 2297
Joined: Sat Nov 16, 2019 12:49 am

Re: Can't install any plugin on Wordpress

Post by Joulinar »

ok there seems to be something wrong on WP installation. Usually user should be www-data and not nobody . Pls do following on a fresh install
  1. install WP using dietpi-software
  2. reboot system once completed
  3. before opening webside, do following on command line: chown -R www-data:www-data /var/www/wordpress/
  4. opening WP webside on browser and finish initial installation
  5. WP should be able to write down wp-config.php to OS level now
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2324
Joined: Sat Nov 18, 2017 6:21 pm

Re: Can't install any plugin on Wordpress

Post by MichaIng »

Fixed for v6.32, many thanks!
tallbastard
Posts: 7
Joined: Sat Aug 08, 2020 4:59 pm

Re: Can't install any plugin on Wordpress

Post by tallbastard »

Thanks for the advice and news of the fix for next release.. fab!
tallbastard
Posts: 7
Joined: Sat Aug 08, 2020 4:59 pm

Re: Can't install any plugin on Wordpress

Post by tallbastard »

could there still be some permission issues ? - In my imported WP blob we can only see home page and no others which could be permalinks error though have tried every suggested fix and alternative ways of migration to similar effect. each page returns 404. If i import same blob to other hosted services, all works just fine.. please advise
Post Reply