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

Re: php install



On 1/3/2013 9:31 PM, Go Linux wrote:
--- On Thu, 1/3/13, Bob Proulx <bob@proulx.com> wrote:

From: Bob Proulx <bob@proulx.com>
Subject: Re: php install
To: debian-user@lists.debian.org
Date: Thursday, January 3, 2013, 8:22 PM
Samuel Morgan wrote:
Please tell why php5 does not work under apache2 (with
engine on)
using this index file:
...
<?php
echo "Hello";


Missing the closing container marker. Put a "?>" in there
and it
should work.  Try this file:

   <?php phpinfo(); ?>

Bob


Is that in a .php file or embedded in .html?  IIRC serving php in html requires toggling an option in the config file and my sites at least require an .htaccess handler to get it to work. I can post that when I get back on another computer if you like.



I should also add - if the php interpreter were not working, he would have seen the source code in his browser.


Reply to: