php-install Digest 3 Apr 2003 14:45:38 -0000 Issue 1319

Topics (messages 10476 through 10478):

Re: The Document contains no data
        10476 by: Michael Mauch
        10478 by: Sander Sokk

Re: php and Apache won't play nice
        10477 by: Michael Mauch

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Sander Sokk <[EMAIL PROTECTED]> wrote:

> $php phpinfo.php > index.html
> 
> File phpinfo consists following
> 
> <? phpinfo();?>
> 
> Normally should this produce me html file (phpinfo function output), but
> i get answers without html tags like this:

This is ok. Since PHP 4.3.0 the command line (CLI) version of PHP does
not produce HTML tags in phpinfo() anymore.

> and my second problem was that if I wanted to view any php files from 
> http i ended with following "The Document contains no data" and in 
> apache error log was segfaults:

> [Tue Apr  1 12:40:47 2003] [notice] child pid 28537 exit signal 
> Segmentation fault (11)

That's a problem, of course. You are using a lot of extensions - you
could try with the minimal set, i.e. only

./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/php

Then see if it works and add the other options and extensions afterwards.

> Sources/php4# ./configure --enable-track-vars --enable-filepro 
> --enable-ftp --enable-sockets --enable-bcmath --enable-yp --enable-ctype 
> --enable-wwdx --with-gettext --enable-exif --with-ndbm --with-iconv \

Typo (probably unrelated): --enable-wddx

> --enable-mbstring --with-zlib --with-pcre-regex=/usr --prefix=/usr/php 
> --with-pgsql=shared,/usr/local/pgsql/ --with-curl=shared,/usr/curl
> --with-xml --with-expat-dir=/usr --with-dom=shared,/usr/libxml 
> --with-zlib-dir=/usr --with-mysql=no --with-apxs=/usr/local/apache/bin/apxs

I don't know whether "--with-mysql=no" should work, normally it's
"--without-mysql".

Regards...
                Michael

--- End Message ---
--- Begin Message --- Michael Mauch wrote:
Sander Sokk <[EMAIL PROTECTED]> wrote:


$php phpinfo.php > index.html

File phpinfo consists following

<? phpinfo();?>

Normally should this produce me html file (phpinfo function output), but
i get answers without html tags like this:


This is ok. Since PHP 4.3.0 the command line (CLI) version of PHP does
not produce HTML tags in phpinfo() anymore.


and my second problem was that if I wanted to view any php files from http i ended with following "The Document contains no data" and in apache error log was segfaults:


[Tue Apr 1 12:40:47 2003] [notice] child pid 28537 exit signal Segmentation fault (11)


That's a problem, of course. You are using a lot of extensions - you
could try with the minimal set, i.e. only

./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/php

Then see if it works and add the other options and extensions afterwards.


Sources/php4# ./configure --enable-track-vars --enable-filepro --enable-ftp --enable-sockets --enable-bcmath --enable-yp --enable-ctype --enable-wwdx --with-gettext --enable-exif --with-ndbm --with-iconv \


Typo (probably unrelated): --enable-wddx


--enable-mbstring --with-zlib --with-pcre-regex=/usr --prefix=/usr/php --with-pgsql=shared,/usr/local/pgsql/ --with-curl=shared,/usr/curl
--with-xml --with-expat-dir=/usr --with-dom=shared,/usr/libxml --with-zlib-dir=/usr --with-mysql=no --with-apxs=/usr/local/apache/bin/apxs


I don't know whether "--with-mysql=no" should work, normally it's
"--without-mysql".

Regards...
                Michael

Hello


Configured with

./configure --with-apxs=/usr/local/apache/bin/apxs

Same results.

Ok I tried backtrace, but this does'nt tell me much, so here is output


gdb /usr/local/apache/bin/httpd 17864
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...(no debugging symbols found)...
Attaching to program: /usr/local/apache/bin/httpd, process 17864
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libdb.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdb.so.2
Reading symbols from /usr/lib/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/apache/libexec/mod_env.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_env.so
Reading symbols from /usr/local/apache/libexec/mod_log_config.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_log_config.so
Reading symbols from /usr/local/apache/libexec/mod_mime_magic.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_mime_magic.so
Reading symbols from /usr/local/apache/libexec/mod_mime.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_mime.so
Reading symbols from /usr/local/apache/libexec/mod_negotiation.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_negotiation.so
Reading symbols from /usr/local/apache/libexec/mod_status.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_status.so
Reading symbols from /usr/local/apache/libexec/mod_info.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_info.so
Reading symbols from /usr/local/apache/libexec/mod_include.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_include.so
Reading symbols from /usr/local/apache/libexec/mod_autoindex.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_autoindex.so
Reading symbols from /usr/local/apache/libexec/mod_dir.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_dir.so
Reading symbols from /usr/local/apache/libexec/mod_cgi.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_cgi.so
Reading symbols from /usr/local/apache/libexec/mod_asis.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_asis.so
Reading symbols from /usr/local/apache/libexec/mod_imap.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_imap.so
Reading symbols from /usr/local/apache/libexec/mod_actions.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_actions.so
Reading symbols from /usr/local/apache/libexec/mod_userdir.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_userdir.so
Reading symbols from /usr/local/apache/libexec/mod_alias.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_alias.so
Reading symbols from /usr/local/apache/libexec/mod_rewrite.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_rewrite.so
Reading symbols from /usr/local/apache/libexec/mod_access.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_access.so
Reading symbols from /usr/local/apache/libexec/mod_auth.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_auth.so
Reading symbols from /usr/local/apache/libexec/mod_expires.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_expires.so
Reading symbols from /usr/local/apache/libexec/mod_unique_id.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_unique_id.so
Reading symbols from /usr/local/apache/libexec/mod_setenvif.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_setenvif.so
Reading symbols from /usr/local/apache/libexec/libssl.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/libssl.so
Reading symbols from /usr/local/apache/libexec/mod_auth_pg.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/apache/libexec/mod_auth_pg.so
Reading symbols from /usr/local/pgsql/lib/libpq.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/pgsql/lib/libpq.so.3
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/local/apache/libexec/libphp4.so...done.
Loaded symbols for /usr/local/apache/libexec/libphp4.so
Reading symbols from /usr/lib/libpcre.so.3...done.
Loaded symbols for /usr/lib/libpcre.so.3
Reading symbols from /usr/local/lib/php/extensions/debug-non-zts-20020429/pgsql.so...done.
Loaded symbols for /usr/local/lib/php/extensions/debug-non-zts-20020429/pgsql.so
0x4016715f in semop () from /lib/libc.so.6


(gdb) bt
#0  0x4016715f in semop () from /lib/libc.so.6
#1  0x0805dfec in accept_mutex_on_sysvsem ()
#2  0x08061179 in child_main ()
#3  0x0806182a in make_child ()
#4  0x08061bb8 in perform_idle_server_maintenance ()
#5  0x0806218c in standalone_main ()
#6  0x080627fc in main ()
#7  0x400af14f in __libc_start_main () from /lib/libc.so.6
(gdb)

I tried also like in bug report says, but unfortunately that did'nt work for me as:
gdb /usr/local/apache/bin/httpd
run -X


I got "no debugging symbols" found couple times and then
progam exited with code 01 or smth

ANY IDEA


--- End Message ---
--- Begin Message ---
Jim Kelly <[EMAIL PROTECTED]> wrote:

> AddModule mod_php4.c
> 
> When I do apachectl configtest I get:
> Syntax error on line 233 of /usr/local/apache/conf/httpd.conf:
> Cannot add module via name 'mod_php4.c': not in list of loaded modules

Probably you don't have a line like this:

LoadModule php4_module        lib/apache/libphp4.so

before your "AddModule mod_php4.c".

Regards...
                Michael

--- End Message ---

Reply via email to