Fatal error: Call to a member function type() on a non-object after installation on first page

PHP is segfaulting before creating the required configuration files. Our job is to work out why.

OK I installed matrix again on a new VM server and got this error on step_03.php

    +------------------------------------------------------------------------------------------------------+
    | MySource Warning																					 |
    |------------------------------------------------------------------------------------------------------|
    | Unable to create another "Root Folder", it is a System Asset and you are only allowed one [CORE0085] |
    +------------------------------------------------------------------------------------------------------+
    +------------------------------------------------------+
    | MySource Error									   |
    |------------------------------------------------------|
    | Root Folder NOT CREATED [CORE0001]				   |
    +------------------------------------------------------+

Means that your installation failed earlier and wasn't reset. If you're not getting any segmentation faults on this VM, clear the filesystem and database and start again. :)

I'm still getting the segmentation fault, but there's no trace why that message is coming up, we're goin to re-install PHP from source and not from apt-get install php5, and see how it goes.

Anyway, I'm still trying to make it work regardless of the segfault and i'm getting this message.

    MySource Warning
    System asset name "public_user" not installed or not known [SYS0209]
PHP Notice
Trying to get property of non-object</pre>

[quote]

    MySource Warning
System asset name “public_user” not installed or not known [SYS0209]
PHP Notice
Trying to get property of non-object</pre>[/quote]<br />

This means the system was not installed properly. You need to delete the file system and DB before starting again. If you get any errors or segfaults during the install, the system is not going to work at all.



I'm still getting segfaults everytime I install matrix, I've recompiled PHP5 from source using the following:

    './configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-mysql=shared,/usr' '--with-xsl=shared,/usr' '--enable-soap' '--with-curl=shared,/usr' '--with-pgsql' '--enable-wddx' '--with-gd=shared,/usr' '--enable-gd-native-ttf' '--with-jpeg-dir=shared,/usr' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-imap=shared,/usr' '--with-imap-ssl' '--with-ttf=shared,/usr' '--with-t1lib=shared,/usr' '--with-zlib' '--with-kerberos' '--enable-bcmath' '--enable-inline-optimization' '--enable-mbstring' '--enable-memory-limit' '--enable-shmop' '--enable-sockets' '--with-ldap' '--with-openssl' '--with-pear' '--enable-pdo=shared' '--with-pdo-sqlite=shared' '--with-sqlite=shared' '--with-expat-dir=/usr/share/doc-base/expat' '--with-sqlite=shared' '--with-pdo-mysql=shared,/usr' '--with-pdo-pgsql=shared,/usr'


and here's the php test after compiling, might help.

    =====================================================================
    FAILED TEST SUMMARY
    ---------------------------------------------------------------------
    Test for buffering in core functions with implicit flush off [tests/func/008.phpt]
    Bug #37514 (strtotime doesn't assume year correctly). [ext/date/tests/bug37514.phpt]
    date OO cloning [ext/date/tests/oo_002.phpt]
    Bug #16069 [ext/iconv/tests/bug16069.phpt]
    iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
    HTML input/output [ext/mbstring/tests/htmlent.phpt]
    mb_output_handler() (Shift_JIS) [ext/mbstring/tests/mb_output_handler_shift_jis.phpt]
    =====================================================================
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped	:   51
Exts tested	 :   29
---------------------------------------------------------------------

Number of tests : 2692			  1977
Tests skipped   :  715 ( 26.6%) --------
Tests warned	:	0 (  0.0%) (  0.0%)
Tests failed	:	7 (  0.3%) (  0.4%)
Tests passed	: 1970 ( 73.2%) ( 99.6%)
---------------------------------------------------------------------
Time taken	  :  105 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test for buffering in core functions with implicit flush off [tests/func/008.phpt]
Bug #37514 (strtotime doesn't assume year correctly). [ext/date/tests/bug37514.phpt]
date OO cloning [ext/date/tests/oo_002.phpt]
Bug #16069 [ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
HTML input/output [ext/mbstring/tests/htmlent.phpt]
mb_output_handler() (Shift_JIS) [ext/mbstring/tests/mb_output_handler_shift_jis.phpt]
=====================================================================


================================================================================
/usr/local/src/php-5.2.0/tests/func/008.phpt
================================================================================

================================================================================
001- 'foo1'
003- 'foo2'
================================================================================



================================================================================
/usr/local/src/php-5.2.0/ext/date/tests/bug37514.phpt
================================================================================
Sun, 18 May 2008 05:05:00 +0000
Sun, 18 May 2008 17:05:00 +0000
Sun, 18 May 2008 17:05:00 +0000
Sun, 18 May 2008 05:05:00 +0000
Sun, 18 May 2008 05:05:00 +0000
Thu, 18 May 2006 17:05:00 +0000
================================================================================
001+ Sun, 18 May 2008 05:05:00 +0000
002+ Sun, 18 May 2008 17:05:00 +0000
003+ Sun, 18 May 2008 17:05:00 +0000
004+ Sun, 18 May 2008 05:05:00 +0000
005+ Sun, 18 May 2008 05:05:00 +0000
001- Thu, 18 May 2006 05:05:00 +0000
003- Thu, 18 May 2006 17:05:00 +0000
004- Thu, 18 May 2006 05:05:00 +0000
005- Thu, 18 May 2006 05:05:00 +0000
006- Thu, 18 May 2006 17:05:00 +0000
================================================================================



================================================================================
/usr/local/src/php-5.2.0/ext/date/tests/oo_002.phpt
================================================================================
string(29) "Fri, 01 Aug 08 13:00:00 +0000"
string(29) "Fri, 01 Aug 08 13:00:00 +0000"
string(29) "Fri, 01 Aug 08 14:00:00 +0000"
string(29) "Fri, 01 Aug 08 12:59:59 +0000"
string(10) "Asia/Tokyo"
string(10) "Asia/Tokyo"
================================================================================
001+ string(29) "Fri, 01 Aug 08 13:00:00 +0000"
002+ string(29) "Fri, 01 Aug 08 13:00:00 +0000"
003+ string(29) "Fri, 01 Aug 08 14:00:00 +0000"
004+ string(29) "Fri, 01 Aug 08 12:59:59 +0000"
001- string(29) "Tue, 01 Aug 06 13:00:00 +0000"
002- string(29) "Tue, 01 Aug 06 13:00:00 +0000"
003- string(29) "Tue, 01 Aug 06 14:00:00 +0000"
004- string(29) "Tue, 01 Aug 06 12:59:59 +0000"
================================================================================



================================================================================
/usr/local/src/php-5.2.0/ext/iconv/tests/bug16069.phpt
================================================================================
????????????????????????????????????????(¡ë§¥¡ë)
================================================================================
001+ ????????????????????????????????????????(¡ë§¥¡ë)
001- ¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë
¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥
ߥê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß
¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë(¡ë§¥¡ë)
================================================================================



================================================================================
/usr/local/src/php-5.2.0/ext/iconv/tests/iconv_stream_filter.phpt
================================================================================
string(20) "1b244224332473244b24"
string(10) "41244f1b28"
string(2) "42"
string(20) "a4b3a4f3a4cba4c1a4cf"
string(10) "69636f6e76"
string(2) "0a"
string(20) "1b244f24332466245824"
string(10) "4e24421b28"
string(2) "4f"
================================================================================
007+ string(20) "1b244f24332466245824"
008+ string(10) "4e24421b28"
009+ string(2) "4f"
007- 
008- Warning: fread(): iconv stream filter ("ISO-2022-JP"=>"EUC-JP"): invalid multibyte sequence in %s on line %d
009- string(0) ""
010- string(0) ""
011- string(0) ""
================================================================================



================================================================================
/usr/local/src/php-5.2.0/ext/mbstring/tests/htmlent.phpt
================================================================================

================================================================================
001+ 
001- HTML-ENTITIES>UTF-8>HTML-ENTITIES
002- Array
003- (
004-	 [test] => &@AB€‚&auml;&ouml;&uuml;&euro;&lang;&rang;
005- )
006- ===DONE===
================================================================================



================================================================================
/usr/local/src/php-5.2.0/ext/mbstring/tests/mb_output_handler_shift_jis.phpt
================================================================================

================================================================================
001+ 
001- string(73) "¥Æ¥¹¥ÈÍÑÆüËܸìʸ»úÎ󡣤³¤Î¥â¥¸¥å¡¼¥ë¤ÏPHP¤Ë¥Þ¥ë¥Á¥Ð¥¤¥È´Ø¿ô¤òÄ󶡤·¤Þ¤¹¡£"
================================================================================




================================================================================
BUILD ENVIRONMENT
================================================================================
OS:
Linux - Linux matrix 2.6.18.xs4.1.0.1168.6013 #2 SMP Fri Mar 21 19:28:22 UTC 2008 i686

Autoconf:
autoconf (GNU Autoconf) 2.61
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

Bundled Libtool:
ltmain.sh (GNU libtool) 1.5.20 (1.1220.2.287 2005/08/31 18:54:15)

Copyright (C) 2005  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

System Libtool:
ltmain.sh (GNU libtool) 1.5.22 Debian 1.5.22-4 (1.1220.2.365 2005/12/18 22:14:06)

Copyright (C) 2005  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiler:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

Bison:

Libraries:
	linux-gate.so.1 =>  (0x40017000)
	libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0x40022000)
	libpq.so.4 => /usr/lib/libpq.so.4 (0x40050000)
	libldap_r.so.2 => /usr/lib/libldap_r.so.2 (0x4006e000)
	liblber.so.2 => /usr/lib/liblber.so.2 (0x400a3000)
	libz.so.1 => /usr/lib/libz.so.1 (0x400af000)
	libresolv.so.2 => /lib/tls/libresolv.so.2 (0x400c3000)
	libm.so.6 => /lib/tls/libm.so.6 (0x400d6000)
	libdl.so.2 => /lib/tls/libdl.so.2 (0x400fb000)
	libnsl.so.1 => /lib/tls/libnsl.so.1 (0x40100000)
	libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x40116000)
	libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x40132000)
	libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x401ae000)
	libcom_err.so.2 => /lib/libcom_err.so.2 (0x401d3000)
	libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0x401d6000)
	libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0x40216000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x40350000)
	libc.so.6 => /lib/tls/libc.so.6 (0x4046a000)
	libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4059c000)
	libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x405ae000)
	libgnutls.so.13 => /usr/lib/libgnutls.so.13 (0x405c4000)
	/lib/ld-linux.so.2 (0x40000000)
	libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x40633000)
	libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x40638000)
	libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x4064b000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x4069c000)



================================================================================
PHPINFO
================================================================================
phpinfo()
PHP Version => 5.2.0

System => Linux matrix 2.6.18.xs4.1.0.1168.6013 #2 SMP Fri Mar 21 19:28:22 UTC 2008 i686
Build Date => Jun 11 2008 01:24:15
Configure Command =>  './configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-mysql=shared,/usr' '--with-xsl=shared,/usr' '--enable-soap' '--with-curl=shared,/usr' '--with-pgsql' '--enable-wddx' '--with-gd=shared,/usr' '--enable-gd-native-ttf' '--with-jpeg-dir=shared,/usr' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-imap=shared,/usr' '--with-imap-ssl' '--with-ttf=shared,/usr' '--with-t1lib=shared,/usr' '--with-zlib' '--with-kerberos' '--enable-bcmath' '--enable-inline-optimization' '--enable-mbstring' '--enable-memory-limit' '--enable-shmop' '--enable-sockets' '--with-ldap' '--with-openssl' '--with-pear' '--enable-pdo=shared' '--with-pdo-sqlite=shared' '--with-sqlite=shared' '--with-expat-dir=/usr/share/doc-base/expat' '--with-sqlite=shared' '--with-pdo-mysql=shared,/usr' '--with-pdo-pgsql=shared,/usr'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/lib
PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, data, http, ftp, compress.zlib, https, ftps  
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies


 _______________________________________________________________________


Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => On => On
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => no value => no value
expose_php => On => On
extension_dir => /usr/local//lib/php/extensions/no-debug-non-zts-20060613 => /usr/local//lib/php/extensions/no-debug-non-zts-20060613
file_uploads => On => On
highlight.bg => <font style="color: #FFFFFF">#FFFFFF</font> => <font style="color: #FFFFFF">#FFFFFF</font>
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/local//lib/php => .:/usr/local//lib/php
log_errors => Off => Off
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 0
max_input_time => -1 => -1
memory_limit => 16M => 16M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
safe_mode => Off => Off
safe_mode_exec_dir => /usr/local/php/bin => /usr/local/php/bin
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i 
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On
zend.ze1_compatibility_mode => Off => Off

bcmath

BCMath support => enabled

ctype

ctype functions => enabled

date

date/time support => enabled
Timezone Database Version => 2006.14
Timezone Database => internal
Default timezone => UTC

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => no value => no value

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.6.27
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

filter

Input Validation and Filtering => enabled
Revision => $Revision: 1.52.2.25 $

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

hash

hash support => enabled
Hashing Engines => md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

iconv

iconv support => enabled
iconv implementation => glibc
iconv library version => 2.3.6

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

json

json support => enabled
json version => 1.2.1

ldap

LDAP Support => enabled
RCS Version => $Id: ldap.c,v 1.161.2.3.2.1 2006/06/15 18:33:07 dmitry Exp $
Total Links => 0/unlimited
API Version => 2004
Vendor Name => OpenLDAP
Vendor Version => 20130

libxml

libXML support => active
libXML Version => 2.6.27
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) version => 4.4.4
Multibyte regex (oniguruma) backtrack check => On

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.internal_encoding => ISO-8859-1 => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

openssl

OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.8c 05 Sep 2006

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 6.7 04-Jul-2006

pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.1.11
Multibyte character support => enabled
SSL support => enabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited

posix

Revision => $Revision: 1.70.2.3.2.6 $

Reflection

Reflection => enabled
Version => $Id: php_reflection.c,v 1.164.2.33.2.31 2006/10/18 16:35:15 johannes Exp $

session

Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php php_binary wddx 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0

shmop

shmop support => enabled

SimpleXML

Simplexml support => enabled
Revision => $Revision: 1.151.2.22.2.15 $
Schema support => enabled

soap

Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

sockets

Sockets Support => enabled

SPL

SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

standard

Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i 

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags => a=href,area=href,frame=src,form=,fieldset= => a=href,area=href,frame=src,form=,fieldset=
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.6.27

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

zlib

ZLib Support => enabled
Stream Wrapper support => compress.zlib://
Stream Filter support => zlib.inflate, zlib.deflate
Compiled Version => 1.2.3
Linked Version => 1.2.3

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
PHP_PREFIX => /usr
TEST_PHP_SRCDIR => /usr/local/src/php-5.2.0
SHELL => /bin/bash
TERM => xterm
MAKEFLAGS =>  
SSH_CLIENT => deleted
SSH_TTY => deleted
USER => root
SSH_AUTH_SOCK => deleted
MAKELEVEL => 1
MFLAGS =>  
PATH => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MAIL => /var/mail/root
_ => /usr/local/src/php-5.2.0/sapi/cli/php
PWD => /usr/local/src/php-5.2.0
TEST_PHP_EXECUTABLE => /usr/local/src/php-5.2.0/sapi/cli/php
HOME => /root
SHLVL => 3
LOGNAME => root
SSH_CONNECTION => deleted
CC => gcc

PHP Variables

Variable => Value
_SERVER["PHP_PREFIX"] => /usr
_SERVER["TEST_PHP_SRCDIR"] => /usr/local/src/php-5.2.0
_SERVER["SHELL"] => /bin/bash
_SERVER["TERM"] => xterm
_SERVER["MAKEFLAGS"] => 
_SERVER["SSH_CLIENT"] => deleted
_SERVER["SSH_TTY"] => deleted
_SERVER["USER"] => root
_SERVER["SSH_AUTH_SOCK"] => deleted
_SERVER["MAKELEVEL"] => 1
_SERVER["MFLAGS"] => 
_SERVER["PATH"] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_SERVER["MAIL"] => /var/mail/root
_SERVER["_"] => /usr/local/src/php-5.2.0/sapi/cli/php
_SERVER["PWD"] => /usr/local/src/php-5.2.0
_SERVER["TEST_PHP_EXECUTABLE"] => /usr/local/src/php-5.2.0/sapi/cli/php
_SERVER["HOME"] => /root
_SERVER["SHLVL"] => 3
_SERVER["LOGNAME"] => root
_SERVER["SSH_CONNECTION"] => deleted
_SERVER["CC"] => gcc
_SERVER["PHP_SELF"] => 
_SERVER["SCRIPT_NAME"] => 
_SERVER["SCRIPT_FILENAME"] => 
_SERVER["PATH_TRANSLATED"] => 
_SERVER["DOCUMENT_ROOT"] => 
_SERVER["REQUEST_TIME"] => 1213147703
_SERVER["argv"] => Array
(
)

_SERVER["argc"] => 0
_ENV["PHP_PREFIX"] => /usr
_ENV["TEST_PHP_SRCDIR"] => /usr/local/src/php-5.2.0
_ENV["SHELL"] => /bin/bash
_ENV["TERM"] => xterm
_ENV["MAKEFLAGS"] => 
_ENV["SSH_CLIENT"] => deleted
_ENV["SSH_TTY"] => deleted
_ENV["USER"] => root
_ENV["SSH_AUTH_SOCK"] => deleted
_ENV["MAKELEVEL"] => 1
_ENV["MFLAGS"] => 
_ENV["PATH"] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_ENV["MAIL"] => /var/mail/root
_ENV["_"] => /usr/local/src/php-5.2.0/sapi/cli/php
_ENV["PWD"] => /usr/local/src/php-5.2.0
_ENV["TEST_PHP_EXECUTABLE"] => /usr/local/src/php-5.2.0/sapi/cli/php
_ENV["HOME"] => /root
_ENV["SHLVL"] => 3
_ENV["LOGNAME"] => root
_ENV["SSH_CONNECTION"] => deleted
_ENV["CC"] => gcc

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.</pre>

I'm afraid I've reached the end of my Debian/PHP knowledge on this -- I've never seen PHP segfault on a Matrix installation. Usually I just use the packaged version of PHP with CentOS5/RHEL5. Hopefully someone else can assist further.

Are you able to run other PHP applications on that VM?

Ok, I removed and did a fresh install of PHP5, then checked and made sure that the PHP5 install is clean.
Also bear in mind that this is running on a Xen platform.



OK, I'm still getting this


    +-----------------------------------------------------------------------------------------------------------------------+
    | PHP Warning																										   |
    |-----------------------------------------------------------------------------------------------------------------------|
    | require_once([SYSTEM_ROOT]/data/private/conf/messaging_service.inc): failed to open stream: No such file or directory |
    +-----------------------------------------------------------------------------------------------------------------------+
    
    Fatal error: require_once(): Failed opening required '/var/www-virtual/matrix.nsp.co.nz/data/private/conf/messaging_service.inc' (include_path='.:/var/www-virtual/matrix.nsp.co.nz/php_includes:/usr/share/php:/usr/share/pear') in /var/www-virtual/matrix.nsp.co.nz/core/include/messaging_service.inc on line 18
    Segmentation fault

You should have got that config file during the install. Try running install/step_03.php again to see if it is created.


You're still getting a Segmentation Fault, which means the installation is crashing before it can create all the configuration files it needs. I'm going to try and load up a Xen-based Debian server and see if I can replicate this issue. Can you give me exact versions of the Dom0 operating system running Xen (with kernel version) as well as the DomU guest operating system version?


It's Xen Enterprise 4.1, not the open source Xen.
Hope that helps.

Hi has anyone by any chance look into this yet?


We installed a new box on a real hardware with the following info:


    PHP 5.2.5-3 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 21 2008 02:03:40)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    	with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator


    					   Apache Server Status for localhost
   Server Version: Apache/2.2.8 (Debian) PHP/5.2.5-3 with Suhosin-Patch
   Server Built: May 13 2008 20:48:45
	 __________________________________________________________________</pre><br />

And my postgres DB is on a seperate server: (Xen guest)
PostgreSQL 8.3.0 on
    Linux version 2.6.18-6-xen-686 (Debian 2.6.18.dfsg.1-18etch1) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sun Feb 10 22:43:13 UTC 2008


and i'm still getting segfaults after running step_02.php:
Jun 16 04:10:38 markg kernel: php[22683]: segfault at b71da930 eip b71da930 esp bfc0ad5c error 4

Linux version info of where my apache2/php5 is.

    Linux version 2.6.24-1-686 (Debian 2.6.24-7) (dannf@debian.org) (gcc version 4.1.3 20080114 (prerelease) (Debian 4.1.2-19)) #1 SMP Thu May 8 02:16:39 UTC 2008


    Using MySource Matrix 3.18.2
	* Filename: mysource_3-18-2.tar.gz
	* Size: 4619384 b</pre>

To all having the same issues:


I managed to run Matrix (http://YOUR_DOMAIN_OR_IP/_admin/?SQ_ACTION=login&) on my development box on a real hardware even having fatal-errors on my first run of step_02.php and step_03.php and then by running the same file twice , the error will be gone after running the same step_0x.php file the second time.



It seems to be running ok (/_admin/), as I succesfully logged in as root:root .


I'm getting php segfaults message and fatal errors during the install but seems that the system "worksforme". ;)
Anyway I don't know what the main cause is but I guess the important thing is it worked!
Now I just have to familiarise myself on the backend and howto use the system, to play&enable the /index.php/ of the site.

Keep in mind that there is no index.php visible in the URLs generated by Matrix. The final Apache alias line redirects all requests to the Matrix controller. To create the equivalent of a "default" home page, you setup a Site asset (that you assign a URL to on the URL screen) and then set an "Index" page on the Details screen of the Site asset.

Be sure to check out the Quick Start Guide for more info and a starting guide.