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.
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?
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.
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.
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