How to check your current PHP install using PHP info.
Need to find details of the PHP installed on your server?
Create a php script using the text editor of your choice and call it what you want as long as its extension is .php.
Insert the following.
Make the script executable (providing your in that directory).
chmod +x phpinfo.php
You will also need to set the ownership permissions on the file to what Apache is running them as so its executable in a browser.
chown user:group phpinfo.php
So if the site is running as an Apache module for example.
chown apache:apache phpinfo.php
Now load the page in your browser to get details of your PHP install.