# Updating PHP version for WordPress using cPanel

> Change the PHP version your WordPress site uses with the Select PHP Version tool in cPanel, after backing up first.

Source: https://helpcenter.ruachost.com/wordpress/guides/updating-php-version-for-wordpress-using-cpanel/

Keeping your PHP version up to date is essential for WordPress performance and security. On **ruachost.com**, you can update PHP directly from **cPanel** using the **Select PHP Version** tool.

## Why Update PHP?

- Improves site speed and SEO.
- Enhances security against vulnerabilities.
- Ensures compatibility with modern plugins and themes.
- Provides access to new PHP features.

## Things to Do Before Updating

- **Backup your WordPress site** (files + database).
- **Check plugin/theme compatibility** with the new PHP version.
- Use a **PHP Compatibility Checker plugin** to identify issues.
- Fix any errors before proceeding.

## Steps to Update PHP Version in cPanel

1. **Log in to cPanel** via your hosting account.
2. Scroll down to the **Software** section.
3. Click **Select PHP Version**.
4. From the dropdown menu, choose the desired PHP version (e.g., PHP 8.1).
5. Click **Set as Current**.
6. Return to WordPress → Go to **Tools → Site Health → Info → Server** to confirm the updated PHP version.

✅ Your WordPress site is now running on the new PHP version.

## Common Issues After Upgrade

- Some plugins/themes may not support the latest PHP.
- White screen or errors → Disable incompatible plugins.
- Revert to an earlier PHP version if necessary.
