Overview
Modern web hosting environments support multiple PHP runtime versions simultaneously. This multi-version architecture allows you to run modern applications like WordPress or Laravel on current PHP releases (such as PHP 8.2, 8.3, or 8.4) while maintaining compatibility with legacy scripts that require PHP 8.1.
In addition to switching the core interpreter version, your control panel provides granular control over loaded PHP extensions (modules) and execution directives such as memory_limit, max_execution_time, upload_max_filesize, and post_max_size.
Step 1: Accessing the PHP Version Selector
To manage your PHP runtime:
- Log in to your hosting control panel (via your client portal or direct panel link).
- Locate the Software or Application Management section.
- Click on Select PHP Version (or PHP Manager, depending on your control panel interface).
- You will see your domain’s current active PHP version displayed alongside the available alternative versions.
Step 2: Selecting and Applying a PHP Version
- Locate the dropdown menu labeled Current PHP Version.
- Select your desired version from the list of actively supported releases (e.g.,
8.2,8.3, or8.4). - Click Set as current or Apply Changes.
- The web server immediately switches PHP handlers without requiring an operating system restart.
[!TIP] Compatibility Check: Always verify frontend pages and your WordPress administrative dashboard immediately after switching versions. If a critical plugin is incompatible with the selected PHP version, you can revert to your previous version with a single click.
Step 3: Enabling or Disabling PHP Extensions
Web applications frequently require specific PHP extensions to handle image processing, database connections, cryptography, or caching:
- Within the PHP Selector screen, navigate to the Extensions tab.
- A comprehensive list of compiled PHP modules will appear with toggle checkboxes.
- Common extensions include:
mysqliandpdo_mysql: Core MySQL/MariaDB database communication drivers.imagickandgd: Graphic libraries used by WordPress to crop and generate responsive image thumbnails.curl: Client URL library required for API communication and payment gateway webhooks.redis: Extension connecting PHP directly to in-memory Redis object caches.intl: Internationalization library required for multi-language CMS sites.zip: Archive manipulation required for automated plugin and theme updates.
- Check the box beside any required extension to enable it immediately. Uncheck unnecessary modules to minimize worker process overhead.
Step 4: Adjusting Resource Limits (Options / Directives)
If your application displays memory exhaustion errors (e.g., Fatal error: Allowed memory size of bytes exhausted), you can adjust directive values:
- Click on the Options tab within the PHP management screen.
- Adjust the key execution directives:
memory_limit: Set to256Mor512Mdepending on your plan allocation and application demands.max_execution_time: Set to60or120seconds to allow complex operations (like backup generation or large product imports) to finish without timeouts.upload_max_filesize: Increase to64Mor128Mif you need to upload large media files or PDF documents.post_max_size: Must always be equal to or greater thanupload_max_filesize.
- Changes save automatically or via the Save button at the bottom of the form.
Alternative Method: Configuring Limits via .user.ini
If your control panel uses PHP-FPM where global selector UI options are restricted, you can define directives directly inside a .user.ini file located in your website’s root directory (public_html/):
; Custom PHP directive overrides
memory_limit = 256M
max_execution_time = 120
upload_max_filesize = 64M
post_max_size = 64M
Save the file in your document root. PHP-FPM reads .user.ini files periodically (typically every 300 seconds) without requiring administrative intervention.
Frequently Asked Questions
Which PHP version should I use for a modern WordPress website?
WordPress officially recommends PHP 8.2 or PHP 8.3 for modern installations. Running actively supported PHP versions ensures security patches, improved execution speed via JIT compilation, and lower memory usage.
Will changing my PHP version break my existing website?
If your website code, plugins, or active theme rely on deprecated functions removed in newer PHP releases, you may encounter fatal errors. Always test major version upgrades during low-traffic periods and know how to switch back immediately if needed.
How much PHP memory limit should I allocate?
Standard brochure websites run comfortably on 128M to 256M. Dynamic ecommerce stores (such as WooCommerce) and sites with heavy administrative builders typically require 256M to 512M. Setting limits unnecessarily high can exhaust server worker concurrency.
Need Technical Assistance?
Web Hosting Wale support is available 24/7. Tickets are typically answered within 10-15 minutes.