How to enable expose_php extension using WHM

  Uncategorized

Introduction

Below is the full instruction on how to enable expose_php by using WHM

Procedure

1. Log into WHM as root 

2. Under Software, select “MUltiPHP INI Editor”

3. Select “Editor Mode” tab

4. Select the PHP version

5. Search for “expose_PHP”

6. Change from Off to “On”

How to confirm if expose_php is enabled?

You can run the following command in SSH:

curl -IL domaim.com

If you do see the following line, starting with X-Powered-by, expose_php is working properly:

#curl -IL domain.com/info.php

HTTP/1.1 200 OK
Date: Sun, 23 May 2021 12:49:22 GMT
Server: Apache
X-Powered-By: PHP/7.3.27

LEAVE A COMMENT