Can't execute PHP script

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

 



Hey,

[Note:] This is a different problem from the one I posted earlier today. 

I can't get my LAMP server setup to run PHP script.

As returned by apache2ctl, I am running;

Apache/2.2.4 (Debian) PHP/5.2.3-1+b1

I point my browser to;

http://localhost/apache2-default/test.php

The file test.php contains this code;

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

The browser outputs only;

PHP Test

But the script doesn't get executed. I posted this problem on debian-users, 
[because I installed apache2/php5 via debian packages], without any results. 
Thought I would try here before finding an apache list. Although I have 
programed in PHP off and on for a while I am a newbie to the setup side of 
things. Hopefully someone could point me in the right direction to trouble 
shoot this. 

Thanks,
Randy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux