On 16/06/2009, at 7:08 PM, Richard Toohey wrote:

On 16/06/2009, at 3:22 PM, MANI wrote:
# cd /var/www/conf
# vi index.php

  1<html>
  2  <head>PHP Test Page!</head>
  3  <body>
  4         Hello PHP!
  5  </body>
  6 </html>

[cut]
browsing to http://127.0.0.1/index.html shows *It Worked!* default page.

browsing to http://127.0.0.1/index.php will shows a blank page, when I view
source in firefox there in no html in source with following log:

[Tue Jun 16 07:45:41 2009] [notice] child pid 12856 exit signal Segmentation
fault (11)
[cut]

Just a few (probably dumb) questions ...

[1] the index.php is really in /var/www/conf?
[2] you meant the index.php not to be valid PHP? No <?php [code] ? > on purpose?
[3] the segfault is what the issue is?  Or the blank page?

Thanks.
Hmm, number 3 was a dumb question, but I was thinking
down the lines of number 1 and number 2 - what are you
actually trying to do?

Having the html page go through the PHP engine does this
on stock i386 4.5 (so no segfault or blank page):

 PHP Test Page! Hello PHP!

[4] What happens if you try

php index.php

(i.e. from the command line.  Can you get anything to do with
PHP working - outside Apache first)

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

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

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

Hopefully a few clues from that.

Reply via email to