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?
-
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
1. Shared Hosting and Reseller Hosting (with CageFS enabled)
-
Use cPanel Navigate to:
-
cPanel → Software → Select PHP Version → Options tab
-
-
Adjust directives such as:
-
memory_limit -
upload_max_filesize -
post_max_size -
max_execution_time
-
Changing PHP Version
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