php-install Digest 6 Oct 2001 10:13:56 -0000 Issue 492
Topics (messages 4526 through 4529):
Upgrading debian stable
4526 by: Ariejan de Vroom
Re: Window 2000 and Apache 1.3.20
4527 by: Yasuo Ohgaki
[PHP] segmentation fault in apache with php and imap
4528 by: Steeman Philip
Apache module:undefined symbol: gdImagePngCtx
4529 by: Fred Phase
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 ---
I have a server running Debian/stable. This runs Apache 1.3.9, with PHP 4.03
I needed PHP 4.06, so I downloaded the source, untarred it, ./configure,
make, make install, just as the install doc tells us.
After that I swapped my old php.ini file in /etc/php4/php.ini with the
php.ini-dist file. Then I restarted apache.
phpinfo() still tells me it is version 4.03. What could be wrong? Is phpinfo
mistaking? Or am I still using 4.03?
-- Please cc: your reply to [EMAIL PROTECTED] thank you.
--- End Message ---
--- Begin Message ---
You need to post following info to get help from windows users.
- Changes made in httpd.conf. (If you have diff command, it would be
better to use diff)
- PHP version using
- How to get the PHP (bin from which web site, or did you build your own)
- Apache error log if there is
- PHP error log if there is
- What happens when you try to display "<?php phpinfo();?>"
Are you sure you are editing correct httpd.conf file?
Have it worked before?
--
Yasuo Ohgaki
Trevor Morrison wrote:
> HI,
>
> I have installed Apache-1.3.20 on my Window 2000 machine. It works
> fine. I have also installed PHP-4.0 on the same machine and thought
> that I followed the instructions to the letter, but I cannot get the "<?
> phpinfo(); ?> to display. Now, when I run the command:
> c:\>php.exe -i I get the long listing of html code in the window. So,
> php is running correctly. I have gone over the httpd.conf files many
> times and added the lines for the CGI version of PHP, but to no avail.
> Any help would be appreciated. Thank you.
>
> Trevor Morrison
> Technical Manager
> Avaya, Inc.
> 8740 Lucent Boulevard
> Highlands Ranch, CO 80130
> [EMAIL PROTECTED]
> (720) 444-5908
>
>
>
--- End Message ---
--- Begin Message ---
Hello,
I get a segmentation fault in the log-files of apache when I use
"imap_open".
What have I done (rather long e-mail)?
Debian - woody (without apache-php-imap)
imap-2001.FINAL.tar.Z
make slx
cd c-client
ln -s . lib
ln -s . include
ln -s c-client.a libc-client.a
apache-1.3.20
configure --prefix=/usr/local/apache \
--sysconfdir=/etc/apache \
--libexecdir=/usr/local/apache/1.3 \
--enable-shared=max \
--enable-module=all
make
make install
php-4.0.6
configure --with-imap=../imap/c-client \
--with-gettext \
--with--apxs=/usr/local/apache/bni/apxs \
--enable-trackvars \
--with-confif-file-path=/etc
make
make install
cp php.ini-dist /etc/php.ini
/usr/local/apache/bin/apachectl start
That's it
When I make a php-file with phpinfo(), everything looks fine.
With:
<?php
$mbox=imap_open("{mail.khbo.be:143}INBOX", "xxxx", "xxxx");
?>
I get a segmentation fault in the log-files of apache
When I start
gdb /usr/local/apache/bin/httpd
run -X
output:
GNU gdb 19990928
Copyright 1998 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 "i686-pc-linux-gnu"...
(no debugging symbols found)...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
(no debugging symbols found)...(no debugging symbols found)...
...
Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0 0x0 in ?? ()
#1 0x404fdd88 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#2 0x404fde40 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#3 0x404fc85e in _nss_db_endprotoent () from /lib/libnss_db.so.2
#4 0x404fcac8 in _nss_db_getprotobyname_r () from /lib/libnss_db.so.2
#5 0x401dae9f in getprotobyname_r () from /lib/libc.so.6
#6 0x401dad4d in getprotobyname () from /lib/libc.so.6
#7 0x403d874c in tcp_getbuffer (stream=0xbfffcf2c, size=3221210924,
s=0xbfffc728 "") at tcp_unix.c:527
#8 0x403d85c0 in tcp_getbuffer (stream=0xbfffd40c, size=0,
s=0x8f <Address 0x8f out of bounds>) at tcp_unix.c:502
#9 0x403d1ae3 in strcrlflen () at nl_unix.c:84
#10 0x403d0360 in mail_thread_parse_references (s=0xbfffd40c
"mail.khbo.be",
flag=0) at mail.c:4539
#11 0x403e89ef in imap_login (stream=0x8110c48, mb=0xd0,
pwd=0xbfffe7bc "|g??w\2053@H\f\021\b<\031\021\b",
usr=0x403c6ac8 "\213]\b\211C$\203DtS\213\225\\x??\213B8?P\203D
\205@u\016\2
#12 0x403c6add in mail_fetch_text (stream=0x8110c48, msgno=135338300,
section=0x0, len=0x40338266, flags=1078515324) at mail.c:1505
#13 0x403385f7 in php_if_imap_set_quota (ht=3, return_value=0x810c7c4,
this_ptr=0x0, return_value_used=1) at php_imap.c:1082
#14 0x403386ad in php_if_imap_set_quota (ht=3, return_value=0x810c7c4,
this_ptr=0x0, return_value_used=1) at php_imap.c:1092
#15 0x4030bbb9 in execute (op_array=0x810c6c4) at ./zend_execute.c:1716
#16 0x4031a3fe in _object_init_ex (arg=0x8, class_type=0x3) at
zend_API.c:204
#17 0x4032c084 in php_fopen_url_wrapper (
path=0xbffffab8 "\002(J@T`\020\b$H\020\b(G\020\b",
mode=0x810545c
"\020~\t\b<4\f\bty\020\bLZ\020\b\204y\020\bm[\020\b\234y\020
options=-1073743156, issock=0x403286d9, socketd=0x4048d67c,
opened_path=0x404a281c) at fopen_wrappers.c:472
#18 0x4032873f in php_if_apache_child_terminate (ht=135287100,
return_value=0x0, this_ptr=0xbffffb0c, return_value_used=1077055758)
at php_apache.c:131
#19 0x4032911e in php_if_getallheaders (ht=135287100, return_value=0x0,
this_ptr=0x0, return_value_used=1077055812) at php_apache.c:360
#20 0x4032915a in php_if_getallheaders (ht=135287100,
return_value=0x404241bf,
this_ptr=0x17, return_value_used=-1) at php_apache.c:354
#21 0x8054959 in ap_invoke_handler ()
#22 0x80692df in process_request_internal ()
#23 0x8069346 in ap_process_request ()
#24 0x8060256 in child_main ()
#25 0x8060411 in make_child ()
#26 0x806058c in startup_children ()
#27 0x8060bfc in standalone_main ()
#28 0x806142c in main ()
#29 0x4011464f in __libc_start_main () from /lib/libc.so.6
I tried another version of each of the three packages, with no results.
Thank you for any advice.
-----------------------------------------------------------------------------
Philip Steeman tel: (+32)59 56 90 16
Zeedijk 101 fax: (+32)59 56 90 01
8400 Oostende E-mail: [EMAIL PROTECTED]
Belgium
--- End Message ---
--- Begin Message ---
I am trying to compile PHP4.0.6 for Apache as a module with GD 2.0.1
and freetype 2.0.4. All goes well until I try to restart Apache &
I get
/usr/lib/apache/libphp4.so: undefined symbol: gdImagePngCtx
Why am I using GD 2.0.1? Becuase v1.8.4 doesn't really work with
Freetype 2, see this article for details...
http://www.alt-php-faq.org/local/68/
Regards,
Fred.
--- End Message ---