LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   PHP not working in SUSE 10.1 (https://www.linuxquestions.org/questions/linux-server-73/php-not-working-in-suse-10-1-a-486551/)

isretired 09-24-2006 03:18 PM

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

w3bd3vil 09-24-2006 06:37 PM

no double posting. :D

reddazz 09-24-2006 07:11 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 01:19 PM.