PHP Versions and Why They Matter for Your Website
PHP is one of the most widely used server-side scripting languages powering websites today. If your site runs on platforms like WordPress, Magento, or Joomla, it’s using PHP. But using the right PHP version is essential for keeping your site fast, secure, and compatible with modern software.
In this article, we’ll explain what PHP versions are, why updating matters, and how to check or change the PHP version for your site hosted with Liquid Web.
What Is a PHP Version?
PHP is regularly updated by its maintainers to improve performance, add new features, and fix security issues. Each release is labeled as a “version” (e.g., PHP 7.4, 8.0, 8.1, 8.2).
- Active versions receive regular security updates and bug fixes.
- End-of-life (EOL) versions no longer receive official support or patches.
You can find the full support timeline at php.net/supported-versions.php.
Why Does the PHP Version Matter?
1. Security
Outdated PHP versions are more vulnerable to attacks because they don’t receive security patches. Running an EOL version exposes your site to known exploits.
Recommendation: Always run a supported version of PHP to protect your website from vulnerabilities.
2. Performance
Newer PHP versions are significantly faster and more efficient than older ones. For example:
- PHP 8.1 can handle 50% more requests per second than PHP 7.4.
- Lower memory usage and faster script execution improve your page load times.
Result: A faster site means better user experience and SEO.
3. Compatibility
Modern content management systems (CMSs) and plugins often require newer PHP versions. If you’re using an outdated version:
- Plugins or themes may stop working.
- You may experience bugs or failed installations.
Note: Always check the PHP requirements of your CMS and extensions before upgrading.
How to Check Your Current PHP Version
You can check your PHP version in several ways:
- Using WordPress Plugins:
Plugins like “Display PHP Version” or “Site Health Info” show your current version from the WordPress dashboard. - Command Line (Linux):
Run php -v in the terminal.
How to Change or Upgrade PHP Versions
Liquid Web customers have access to tools and support that make PHP version upgrades safe and easy.
cPanel/WHM
- Log in to WHM
- In the left-hand WHM search bar, type: EasyApache 4
- Click on EasyApache 4 under the “Software” section.
- On the EasyApache 4 dashboard, you’ll see a list of currently installed PHP versions.
- Look for the “Currently Installed Packages” section to confirm your current profile.
- Click the “Customize” button next to the current profile.
- Navigate to the PHP Versions section.
- Browse the list of available PHP versions (e.g., PHP 8.1, PHP 8.2).
- Check the box next to the version you want to install.
- Click “Next” through each section until you reach the “Review” screen.
- Confirm your changes.
- Click “Provision” to begin the PHP upgrade process.
This process may take a few minutes.
Do not close the browser tab during provisioning.
Set PHP Version Per Domain (Optional)
After installing the new PHP version, assign it to individual domains:
- In WHM, search for and open “MultiPHP Manager.”
- In the domain list, check the box next to the domain(s) you want to update.
- From the PHP Version drop-down, select the new version.
- Click “Apply” to save changes.
Test Your Website(s)
- Visit your website(s) to ensure they are functioning correctly.
- Review site functionality and error logs for issues.
- If needed, switch back to the previous PHP version via MultiPHP Manager.
Plesk
- Log in to Plesk
- Check Current PHP Versions Installed.
- In the left-hand menu, click Tools & Settings.
- Under General Settings, click PHP Settings.
- You’ll see a list of all installed PHP versions and handlers (e.g., FastCGI, FPM, CGI).
- Note which versions are currently available on your server.
- Install a New PHP Version (If Not Already Installed)
- Go to Tools & Settings > Updates and Upgrades.
- Click Add/Remove Components.
- Scroll down to the Web hosting section.
- Expand PHP interpreter versions.
- Check the box for the version you want to install (e.g., PHP 8.2).
- Click Continue to begin installation.
This process may take a few minutes.
Do not close the browser tab during provisioning.
- Set the PHP Version for a Specific Domain
- Go to the Websites & Domains tab.
- Find the domain you want to modify and click Hosting Settings.
- Scroll to the Web scripting and statistics section.
- Use the PHP support drop-down menu to select the desired PHP version and handler (e.g., PHP 8.2 FPM).
- Click OK or Apply to save the changes.
- Verify the New PHP Version
- Create a phpinfo.php file in the domain’s root directory.
- Access the file in your browser: http://yourdomain.com/phpinfo.php
- Look for the “PHP Version” line to confirm the correct version is active.
- Update PHP Settings (Optional)
To customize PHP configuration for the domain:
- Go to Websites & Domains > PHP Settings.
- Adjust values like memory_limit, upload_max_filesize, or max_execution_time.
- Click OK to save the changes.
If you get a 500 error after switching PHP versions, revert to the previous version and check error logs.
Interworx
- Log into Nodeworx. For help logging in, see Logging into Interworx Web Panel.
- Click on System Services in the left menu.
- Click on Web Server, then click Overview.
- Scroll down to Multiple PHP Versions.
- Click the box next to the version(s) of PHP you want to enable.
- Click the Update button to install selected versions of PHP.
- Once updated, these versions can be selected per domain via Siteworx.
Best Practices When Upgrading PHP
- Backup your website before making any changes.
- Test updates in a staging environment before applying them to your live site.
- Update your CMS, themes, and plugins to ensure compatibility.
- Use logs and error monitoring tools to catch issues early.
Conclusion
Keeping your PHP version up to date is one of the easiest and most important steps you can take to improve your website’s security, speed, and reliability.