[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.



Incorrect. It does require an option in the httpd.conf file, but the Debian install takes care of that. Nothing else is required to imbed the file.

His problem is the incorrect terminator, as Bob indicated.

And Samuel, check out the PHP manual for error message directives, specifically error_reporting and display_errors. They should be enabled on your development system (but not a production system).

Jerry


Reply to: