Page 1 of 1

PHP Installation

Posted: Thu Oct 05, 2006 4:19 pm
by iloveny
Hi !

I need help on setting up and installing PHP!

I have installed PHP 5.20 and Apache 2.2.3 However, after I create my first php page and run it, blank screen appears.

On php.net website, they said that there is something wrong with the setting of Apache. I thought I have followed everything carefully, but maybe missed something.

Many many thanks in advanced!!!

Posted: Thu Oct 05, 2006 4:30 pm
by danharibo
Does the file have a .php extenction (I did that when testing my linux server :roll: )

Posted: Thu Oct 05, 2006 4:39 pm
by iloveny
yes, the file is hello.php

I have followed the instruction on http://www.php.net/manual/en/install.wi ... pache2.php on how to install Apache.

Posted: Thu Oct 05, 2006 4:47 pm
by volka
try

Code: Select all

<?php phpinfo(); ?>
You're invoking the php script via http://localhost/... ?

Posted: Thu Oct 05, 2006 4:58 pm
by iloveny
It shows blank screen too.

When I use view source, it shows:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>

which what my code is.

I am invoking hello.php by just clicking on the file to open it with web browser