the error prevents any plugin installation and also the same about any updates.
It is a local installation in Linux Mint (no SELinux, no mod_security).
any ideas?
Have you checked both file permissions and ownership? The owner should be www-data
.
I did but nothing changed.
maybe following error will be informative:
ClassicPress could not establish a secure connection to WordPress.org. Please contact your server administrator.
You need to install a SSL/ CA Certificate so your site can use https.
You might need to add:
define('FS_METHOD', 'direct');
To your wp-config.php file and also check file permissions and ownership (It means your install is owned by www-data and your user is not in the www-data group so it doesn’t have correct chown on the directory for wp-content)
This boils down on your set up of the local environment, not ClassicPress.
thank you for all replies,
both file/directory permission and FS_METOD is defined correctly,
I suppose that it’s something about HTTPS connection,
but is it true that I need to install SSL certificate on localhost just to be able to download files from https?
Since localhost takes the plugins and themes from outside localhost (from the real web) I do think you need to follow this guide similar to this one here.
Basically you need to generate a self-signed cert with openssl
you don’t need to install SSL certificate on localhost just to be able to download files from the Internet, and it does not matter HTTP or HTTPS.
Finally I got the solution. The source of problems came from PHP-FPM settings on localhost (Apache virtualHost), since I disabled all PHP-FPM handlers, everything looks normal as should be. Thanks everyone.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.