---
title: "How to Install PHP 8.0"
description: "PHP 8.0 introduces many new features including Just In Time (JIT), type juggling, named arguments, and union types. Don’t worry. PHP 7.4 will be actively supported until the end of 2021. This gives..."
url: https://www.inmotionhosting.com/support/website/install-php-8-0/
date: 2021-03-01
modified: 2024-03-11
author: "InMotion Hosting Contributor"
categories: ["Website"]
type: post
lang: en
---

# How to Install PHP 8.0

![How to Install PHP Version 8.0 - header image](https://www.inmotionhosting.com/support/wp-content/uploads/2022/09/install-php-8-1024x538.jpg)

[**PHP 8.0**](https://www.inmotionhosting.com/blog/php-8-whats-new/) introduces many new features including Just In Time (JIT), type juggling, named arguments, and union types. Don’t worry. PHP 7.4 will be actively supported until [the end of 2021](https://www.php.net/supported-versions.php). This gives website owners plenty of time to upgrade your PHP version for top performance and security on your [PHP website hosting](https://www.inmotionhosting.com/php-hosting).

Read more about PHP 8.0 features at [PHP.net](https://www.php.net/releases/8.0/en.php).

As stated in our PHP 8.0 overview linked above, the challenge will be making sure your web applications are fully compatible. Below we’ll cover:

- [How to Install PHP 8.0](#how) wp:list /wp:list
  - [Shared Hosting](#shared)
  - [Managed VPS / Dedicated Server Hosting](#managed)
  - [Cloud Server Hosting](#cloud)
  - [PHP Versions Supported in AlmaLinux 8](#almalinux8)
- [What Supports PHP 8.0](#what)

![PHP 8 support](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/php-supported-versions-jan-2021-1024x275.png)

## How to Install PHP 8.0

### Shared Hosting

PHP 8.0 and related extensions are available for:

- CentOS 7 [Shared Hosting](https://www.inmotionhosting.com/shared-hosting) (e.g. [ecbiz](https://www.inmotionhosting.com/support/website/how-to-determine-your-server-location/)###.inmotionhosting.com [server hostnames](https://www.inmotionhosting.com/support/website/what-is-my-hostname/))
- UltraStack [Shared WordPress Hosting](https://inmotionhosting.com/wordpress-hosting) (ngx###.inmotionhosting.com server hostnames)

To check your CentOS version, [log into SSH](https://www.inmotionhosting.com/support/server/ssh/shared-reseller-ssh/) or [cPanel Terminal](https://www.inmotionhosting.com/support/edu/cpanel/how-to-launch-the-cpanel-terminal/). Type the following command to retrieve your server hostname and CentOS version: 

uname -a

The number after `vz` indicates whether you’re using CentOS 7 or 6.

[CentOS 6](https://www.inmotionhosting.com/support/product-guides/vps-hosting/centos-6-end-of-life-eol/) users wanting to implement PHP 8.0 will need to [contact Live Support](https://www.inmotionhosting.com/support/amp/how-to-get-great-technical-support/) to request a free migration to a CentOS 7.

CentOS 7 users can select PHP 8.0 from cPanel [MultiPHP Manager](https://www.inmotionhosting.com/support/website/how-to-change-the-php-version-your-account-uses/) as of February 25, 2021.

![displays a standard MultiPHP Manager setup](https://www.inmotionhosting.com/support/wp-content/uploads/2020/07/multiPHPRegular-1024x518.png)

### Managed VPS / Dedicated Server Hosting

PHP 8.0 and related extensions will be available for all cPanel-managed VPS and dedicated server customers using CentOS 7. 

The easiest way to check your CentOS version: [log into WebHost Manager (WHM)](https://www.inmotionhosting.com/support/edu/whm/log-into-whm/) and check [the top of the page](https://www.inmotionhosting.com/support/edu/whm/how-to-check-versions-in-whm/).

![See CentOS version in WHM](https://www.inmotionhosting.com/support/wp-content/uploads/2020/08/whm-centos-version-1024x441.jpg)

Terminal users can [log into SSH](https://www.inmotionhosting.com/support/server/ssh/how-to-login-ssh/) and use multiple commands to retrieve the CentOS version depending on your user privileges: 

Regular user:

uname -a

The number after `vz` indicates CentOS 7 or 6.

[Root (administrative) user](https://www.inmotionhosting.com/support/amp/obtain-root-access/) or user with `sudo` privileges:

cat /etc/os-release

cat /proc/version

cat /etc/centos-release

sudo hostnamectl

The benefit of seeing multiple options is that one will likely become the most memorable for you at some point.

CentOS 7 cPanel server administrators can install the latest version of PHP in WHM with [**EasyApache 4**](https://www.inmotionhosting.com/support/product-guides/vps-hosting/how-to-install-php-versions-in-easyapache-4/). Then, you can set the default server PHP version and modify the PHP version for individual websites with[ MultiPHP Manager](https://www.inmotionhosting.com/support/website/how-to-use-multiphp-in-whm-to-change-your-servers-php-versions/) and[ MultiPHP INI Editor](https://www.inmotionhosting.com/support/website/multiphp-ini-editor-whm/) respectively.

[CentOS 6](https://www.inmotionhosting.com/support/product-guides/vps-hosting/centos-6-end-of-life-eol/) users wanting PHP 8.0 must [contact Live Support](https://www.inmotionhosting.com/support/amp/how-to-get-great-technical-support/) for a free CentOS 7 migration.

### Cloud Server Hosting

[Linux cloud server](https://www.inmotionhosting.com/cloud-vps) users can[ install the latest PHP version](https://www.inmotionhosting.com/support/product-guides/cloud-server/how-to-install-php/) from your distro repositories.

### PHP Versions Supported in AlmaLinux 8

If you are using** AlmaLinux 8**, then only the following versions of PHP are available through EasyApache 4:

- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
- PHP 8.1

The following versions PHP will not be available when using AlmaLinux 8.

- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7.0
- PHP 7.1

In order to see the most recent PHP versions available, you can run the following command:

repoquery --repoid=EA4 --queryformat="%{name}" | grep -Eoh "ea-php[0-9]{2}" | sort | uniq

AlmaLinux 8 does not provide support for loading the legacy versions of PHP (pre-version 7.2). Support for these earlier versions can loaded using CentOS.

## What Supports PHP 8.0

Here’s the latest on PHP 8.0 support from the most popular self-hosted content management systems (CMSs).

[Drupal](https://www.inmotionhosting.com/support/edu/drupal/) 9.1 supports PHP 8.0. Create a [backup](https://www.inmotionhosting.com/support/edu/drupal/create-a-drupal-8-backup-backup-and-migrate/) before you [update Drupal](https://www.inmotionhosting.com/support/edu/drupal/update-drupal-8-manually/).

[WordPress](https://make.wordpress.org/core/2020/11/23/wordpress-and-php-8-0/) 5.6 and [Joomla](https://www.joomla.org/announcements/release-news/5828-joomla-3-9-23.html) 3.9.23 have unstable support for PHP 8.0 as of February 2021.

[Magento](https://community.magento.com/t5/Magento-DevBlog/Magento-PHP-8-Compatibility-Community-Project/ba-p/464983) does not support PHP 8.0 as of February 2021.

If you have any questions regarding PHP version 8.0, [contact technical support](https://www.inmotionhosting.com/support/amp/how-to-get-great-technical-support/). Now that you're using PHP 8.0, why not [try out PHP's built-in web server](https://www.inmotionhosting.com/support/website/how-to-use-the-php-built-in-web-server/)?
