Uploading files to Control WebPanel (CWP) is primarily done via the User Panel File Manager or FTP/SFTP, targeting the public_html folder for web-accessible files. For large files, you must increase PHP limits (upload_max_filesize, post_max_size) in php.ini and configure client_max_body_size in your web server (Nginx/Apache).
Handling Large File Uploads (> 64MB)
To upload large files, update these configurations in php.ini (usually /usr/local/cwp/php71/php.ini or similar)
- Increase upload_max_filesize to your desired size (e.g., 1000M).
- Increase post_max_size to be slightly larger than the upload size (e.g., 1100M).
- Increase memory_limit to be higher than post_max_size (e.g., 1200M).
- Restart Web Servers: For Nginx, adjust client_max_body_size and restart.
- Alternative: Use the command sh /scripts/php_big_file_upload 1000 to automatically configure PHP for 1GB uploads.
Important Considerations - File Permissions: Ensure files are owned by the user (not root) to avoid website errors.
- Database: If uploading a web app, create a MySQL database in the CWP panel first.
- Security: Use SFTP instead of FTP for secure file transfers.