Wordpress plugins install

SYSTEM INFORMATION
OS type and version Alma 9.6
Webmin version 2.401
Virtualmin version 7.30.8 PRO
Webserver version REQUIRED
Related packages SUGGESTED

I just found that now Wordpress to install a plugin needs access to your wordpress, before I entered my WP panel hosted on my server with Virtualmin, I gave him to install the plugin and go ahead, now suddenly when I want to install a plugin I get the following:

Installing plugin: File Manager 8.0.2
Connection details
To perform the operation you have requested WordPress needs access to your web server. Please enter your FTP or SSH login details to proceed. If you do not remember your login details you should contact your hosting provider.

Hostname
FTP/SSH User
FTP/SSH Password

Connection type → FTP/FTPS/SSH2

Authentication keys

Public/Private

I don’t like to have open FTP ports to my virtualmin server, let alone SSH, there is no other way now to install plugins ???
Otherwise, I guess I will have to open FTP ports 20/21 to my Virtualmin server.

Why would you need ftp to install a wordpress plugin or is that the plugin giving that message.

VM has it own File Manager as well, why the plugin?

Yes, Wordpress gives me this screen every time I want to install a plugin, the truth is that it is the first time that I see it


I see this → Easy Fix For Wordpress Plugin Update Asking For FTP - BlogVault

this domain has recently been moved to another server.

as I have seen on this website → Easy Fix For Wordpress Plugin Update Asking For FTP - BlogVault

I have added define( ‘FS_METHOD’, ‘direct’ ); to install the plugins directly but now I don’t get the window asking for login and pass for FTP/SSH but I get error when trying to install it

Maybe in the migration some file/directory has not been properly applied the permissions?

You don’t need to install this plugin. See the image below, look for File Manager and use it, it’s excellent.

I think this question would be better suited on a wordpress forum rather than a web hosting panel forum. From the screen shot provided Virtualmin has do it’s job (creating the domain & optionally installing wordpress). So use a wordpress forum to ask the question on

Yes, I know it, but it’s a simple example of installing a plugin, it happens with any plugin.

The problem is that I don’t know why it asks for it and looking for information one of the things it says is to correct the permissions of the files, this would have an explanation because before transferring the domain through virtualmin it didn’t ask me this, so I understand that something has not been migrated correctly.

The default installation of WordPress already sets file permissions. The installation of Webmin/Virtualmin is great and does not cause this type of problem. Do you have WP Workbench installed on Virtualmin? In the Plugins tab, you do everything with them.

Yes, i have WP Workbench and i loved it, but before the migration this didn’t happen to me.
With WP Workbench i can update plugins but not install it

Yes, it does not allow the installation. How many plugins do you have installed? Do you have a backup? Make a backup while deleting all the plugins. Is it possible for you to uninstall all of them and reinstall them? Also, as a last option, delete this VM and recreate it, and with the backup without plugins, reinstall the website. Confirm if everything is working well and reinstall the plugins directly from the source.

Hi,

just my two cents :wink:

It has something to do with the file and folder permissions where WordPress is installed.

I had the same problem once and got it fixed myself by setting the full rights at first (777) and then finetuning.

Never leave it a 777 EVER! but just for checking it’s okay.

Please check if the file rights are as in this list:

Recommended file permissions in WordPress
The way WordPress works—or indeed any system—is that files access each other to perform 
various tasks. Therefore, while 000 or 440 may be the safest file permissions, they are 
impractical.

Conversely, 777 is very dangerous as it leaves the file or directory open to modification by any 
user. Thus you will never find advice to set any core files to 777, and apart from a very few cases,
 no directories either.  

Here are the recommended file permissions that you can set for your WordPress site: 

Root directory (usually public_html): 755
wp-admin: 755
wp-includes: 755
wp-content: 755
wp-content/themes: 755
wp-content/plugins: 755
wp-content/uploads: 755
.htaccess: 644
index.php: 644
wp-config.php: 640

Not sure but I think this will fix the issue;
WordPress can’t install plugin or even update itself if the file rights are off.

Go to filemanager, select the folder where you need to change the permissions.
In filemanager menu select Tools → change permissions.

set the correct permissions, don’t forget to set is to “All (recursive)” to change ALL the permissions in that folder.

and that should do the trick.

Hope this helps :+1:

755 and 644 are the correct settings. If you need to use 777 something is wrong.

1 Like

Yes, i have WP Workbench and i loved it, but before the migration this didn’t happen to me.
With WP Workbench i can update plugins but not install it