[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache2 & php5 Problem

On Aug 22, 2007, at 11:04 AM, Randy Patterson wrote:

On Tuesday 21 August 2007 16:04, Jose Luis Rivas Contreras wrote:
Randy Patterson wrote:>

After running the above command, this is only item related to php that it

php5_module (shared)

So it's installed... The only thing it could be happening then is that
your script is wrong...

Here's the entire php file in question;

<h1>PHP Test</h1>
<br />
<?php print "Hello World!" ?>

"Hello World" doesn't print.


Have you tried;

print <<<HTML
<p>It works!</p>

Or similar? Perhaps Apache just isn't parsing the php in what it thinks is an HTML file. (make sure the file's extension is one Apache knows to look for script in. That is, .php or something like .phtm for a mix-type file. It really doesn't matter as long as you and Apache know.)

Reply to: