Hi misc,

#uname -a

OpenBSD agent47.bsd.org 4.5 GENERIC.MP#45 i386

# pkg_add -v php5-core
# pkg_add -v mysql-server-5.0.77
# pkg_add -v php5-mysqli-5.2.8

in /var/www/conf/httpd.conf :  *Include /var/www/conf/modules/*.conf*

in /var/www/conf/modules/php5.conf -> /var/www/conf/modules.sample/php5.conf
:
*LoadModule php5_module /usr/local/lib/php/libphp5.so*
*AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php*

in /var/www/conf/php5 :  mysqli.ini -> /var/www/conf/php5.sample/mysqli.ini
also default php.ini in /var/www/conf exists.


# cd /var/www/conf
# vi index.php

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

# apachectl stop
# tail -f /var/www/logs &
# apachectl start
#
  3  <body>
  4         Hello PHP!
  5  </body>
  6 </html>

# apachectl stop
# tail -f /var/www/logs &
# apachectl start
# [Tue Jun 16 07:42:38 2009] [notice] Initializing etag from
/var/www/logs/etag-state
[Tue Jun 16 07:42:38 2009] [notice] chrooted in /var/www
[Tue Jun 16 07:42:38 2009] [notice] changed to uid 67, gid 67
[Tue Jun 16 07:42:38 2009] [notice] Apache configured -- resuming normal
operations
[Tue Jun 16 07:42:38 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)

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)

I also tried to LoadModule directly into httpd.conf without using any
Include file but no luck, also started apache in a non-chrooted environment
will not help.
File permission are also ok in htdocs: -r--r--r-- root bin index.php
Any Idea?

Reply via email to