@mountbest do you have filter: litespeed_wpconfig_readonly set to true?
OR PHP can write to wp-config?
-
This reply was modified 10 months, 2 weeks ago by
litetim.
Also, please tell me if you see an error message in Admin?
wp-config.php is read only, which is a recommended security setting.
Yes, I see warning in the Admin when I try to deactivate, delete or reinstall your plugin.
I think plugins should not be allowed to modify wp-config.php for security reason. And if changes are required – they should be clearly documented. What changes LSC tries to do to system files when it is installed, activated, deactivated and deleted?
@mountbest
I specifically chosen to ask if PHP has access to write wp-config.php Default WP, files and folders, permissions are presented here: https://developer.wordpress.org/advanced-administration/server/file-permissions/ (you might know how permissions works, BUT this is what WP needs).
LSC will need to edit wp-config.php to automate add/remove WP_CACHE constant that is needed for site to use cache mechanisms. See: https://scanfully.com/docs/wordpress-health/what-does-the-wp_cache-constant-do/
We are making changes to:
– wp-config.php
– .htaccess
– folder /wp-content/litespeed where we save all the info we generate and use: minified css, combined css, ucss, ccss,ucss, crawler, logs…
– database: settings, post meta, custom tables
Pretty much these are the files and places we change. I can help you with more specific and also the plugin code is open source and you can look over it.
What changes to wp-config.php do I need to make to DEACTIVATE the LSC plugin? Setting WP_CACHE constant to false? Deleting this constant?
You can do any of them, but I would delete the constant.