Plugin activation issue
How to resolve plugin activation errors by editing the wp-config.php file?
The AppMySite WordPress plugin activation may fail occasionally due to insufficient write permissions on the wp-config.php file. This guide will walk you through the steps to resolve this issue.
Why the Error Occurs
The activation error typically occurs because the wp-config.php file lacks the necessary write permissions, preventing the plugin from successfully adding the required code during activation.
To fix this issue, you have two options:
Option 1: Grant Write Permission
Locate the wp-config.php file
Access your website’s root directory using an FTP client or your hosting provider’s file manager. The wp-config.php file is located in the root directory of your WordPress installation.
Modify the file permissions
Right-click on the wp-config.php file and select "File Permissions" or "Change Permissions" (this may vary depending on your FTP client or file manager).
Set the file permissions to 644 or 666 to allow write access.
Click "OK" or "Save" to apply the changes.
Activate the Plugin
Go back to your WordPress admin dashboard and attempt to activate the AppMySite plugin again. The activation should now proceed without errors.
Revert the Permissions:
After the plugin is successfully activated, it’s a good practice to revert the file permissions back to 644 for security reasons.
If you are unsure how to change file permissions, please contact your hosting provider for assistance.
Option 2: Manual Addition of Code to wp-config.php
If you prefer not to modify file permissions, you can manually add the necessary code snippet to the wp-config.php file.
Access the wp-config.php file
Use an FTP client or your hosting provider’s file manager to locate and open the wp-config.php file in a text editor.
Add the Code Snippet
Scroll to the bottom of the wp-config.php file, just before the line that says:
/* That's all, stop editing! Happy publishing. */
Insert the following code snippet:
Remember to replace the "X"s in 'AMS_LICENSE_KEY' with your actual license key, which you can find in your account.
Important: Replace the "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" in the AMS_LICENSE_KEY with your actual license key. You can find this key in your AppMySite account under the "Licenses" section.
Save the Changes
Save the edited wp-config.php file and close the text editor.
Activate the Plugin
Return to your WordPress admin dashboard and activate the AppMySite plugin. It should now activate successfully without any issues.
By following either of the methods above, you should be able to resolve the plugin activation error related to wp-config.php file permissions. For further assistance or if you encounter any issues, don't hesitate to reach out to AppMySite support.
Last updated