Appearance
Installation
This guide will walk you through installing Virtual Files on your WordPress site.
System Requirements
Minimum Requirements
- WordPress: 5.0 or higher
- PHP: 7.4 or higher
- Memory: 64MB or higher
- Database: MySQL 5.6+ or MariaDB 10.0+
Recommended Requirements
- WordPress: 6.0 or higher
- PHP: 8.0 or higher
- Memory: 128MB or higher
- PHP Extensions:
mbstring(for UTF-8 support)curl(for API calls)json(for JSON handling)
Installation Methods
Method 1: WordPress Admin (Recommended)
Download Plugin
- Download Virtual Files from WordPress.org (Free version)
- Purchase Pro version from Freemius Checkout
- Download the plugin ZIP file
Install via WordPress
- Log in to your WordPress admin dashboard
- Navigate to Plugins → Add New
- Click Upload Plugin
- Choose the downloaded ZIP file
- Click Install Now
Activate Plugin
- After installation, click Activate Plugin
- Virtual Files will be ready to use
Method 2: Manual Installation
Download Plugin
bash# Download the latest version wget https://downloads.wordpress.org/plugin/virtual-files.latest-stable.zipExtract Files
bashunzip virtual-files.latest-stable.zipUpload to Server
bash# Upload to wp-content/plugins/ cp -r virtual-files /path/to/wordpress/wp-content/plugins/Set Permissions
bash# Set proper permissions chmod -R 755 /path/to/wordpress/wp-content/plugins/virtual-filesActivate in WordPress
- Log in to WordPress admin
- Navigate to Plugins → Installed Plugins
- Find "Virtual Files" and click Activate
Post-Installation Setup
1. Verify Installation
After activation, you should see:
- Virtual Files menu item in WordPress admin
- Virtual File post type in the left menu
- Settings page under Virtual Files menu
2. Configure Basic Settings
- Navigate to Virtual Files → Settings
- Review the following settings:
- Enable Virtual Files: Ensure this is checked
- Allowed Extensions: Choose which file types to enable
- File Limits: Configure limits based on your plan
3. Test Virtual Files
Create a test virtual file:
- Navigate to Virtual Files → Add New
- Enter a filename (e.g.,
test.txt) - Add some content
- Click Publish
- Visit
yourdomain.com/test.txtto verify it works
4. Flush Rewrite Rules
If virtual files don't work:
- Navigate to Virtual Files → Settings
- Click Flush Rewrite Rules
- Or visit Settings → Permalinks and click Save Changes
Server Configuration
Apache (.htaccess)
Virtual Files automatically configures rewrite rules. Ensure your .htaccess is writable:
apache
# Virtual Files will add rules like:
RewriteRule ^robots\.txt$ index.php?virtual_file=1&file_id=123 [L]
RewriteRule ^sitemap\.xml$ index.php?virtual_file=1&file_id=124 [L]Nginx
For Nginx servers, add this to your server configuration:
nginx
location / {
try_files $uri $uri/ /index.php?$args;
}
# Handle virtual files
location ~* \.(txt|xml|json|md|csv|yml|yaml|log|rss)$ {
try_files $uri /index.php?$args;
}Caching Plugins
If you use caching plugins, exclude virtual file URLs:
- W3 Total Cache: Add virtual file patterns to "Never cache the following pages"
- WP Super Cache: Exclude virtual file URLs from cache
- Cloudflare: Create page rules to bypass cache for virtual files
Troubleshooting Installation
Common Issues
Plugin Won't Activate
Symptoms: White screen or activation error Solutions:
- Check PHP version (requires 7.4+)
- Increase memory limit to 128MB+
- Check for plugin conflicts
- Enable debug mode:
define('WP_DEBUG', true);
Virtual Files Return 404
Symptoms: Virtual file URLs show 404 errors Solutions:
- Flush rewrite rules: Virtual Files → Settings → Flush Rewrite Rules
- Check file permissions
- Verify server configuration
- Check if "Enable Virtual Files" is checked in settings
Admin Pages Not Loading
Symptoms: Virtual Files admin pages are blank or show errors Solutions:
- Check browser console for JavaScript errors
- Disable other plugins temporarily
- Clear browser cache
- Check WordPress debug log
Performance Issues
Symptoms: Slow virtual file loading Solutions:
- Enable caching (Pro feature)
- Optimize database
- Check server response times
- Consider upgrading to Pro for advanced caching
Debug Mode
Enable WordPress debug mode to troubleshoot:
php
// Add to wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);Check debug log: /wp-content/debug.log
Getting Help
If you encounter issues:
- Check Documentation: Review our Troubleshooting Guide
- Visit Support: Contact our support team
- Community: Join our WordPress.org support forums
- Report Bugs: Report issues on GitHub
Next Steps
After successful installation:
- Read the Quick Start Guide
- Explore Features
- Check User Guide
- Review Settings
Congratulations! You now have Virtual Files installed and ready to create virtual files on your WordPress site.