WordPress supports multiple filesystem access methods for installing and updating plugins and themes. MainWP requires the “direct” method to function properly on child sites.Documentation Index
Fetch the complete documentation index at: https://mainwp-mintlify-c0f00f42.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
What You’ll Learn
- Why FS_METHOD matters for MainWP
- How to configure the setting
- How to troubleshoot file permission issues
Why This Setting Matters
WordPress can access the filesystem through several methods:| Method | Description |
|---|---|
| direct | PHP directly reads and writes files |
| ssh2 | Uses SSH connection for file operations |
| ftpext | Uses PHP’s FTP extension |
| ftpsockets | Uses FTP via sockets |
When You Need This Setting
Apply this setting if you experience:- MainWP Dashboard warnings about filesystem method
- Plugin or theme updates failing with permission errors
- Upload operations timing out
- “Could not create directory” errors during installations
How to Apply the Setting
File Permissions
For direct filesystem access to work, WordPress needs proper file permissions:| Item | Recommended Permission |
|---|---|
| Directories | 755 |
| Files | 644 |
| wp-config.php | 640 or 600 |
Alternative: FTP Configuration
Some managed hosts don’t allow direct filesystem access. In those cases, configure FTP credentials instead:Troubleshooting
If setting FS_METHOD doesn’t resolve issues:- Verify file ownership matches your PHP process user
- Check if your host restricts certain PHP functions
- Review the Required PHP Functions list
- Contact your hosting support for assistance with file permissions
Self-Check Checklist
- FS_METHOD constant added to wp-config.php
- File saved successfully
- Test update runs without errors
- File permissions set correctly (755/644)
Related Resources
- Required PHP Functions - PHP requirements
- Resolve System Requirements - Server configuration
- Plugin Installation Fails - Upload troubleshooting
