PHP not working in SUSE 10.1
Just did new install of SUSE 10.1. During the install I included Apache2 with PHP5.
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();
?>
Both examples produce a blank page. HTML code works if including in the first example.
Does anybody have an idea why PHP may not be working?
I have been all over the web and nothing I'v seen so far applies to SUSE 10.1.
Thanks for any help
PS
I'm somewhat new to Linux
|