Short answer: PHP is the programming language that builds most websites' pages on the server, including every WordPress site. When someone visits, PHP runs your site's code, fetches content from the database and sends back a finished page. Keeping PHP on a current version makes your site faster and safer, and on cPanel hosting you can change it in a few clicks.
You'll see "PHP" in hosting plans, WordPress warnings and error messages. You don't need to learn it to run a website, but knowing what it does helps you keep your site fast, secure and working.
What PHP does
When a visitor opens a page on a WordPress site:
- The server receives the request and starts PHP.
- PHP runs WordPress, your theme and your plugins.
- It asks the database for the page's content, menus and settings. See what is a database.
- It builds the finished HTML page and sends it to the visitor's browser.
That happens on every uncached visit, which is why page caching makes such a big difference. See caching explained.
Why so many websites use PHP
- It powers WordPress, which runs a large share of all websites, plus WooCommerce, Joomla, Drupal, Laravel and many others.
- It's included and preconfigured on almost all web hosting.
- It's mature, well documented and easy to find developers for.
PHP versions: why they matter
PHP is updated regularly. Each version is supported with security fixes for a limited time, then reaches "end of life".
| Running a current PHP version | Running an old PHP version |
|---|---|
| Faster pages, often noticeably | Slower pages |
| Security fixes | No more security fixes |
| Works with current plugins | Plugins start refusing to install |
WordPress shows a warning in Tools → Site Health when your PHP version is outdated. Our guide on which PHP version to use explains how to choose.
How to change your PHP version in cPanel
- Take a backup. See cPanel backup and restore.
- In cPanel, open Select PHP Version or MultiPHP Manager (the name depends on the server).
- Choose a current PHP 8 version for your domain and save.
- Visit your site and test key pages, forms and checkout.
- If something breaks, switch back and update the plugin or theme that caused it.
PHP settings you might need
Some plugins and imports need higher limits, such as memory or upload size. You can usually change them in cPanel under PHP Options or MultiPHP INI Editor. See increasing PHP limits in cPanel.
| Setting | What it controls | Common value for WordPress |
|---|---|---|
| memory_limit | Memory each request can use | 256M |
| upload_max_filesize | Largest file you can upload | 64M or more |
| max_execution_time | How long a script may run | 60 to 300 seconds |
PHP and speed
- OPcache keeps compiled PHP in memory so it doesn't recompile on every request. See PHP OPcache.
- Page caching avoids running PHP at all for most visitors.
- Fewer, better plugins mean less PHP to run. See speeding up WordPress.
Frequently asked questions
Do I need to learn PHP to run a WordPress site?
No. You only need to keep it on a current version. Developers use PHP to build custom features.
Is PHP included with my hosting?
Yes, on almost all web hosting, including every AuroxHost web, WordPress, offshore and reseller plan.
Can changing the PHP version break my site?
Occasionally, if an old plugin or theme isn't compatible. Take a backup first, test after switching, and switch back if needed.
What does "PHP fatal error" mean?
The code hit a problem it couldn't recover from, often after an update. See fixing a 500 error and fixing the WordPress white screen.



