This is another way to check whether our PHP works well and also check PHP version. We will create PHP info file.

1. Create PHP info file in root html folder

vi /var/www/html/info.php

2. Input this code

<?php

phpinfo()

?>

If You do not understand how to insert/update, save, discard file content with vi command, please visit this link

3. Save it

4. Now open your IP or domain name through browser, add /info.php on the end of it. example : http://www.yourdomainname.com/info.php or XXX.XX.XX.XXX/info.php

If our PHP works well, we will see this page appear

M. Faisol Riza - Check PHP version CentOS VPS

Satu tanggapan untuk “Check PHP version on CentOS with php info file”

  1. […] or we can create php info file. Check it out this article Check PHP version on CentOS with php info file. […]

Tinggalkan Balasan ke Install PHP on Centos | M. FAISOL RIZA Batalkan balasan

I’m Riza

Welcome to my website. I’m happy to share my knowledge and experience here, especially related with my expertise in digital solution for enterprise. I’ll talk many topics around technology, AI, and others. Happy to know you!

You can find me in network platform below

Let’s connect