To check whether your linux-box has PHP installed or not:
- From the command-shell run: rpm -qa | grep -i php
- this should return something like this:
php-cli-5.1.6-5.el5
php-5.1.6-5.el5
php-common-5.1.6-5.el5
php-ldap-5.1.6-5.el5
Or, you could run a test.php file within the htdocs dir in Apache:
<HTML>
<HEAD>
<TITLE>PHP Test Page</TITLE>
</HEAD>
<BODY><?php phpinfo() ;?></BODY>
</HTML>
You can also look for the installed php dir and run the ‘info.php’ file.
Comments