php-install Digest 7 Feb 2002 02:45:04 -0000 Issue 687

Topics (messages 5934 through 5942):

Re: Linux and mm session handler -- does it really handle high load?
        5934 by: Yasuo Ohgaki

How to update PHP to Version 4.1.1
        5935 by: Daniel Backhausen

Re: error 500 win xp apache 1.3.22 php 4.1.1
        5936 by: Delta_5

php works, but...
        5937 by: Bernd Vater
        5938 by: Bernd Vater
        5941 by: Kjell Hansen

Call to undefined function: curl_init()
        5939 by: Adam Doyle

php 4.0.0 linux install
        5940 by: Brad Adams

php 4.1.1 on Mac OS X 10.1
        5942 by: Ryan Walker

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 ---
Found the problem. It's actually in output layer, not
the patch.

Just make sure you don't output any before starting
session/sending headers. PHP fails to complain about it
under my system and it caused segfaults.

Here is my simple performance test reuslt

[root@dev root]# ab -c 500 -n 5000 
http://tmp-dev.localnet/~yohgaki/test/sess_save_handler/mm-handler.php
This is ApacheBench, Version 1.3d <$Revision: 1.58 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/

Benchmarking tmp-dev.localnet (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
Completed 2500 requests
Completed 3000 requests
Completed 3500 requests
Completed 4000 requests
Completed 4500 requests
Finished 5000 requests
Server Software:        Apache/1.3.23
Server Hostname:        tmp-dev.localnet
Server Port:            80

Document Path:          /~yohgaki/test/sess_save_handler/mm-handler.php
Document Length:        30 bytes

Concurrency Level:      500
Time taken for tests:   37.948 seconds
Complete requests:      5000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      1923375 bytes
HTML transferred:       153870 bytes
Requests per second:    131.76 [#/sec] (mean)
Time per request:       3794.80 [ms] (mean)
Time per request:       7.59 [ms] (mean, across all concurrent requests)
Transfer rate:          50.68 [Kbytes/sec] received

Connnection Times (ms)
               min  mean[+/-sd] median   max
Connect:        3   539  656.8    432  9593
Processing:   496  1612 2533.7   1323 33401
Waiting:      411  1611 2533.7   1323 33402
Total:        496  2150 2886.2   1872 37037

Percentage of the requests served within a certain time (ms)
   50%   1872
   66%   1961
   75%   2043
   80%   2072
   90%   2290
   95%   2413
   98%   5657
   99%  11294
  100%  37037 (last request)
[root@dev root]#


BTW, this Linux is running with 433Mhz Celeron PC.

If you find problems, let me know. I might be able to fix
it before commit.

--
Yasuo Ohgaki

Yasuo Ohgaki wrote:
> Looks like I've done something wrong. Older patch performs well but
> not this one. Don't even try the patch.
> 
> -- 
> Yasuo Ohgaki
> 
> 
> Rick Morris wrote:
> 
>> I have tried mm as a session handler three times, on three different 
>> Linux
>> boxes. Each one was a server under heavy load, running many concurrent
>> sessions, so I was hoping mm would solve some performance issues, but 
>> have
>> been disappointed each time.

--- End Message ---
--- Begin Message ---
Hi.

Can somebody tell me how to update a compiled Version of PHP 4.0.4 to 4.1.1
Installed OS is SuSE Linux 7.3 with a compiled version of 4.0.4
I was wondering if I have to heed for something. Or does somebody have a
link to
a Tutorial for updating PHP ?

Please help me out.

Thx
Daniel


--- End Message ---
--- Begin Message ---
I have the same exact setup and same problem and am looking for a fix. ANY
ONE HELP!!!!!


"Someguy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> so i'm running apache 1.3.22 on windows XP
> and trying to run phpnuke on it.It works fine locally without ANY
errors.But
> as soon as outside users try to connect to the server they say there was
an
> error.Since they are windows users they couldn't quite tell me what was
> wrong.Anyway...after connecting to my machine from a linux box with lynx i
> could see that instead of the clean html code sometimes i got
>
> OI^]?Á^A+^A?r^A
> and similar characters
> the last was:
> <OI^]?Á^A+^A?r^A
> LA^XR? GMT
> Server: Apache/1.3.22 (Win32) PHP/4.1.1
> X-Powered-By: PHP/4.1.1
> Set-Cookie: lang=english; expires=Tue, 21-Jan-03 17:59:13 GMT
> Connection: close
> Content-Type: text/html; charset=windows-1250
>
> they are positioned randomly in the code so it can't be the fault of the
> script because they are never the same and never in the same place.I get
> <OI^]?Á^A+^A?r^A<OI^]?Á^A+^A?r^A<OI^]?Á^A+^A?r^A<OI^]?Á^A+^A?r^A and more
> sometimes and only when trying to use apache from outside.
>
> Does anyone have any idea what the problem might be?
> I even tried going back to php 4.0.6 but that didn't help eather.
> i thought it might for some strange reason be the default language in
> php.ini but the error continued to be there after setting it from
iso-8859-1
> to windows-1250
> didn't help...and it was a desperate attempt anyway.
> Can anyone help :( ?
>
>
>
>


--- End Message ---
--- Begin Message ---
Hi,

I've installed apache 1.3.22 and php 4.0.6 on Windows 98.

When I start http://localhost/test.php (<?php phpinfo() ?>) everything works fine. But 
if I start an index.htm the start-site will be displayed but I can't open any link on 
that page. If I try to open anyway and I'm offline, my computer want to connect to the 
internet. All links at that page are stored in a subdirectory of localhost. What I 
wonder is, that frames out of index.htm are also stored in the subdirectory.

How can I get to my links - Any suggestions?
--- End Message ---
--- Begin Message ---
Sorry for posting again, but the problem below only happens when I'm offline!

Hi,

I've installed apache 1.3.22 and php 4.0.6 on Windows 98.

When I start http://localhost/test.php (<?php phpinfo() ?>) everything works fine. But 
if I start an index.htm the start-site will be displayed but I can't open any link on 
that page. If I try to open anyway and I'm offline, my computer want to connect to the 
internet. All links at that page are stored in a subdirectory of localhost. What I 
wonder is, that frames out of index.htm are also stored in the subdirectory.

How can I get to my links - Any suggestions?
--- End Message ---
--- Begin Message ---
Hi,
I guess you're using IE as browser. It has that strange behaviour to me too. And 
that's another reason for using Netscape when developing internet pages

HTH
/Kjell

Bernd Vater wrote:

> Sorry for posting again, but the problem below only happens when I'm offline!
>
> Hi,
>
> I've installed apache 1.3.22 and php 4.0.6 on Windows 98.
>
> When I start http://localhost/test.php (<?php phpinfo() ?>) everything works fine. 
>But if I start an index.htm the start-site will be displayed but I can't open any 
>link on that page. If I try to open anyway and I'm offline, my computer want to 
>connect to the internet. All links at that page are stored in a subdirectory of 
>localhost. What I wonder is, that frames out of index.htm are also stored in the 
>subdirectory.
>
> How can I get to my links - Any suggestions?

--- End Message ---
--- Begin Message ---
I installed mod_php4 w/curl support on FreeBSD 4.5-Release running
Apache 1.3.23

I think my php.ini file residing in /usr/local/etc
is not configured properly:

; Directory in which the loadable extensions (modules) reside.
extension_dir = /usr/local/lib

or should i load it directly like this:

extension=/usr/local/lib/libcurl.so

Here's my lib directory:

/usr/local/lib:# ls | grep curl
libcurl.a
libcurl.la
libcurl.so
libcurl.so.2

When I try to submit my information I get this error:

Fatal error: Call to undefined function: curl_init() in
/usr/local/www/data/php_test.php on line 251

Any help/advice would be greatly appreciated!

thanks,
Doyle
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
I am unable to get php to install, mysql 3.2.32 installs, apache 1.3.12 
installs. I have been unable to get php to work. Here is my debug.log, 
see below. Thanks for any help you can give a newbie.
Sincerely, Brad Adams, Pasco High Schoo, Pasco, Washington

CONFIGURE:   './configure' 
'--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/' 
'--with-apxs=/usr/local/apache_1.3.12/bin/apxs'

CC:         gcc

CFLAGS:     -g -O2

CPPFLAGS:   

CXX:        

CXXFLAGS:   

INCLUDES:    -I/usr/local/apache_1.3.12/include  -I$(top_builddir)/Zend 
-I$(top_srcdir)  -I/usr/include/freetype 
-I/usr/local/mysql-3.22.32-pc-linux-gnu-i686//include

LDFLAGS:     
-Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql 
-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql

LIBS:       -lmysqlclient -lttf -lpng -lz -lgd -lresolv -lm -ldl -
lcrypt 
-lnsl  -lresolv

DLIBS:      

SAPI:       apache

PHP_RPATHS:  /usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql

uname -a:   Linux localhost.localdomain 2.4.2-2 #1 Sun Apr 8 20:41:30 
EDT 2001 i686 unknown



gcc -o conftest -g -O2   
-Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//
lib/mysql -L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql 
conftest.c -lmysqlclient -lttf -lpng -lz -lgd -lresolv -lm -ldl -lcrypt 
-lnsl  -lresolv 1>&5

/usr/bin/ld: cannot find -lmysqlclient

collect2: ld returned 1 exit status


 


--- End Message ---
--- Begin Message ---
I'm trying to install PHP 4.1.1 on Mac OS X 10.1. I just finished
compiling and installing fresh versions of MySQL 3.23.47 and apache
1.3.22.

Ultimately, I want to use:
./configure \
    --with-gnu-ld \
    --with-mysql=/usr/local \
    --with-apxs=/usr/local/sbin/apxs \
    --enable-track-vars \
    --enable-magic-quotes \
    --enable-discard-path \
    --disable-pear \
    --with-xml \
    --with-openssl \
    --enable-trans-sid

but that won't compile yet, so I'm starting small and working up.

   ./configure

   make

/usr/local/src/php-4.1.1/.libs/libphp4.lax/libZend.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libsapi.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libmain.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libregex.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libmysql.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libpcre.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libposix.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libsession.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libstandard.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libxml.a
/usr/local/src/php-4.1.1/.libs/libphp4.lax/libtsrm.a
/usr/local/src/php-4.1.1/.libs
/bin/sh /usr/local/src/php-4.1.1/libtool --silent --mode=link cc
-I. -I/usr/local/src/php-4.1.1/ -I/usr/local/src/php-4.1.1/main
-I/usr/local/src/php-4.1.1 -I/usr/local/src/php-4.1.1/Zend
-I/usr/local/src/php-4.1.1/ext/mysql/libmysql
-I/usr/local/src/php-4.1.1/ext/xml/expat  -traditional-cpp
-I/usr/local/src/php-4.1.1/TSRM -g -O2   -o php -export-dynamic
stub.lo libphp4.la
/usr/bin/ld: can't locate file for: -ldl
make[1]: *** [php] Error 1
make: *** [all-recursive] Error 1
[rocky:local/src/php-4.1.1] root# which ld
/usr/bin/ld
[rocky:local/src/php-4.1.1] root# ls /usr/bin/l*
/usr/bin/lam        /usr/bin/lessecho   /usr/bin/lock       /usr/bin/lpc
/usr/bin/last       /usr/bin/lesskey    /usr/bin/lockfile   /usr/bin/lpq
/usr/bin/lastcomm   /usr/bin/lex        /usr/bin/logger     /usr/bin/lpr
/usr/bin/latency    /usr/bin/lex++      /usr/bin/login      /usr/bin/lprm
/usr/bin/ld         /usr/bin/libtool    /usr/bin/logname    /usr/bin/lsbom
/usr/bin/leaks      /usr/bin/lipo       /usr/bin/look
/usr/bin/leave      /usr/bin/lkbib      /usr/bin/lookbib
/usr/bin/less       /usr/bin/locate     /usr/bin/lorder


   ./configure \
    --with-gnu-ld

produces exactly the same error.

Suggestions?

Ryan
--- End Message ---

Reply via email to