How to Configure Custom PHP Settings for Your App
Many PHP applications require specific PHP settings to run correctly - things like increased memory limits, larger file upload sizes, or extended execution times. On your dotCanada account, you can customize these settings without touching the global server configuration.
Method 1: cPanel MultiPHP INI Editor
- Log in to cPanel and go to Software > MultiPHP INI Editor.
- Select the domain you want to configure.
- Adjust values using the editor interface, or switch to Editor Mode to paste raw PHP ini directives.
- Click Apply to save.
Method 2: Using a .htaccess File
For Apache/LiteSpeed servers, you can set PHP values in a .htaccess file placed in your application's directory:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 256M
php_value max_execution_time 120Method 3: Using a php.ini File
You can also create a php.ini file in your application's root directory:
[PHP]
memory_limit = 256M
upload_max_filesize = 64M
max_execution_time = 120Commonly Adjusted Settings
- memory_limit - How much memory PHP can use per request
- upload_max_filesize - Maximum file upload size
- post_max_size - Maximum size of POST data
- max_execution_time - How long a PHP script can run
- display_errors - Whether to show errors in the browser (disable in production)
If a setting isn't being applied as expected, contact our support team and we'll help you troubleshoot.
100% Satisfaction Guarantee
We're so confident you'll love dotCanada that we offer a 30-day money-back guarantee. Not satisfied? Get a full refund, no questions asked.
Ready to Get Started?
Join thousands of Canadian website owners who trust dotCanada for reliable, fast web hosting.
Get Started Today
