PHP Info
Insert the following code into a new web document in your root web directory and name it info.php. Navigate your your site, and type in sitename.com/info.php. This will let you know if PHP is installed and working properly.
To do this on Open Suse 10.3, type...
cd /srv/www/htdocs/Type "i" to begin editing the file.
vi info.php
Copy and paste the following into the document...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PHP Info</title>
</head>
<body>
<?php
phpinfo();
?>
</body>
</html>
Now type in http://www.yourwebsite.com/info.php to see the PHP info document. If it shows up, it proves that your server is running PHP correctly.