No, my httpd.conf file configured with AddType and LoadModule for php correctly, and I don't get source code in browser, I just get a blank page and a segmentation fault in error_log.
I tried to browse index.php with lynx instead of firefox, lynx returned following error: Looking up 127.0.0.1 Making HTTP connection to 127.0.0.1 Sending HTTP request. HTTP request sent; waiting for response. Alert!: Unexpected network read error; connection aborted. Can't Access `http://127.0.0.1/index.php' Alert!: Unable to access document. lynx: Can't access startfile but lynx shows http://127.0.0.1/index.html without any error. On 6/16/09, Richard Toohey <richardtoo...@paradise.net.nz> wrote: > And not this? > > http://marc.info/?l=openbsd-misc&m=123972169917551&w=3 > http://marc.info/?l=openbsd-misc&m=123972131216791&w=3 > > (Not replying to the list to cut down the noise.) > > On 16/06/2009, at 9:37 PM, MANI wrote: > >> 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.