Re: PHP, apache and Redhat 7.1
| From: | Peter Goggin | Date: | Mon, 02 Sep 2002 13:55:42 +0000 |
| Subject: | Re: PHP, apache and Redhat 7.1 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-8305@lists.php.net to get a copy of this message | ||
I have installed Redhat 7.2, Apache 1.3.26, php 4.2.2.
I can get the web server working, but it does not appear to interpret
embedded php code.
I have run /usr/bin/php -i >test.htm and the file generated displays in the
browser. However even simple files with embedded php do not work.
For example:
<html>
<body>
Test script
<?php
echo "this is a test";
?>
</body>
</html>
only displays the html portion.
In addition if I call the script test.php the browser fails to recognise it
as a valid script.
Can anyone suggest where I should look for the problem.
I have a full site which I developed under win98 and now need to transfer it
to the linux machine. None of the scripts which include embedded php or
which have type .php work on the linux machine so obviously I have not got
apache server correctly configures.
Regards
Peter Goggin