A good start would be to move away from a completely developer environment
like you're using. I'd suggest either working with PHP5 or Apache2-dev,
but not both at the same time. That should help you narrow things down a
bit more. In reality, I'd narrow to Apache1 as well if you're trying to
debug some bit of code in PHP.
On Wed, 16 Jun 2004, OpenMacNews wrote:
> hi all,
>
> i'd posted this on the phpgacl list, and a kind soul there suggested to try
> here ...
>
> i'm looking for any/help help in starting to debug this.
>
> thx,
>
> richard
>
>>> Segfault, so I'm assuming its a PHP5 issue. I haven't actually tested
>>> phpGACL on PHP5 yet, but in theory it should work, as PHP5 is backwards
>>> compatible.
>>>
>>> I would try submitting this to the PHP5 lists, see if they can help
>>> debug it.
>
>> hi,
>>
>> i'm trying to setup phpgacl-3.3.1 with *existing* instances of Smarty (cvs
>> head) & ADODB422 on
>> MacOSX 10.3.4.
>> Apache/2.1.0-dev (cvs head)
>> Perl v5.8.4
>> postgreSQL v7.4.2
>> php 5.0.0RC3 + Turck-mmcache (cvs head)
>>
>> everything works great pre-phpgacl ...
>>
>> i've made changes to phpgacl files, per "Advanced Setup", to ADODB_DIR,
>> smarty_dir, etc.
>>
>> upon pgpgacl setup
>> <http://testdomain.internal.com/admin/phpgacl/setup.php>, i get:
>>
>> Configuration:
>> driver = postgres7,
>> host = testdomain.internal.com,
>> user = authuser,
>> database = auth_db,
>> table prefix = gacl_
>>
>> Testing database connection...
>> Success! Connected to "postgres7" database on
>> "testdomain.internal.com".
>>
>>
>> Testing database type...
>> Success! Compatible database type "postgres7" detected!
>> Making sure database "auth_db" exists...
>> Success! Good, database "auth_db" already exists!
>> Success! Installation Successful!!!
>>
>> *IMPORTANT*
>> Please make sure you create the <phpGACL root>/admin/templates_c
>> directory, and give it write permissions for the user your web server runs
>> as.
>>
>> Please read the manual, and example.php to familiarize yourself with
>> phpGACL.
>>
>> Let's get started!
>>
>> after ensuring write permission are all ok, when i subsequently click on
>> the "Let's get started" link -->
>> <http://testdomain.internal.com/admin/phpgacl/admin/about.php?first_run=1>
>>
>> I get a browser error of:
>>
>> Safari can't open the page
>> "http://testdomain.internal.com/admin/phpgacl/admin/about.php"
>> because it could not load data from this location.
>>
>> checking apache's error log, i find that one of my server thread dies
>> with:
>>
>> [Wed Jun 16 11:55:26 2004] [notice] child pid 2663 exit signal
>> Segmentation fault (11)
>>
>> not really informative for me ... any suggestion/help as to where to BEGIN
>> to start debugging this? yes, i know, i've a lot of "variables" in my sety
>> :S
>>
>> thanks,
>>
>> richard
>>
>> fwiw, apache/server-info shows:
>>
>> Server Version: Apache/2.1.0-dev (Unix) mod_perl/1.99_15-dev
>> Perl/v5.8.4 DAV/2 PHP/5.0.0RC3 mod_auth_pgsql/2.0.2b1
>> Server Built: Jun 9 2004 18:37:10
>> API Version: 20040425:1
>> Hostname/port: testdomain.internal.com:80
>> Timeouts: connection: 300 keep-alive: 300
>> MPM Name: Worker
>> MPM Information: Max Daemons: 1 Threaded: yes Forked: yes
>> and php -i shows:
>>
>> PHP Version => 5.0.0RC3
>>
>> System => Darwin testdomain.internal.com 7.4.0 Darwin Kernel Version
>> 7.4.0: Wed May 12 16:58:24 PDT 2004;
>> root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC Power Macintosh
>> Build Date => Jun 10 2004 00:44:23
>> Configure Command => './configure' '--disable-debug' '--prefix=/usr'
>> '--with-layout=PHP' '--with-config-file-path=/etc/php5'
>> '--sysconfdir=/etc/php5' '--enable-shared' '--disable-static'
>> '--libdir=/System/Library/PHP' '--includedir=/usr/include'
>> '--mandir=/usr/local/man' '--localstatedir=/var/php4' '--with-db4=/usr'
>> '--with-pgsql=/usr/local/pgsql' '--without-mysql' '--enable-cli'
>> '--with-pear=/System/Library/PHP' '--disable-cgi'
>> '--with-apxs2=/usr/sbin/apxs' '--disable-dmalloc'
>> '--with-tsrm-pthreads' '--enable-shmop' '--enable-sockets'
>> '--enable-inline-optimization' '--enable-xml' '--enable-libxml'
>> '--with-libxml-dir=/usr' '--with-java=/Library/Java/Home'
>> '--with-openssl=/usr/local/ssl' '--with-openssl-dir=/usr/local/ssl'
>> '--with-zlib' '--with-zlib-dir=/usr' '--with-imap=/usr/local/imap'
>> '--enable-mailparse' '--with-imap-ssl=/usr/local/ssl' '--with-mcrypt'
>> '--with-mhash' '--with-gmp=/usr/local' '--with-curl=/usr'
>> '--with-gd=/usr/local/gd' '--with-png-dir=/usr/local'
>> '--with-jpeg-dir=/usr/local' '--with-tiff-dir=/usr/local'
>> '--enable-magic-quotes' '--enable-calendar' '--with-kerberos=/usr'
>> '--with-freetype-dir=/usr/X11R6' '--with-xpm-dir=/usr/X11R6'
>> '--enable-exif' '--enable-mbstring' '--enable-ftp' '--enable-bcmath'
>> Server API => Command Line Interface
>> Virtual Directory Support => enabled
>> Configuration File (php.ini) Path => /etc/php5/php.ini
>> PHP API => 20031224
>> PHP Extension => 20040412
>> Zend Extension => 220040412
>> Debug Build => no
>> Thread Safety => enabled
>> IPv6 Support => enabled
>> Registered PHP Streams => php, file, http, ftp, compress.zlib, https,
>> ftps
>> Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls
>> This program makes use of the Zend Scripting Language Engine:
>> Zend Engine v2.0.0RC3, Copyright (c) 1998-2004 Zend Technologies
>> with Turck MMCache v2.4.7-CVS, Copyright (c) 2002-2003
>> TurckSoft, St. Petersburg, by Dmitry Stogov
>>
>
>
>---------------------------------------------------------------<
Dan Kalowsky "I thought you died alone,
http://www.deadmime.org/~dank a long long time ago."
dank-nom@aps-deadmime.org - "The Man Who Sold the World"
kalowsky@php.net David Bowie