First of all thanks for the clues.

On 6/16/09, Richard Toohey <richardtoo...@paradise.net.nz> wrote:
> On 16/06/2009, at 7:08 PM, Richard Toohey wrote:
>
>> [1] the index.php is really in /var/www/conf?

   No, it was another typo in mail, It's in /var/www/htdocs.

>> [2] you meant the index.php not to be valid PHP?  No <?php [code] ?
>> > on purpose?

   Actually at first it was pure php but I changed it for testing purposes, Now:

$ cat /var/www/htdocs/index.php

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
 <title>Agent47 Test Page for Apache Installation</title>
</head>
  <body bgcolor="#ffffff">      
        <?php echo("Hello PHP!") ?>
  </body>
</html>

> [4] What happens if you try
>
> php index.php

$php /var/www/htdocs/index.php

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
 <title>Agent47 Test Page for Apache Installation</title>
</head>
  <body bgcolor="#ffffff">
Hello PHP!  </body>
</html>


> [5] What happens if you disable the mysql extension - just get php
> core working first?

I removed mysql extension but no luck ... :(

> [6] Anything from php -v or php -m that gives any clues?

$ php -v

PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Mar  1 2009 15:20:21)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH

$ php -m
[PHP Modules]
bcmath
calendar
ctype
date
dom
exif
filter
ftp
gettext
hash
iconv
json
libxml
mysqli
openssl
pcre
PDO
posix
Reflection
session
SimpleXML
sockets
SPL
standard
suhosin
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
Suhosin

> [7] Did you really mean to install php5-mysql and mysql-SERVER?
> You might have meant mysql-CLIENT - makes more sense.

No, I also needed mysql-server.

Reply via email to