PHP not working in SUSE 10.1
Just did new install of SUSE 10.1. During the install I included Apache2 with PHP5 (in fact a complete webserver install).
In YaST, I enabled the HTTP sever and enabled PHP and opened it's ports in the firewall.
I can display a web page (both the default page and one of my own) from within linux and from another computer on the LAN.
The problem is that PHP code is not executed. It makes no difference if the PHP is within an HTML page or a file by itself.
Example 1, file index.html:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo phpinfo(); ?>
</body>
</html>
Example 2, file justphp.php:
<?php
phpinfo();
?>
Does anybody have an idea why PHP may not be working?
Thanks for any help
PS
I'm somewhat new to Linux
|