Changing Managed Hosting PHP Settings and Versions
On ruachost.com, you can adjust PHP settings and switch PHP versions depending on your hosting package. This ensures your applications run with the correct configuration and compatibility.
???? Why Change PHP Settings or Versions?
Section titled “???? Why Change PHP Settings or Versions?”- Ensure compatibility with frameworks (WordPress, Laravel, Symfony, etc.).
- Improve performance by using newer PHP versions.
- Adjust resource limits (memory, upload size, execution time).
- Enable or disable extensions based on application needs.
Methods to Change PHP Settings
Section titled “Methods to Change PHP Settings”1. Shared Hosting and Reseller Hosting (with CageFS enabled)
Section titled “1. Shared Hosting and Reseller Hosting (with CageFS enabled)”-
Use cPanel Navigate to:
-
cPanel → Software → Select PHP Version → Options tab
Section titled “cPanel → Software → Select PHP Version → Options tab”
-
-
Adjust directives such as:
memory_limitupload_max_filesizepost_max_sizemax_execution_time
Changing PHP Version
Section titled “Changing PHP Version”Shared Hosting and Reseller Hosting (with CageFS enabled)
Section titled “Shared Hosting and Reseller Hosting (with CageFS enabled)”- Use cPanel → Select PHP Version
- Choose the desired PHP version (e.g., 7.4, 8.1).
- Apply changes; they take effect immediately.
Verification
To confirm your PHP version and settings:
- Create a test file
info.phpwith the following code:
<?php phpinfo(); ?>Visit http://yourdomain.com/info.php in your browser
Check the PHP version and settings
- Delete the file afterward for security