≡ Menu

Test Apache+PHP with phpinfo() On a CentOS/RHEL v7.x server

Fig.03: Test Apache+PHP with phpinfo() On a CentOS/RHEL v7.x server

The code is as follows to test php installation with /var/www/html/test.php :

 
<?php     phpinfo(); ?>
 

Open a browser and type url:

http://your-server-name-or-ip/test.php
Tweet itFacebook itGoogle+ itFound an error/typo on this page?

Examples and usage: CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack

{ 0 comments… add one }

Leave a Comment