How to check PHP installation on LAMP server using PHP info?

A guiding tutorial to check whether PHP is installed and working on LAMP server using PHP info.

Once you have installed PHP on Linux server along with Apache and MySQL server, you can check whether PHP is started working using PHP info file.

Check whether PHP is working on Linux

Check whether PHP is working on Linux

To check with PHP info file, first you need to create and edit info.php file on html home location (/var/www/) as below:

Add following line in newly created info.php file:

Save and exit the info file. You can edit file using terminal SSH.

Related:  How to search and install different PHP libraries and modules ?

To make these changes effective on LAMP server, you need to restart the Apache using below command:

Once you have completed with restart, visit info.php file from IP address of server (Ex: It will look like this.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *