HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


How to check PHP version and configuration

There are two ways to check PHP version set for the account - through the Select PHP Version menu or via the PHPinfo() function.
 
NOTE: By default, we have PHP 7.2 set on our Shared servers.

To check what PHP version is selected for Stellar or Stellar Plus hosting accounts, go to cPanel > Software section > Select PHP Version menu:



You will see the current PHP version above PHP extensions:

 
If you have Stellar Business go to the Exclusive for Namecheap Customers section >> the PHP Tweaks menu:

 
There you will see the domain and the PHP version set up for it:
 
 
 
Another way to check PHP version is PHPinfo() function, commonly used to check the current state of PHP configuration. It can also be used for debugging purposes as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data.

 

To run the function, follow the steps below:
 
1. Log into your cPanel account, go to the Files section > File Manager:
 
For cPanel Basic Theme:


 
For cPanel Retro Theme:




2. Navigate to the public_html directory, click on +File and create a phpinfo.php file:





3. Find the newly created file in the list and click on Edit in the upper corner menu or right-click on the file > Edit:



4. Add the lines of the code provided below to the file and click on Save Changes:

 




5. To see the detailed information about the PHP configuration of your account, open http://yourdomain.tld/phpinfo.php link in your browser, replacing yourdomain.tld with your main domain name.

NOTE: For the security reasons, do not forget to delete the file once you check all the necessary information.


 That's it!


                    Need any help? Contact us via Helpdesk

 

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

SatSunMonTueWedThuFri
 1
2345678
9101112131415
16171819202122
23242526272829
30 

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional