Contact Support : +64 220 256 070

Aimvm
Blog

How to find PHP version and modules installed on the server?

Posted on: October 25, 2014

To display the PHP configuration on the server including all the modules you can create a file ‘info.php’ on any of your sites document root with the following codes in it.

Steps:

1) Go to the document root of your website.

# cd /home/olpfgov/www

2) Create a new file ‘info.php.

vi info.php

<?php
phpinfo();
?>

Save and exit

3)Give the ownership to the account:

chown olpfgov.olpfgov info.php

4) now you can access the info.php file from the browser.

Screenshot

Now you have created the file successfully.

 

 

Search Blog