473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

PHP hangs!!

Hi all,
I am trying to deploy the latest PHP,MySQL and Apache for a new webmail
server (My old IMP 3.1 works fine with PHP 4.2.2). Now I have a serious
problem which seems unsolved so far. Here are the versions:

CentOS 4.4
PHP 5.1.6
Apache 2.2.3
MySQL 5.0.24a
UW-IMAP 2004g
Latest Horde+IMP -OR
RoundCube

Problem description (it happens both with IMP and RoundCube).
The problem occurs when opening certain messages from inside the
webmail interface (in IMP it happens also during logging in). Suddenly
CPU usage jumps at 99.5% and Apache hangs. For example, I tried to view
an HTML message with 4 photos attached. The browser stopped after
loading 3 out of 4 photos, and httpd CPU usage jumps at 99.5%. It can't
serve other clients. Only solution? To do a 'pkill' for the hung
process and then restart Apache.

I notice the following error to be logged, but I am not sure this has
something to do with the problem:

[Tue Oct 03 15:07:32 2006] [error] [client 1.2.3.4] PHP Warning:
fgets() [<a href='function.fgets'>function.fgets[/url]]: SSL: fatal
protocol error in
/usr/local/apache223/htdocs/roundcube/program/lib/imap.inc on line 130,
referer:
http://server.mydomain.com/roundcube...LD%20-%20INBOX

Oct 4 '06 #1
3 4798
<gr*****@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Hi all,
I am trying to deploy the latest PHP,MySQL and Apache for a new webmail
server (My old IMP 3.1 works fine with PHP 4.2.2). Now I have a serious
problem which seems unsolved so far. Here are the versions:

CentOS 4.4
PHP 5.1.6
Apache 2.2.3
MySQL 5.0.24a
UW-IMAP 2004g
Latest Horde+IMP -OR
RoundCube

Problem description (it happens both with IMP and RoundCube).
The problem occurs when opening certain messages from inside the
webmail interface (in IMP it happens also during logging in). Suddenly
CPU usage jumps at 99.5% and Apache hangs. For example, I tried to view
an HTML message with 4 photos attached. The browser stopped after
loading 3 out of 4 photos, and httpd CPU usage jumps at 99.5%. It can't
serve other clients. Only solution? To do a 'pkill' for the hung
process and then restart Apache.

I notice the following error to be logged, but I am not sure this has
something to do with the problem:

[Tue Oct 03 15:07:32 2006] [error] [client 1.2.3.4] PHP Warning:
fgets() [<a href='function.fgets'>function.fgets[/url]]: SSL: fatal
protocol error in
/usr/local/apache223/htdocs/roundcube/program/lib/imap.inc on line 130,
referer:
http://server.mydomain.com/roundcube...LD%20-%20INBOX
try putting
error_reporting(E_FULL);

at the beginning of the script ..roundcube/program/lib/imap.inc
and if that line refers to a function in another file put that line in the
other file too.
eventually you will find the problem.

It is almost 100% certain that a function (either yours or inbuilt) in the
new PHP behaves differently to one in the earlier version, either because of
the change to v5 or because your configuration settings between the old and
new systems differ in some way.

HTH

Cheers,

Ron Barnett
IT Support for Business
www.rjbarnett.co.uk

-----------------------------------------------------------------------------------------
For labellers and labelling supplies visit www.labelzrus.co.uk
Oct 4 '06 #2
try putting
error_reporting(E_FULL);

at the beginning of the script ..roundcube/program/lib/imap.inc
and if that line refers to a function in another file put that line in the
other file too.
eventually you will find the problem.

It is almost 100% certain that a function (either yours or inbuilt) in the
new PHP behaves differently to one in the earlier version, either because of
the change to v5 or because your configuration settings between the old and
new systems differ in some way.
Thanks for the reply. However, I have to note that the same behaviour
occurs also when installing the new applications in my OLD PHP
platform. Is the approach you described suitable for such a case?

Oct 4 '06 #3
"grpprod" <gr*****@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
>try putting
error_reporting(E_FULL);

at the beginning of the script ..roundcube/program/lib/imap.inc
and if that line refers to a function in another file put that line in
the
other file too.
eventually you will find the problem.

It is almost 100% certain that a function (either yours or inbuilt) in
the
new PHP behaves differently to one in the earlier version, either because
of
the change to v5 or because your configuration settings between the old
and
new systems differ in some way.

Thanks for the reply. However, I have to note that the same behaviour
occurs also when installing the new applications in my OLD PHP
platform. Is the approach you described suitable for such a case?
Yes it works on all PHP versions (or it should do).

I usually put it in my scripts with a check on the server name, so when the
code is on the production server, all errors are suppressed and the script
fails silently, but on the development server, all errors are reported so I
can debug every last warning and notice.
I then put the code on the production box with E_ALL set on and test the
code, then if all is well the errors are suppressed forever. - I would like
to have a written error log but some hosts don't support that,

Cheers

Ron
Oct 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Ramsden | last post by:
I have a script running on PHP v4.3.6 (cgi) that hangs forever in a call to the Postgres pg_get_result() function when and only when the query length is 65536 or more bytes. The query is a...
11
by: anuradha.k.r | last post by:
hi, i am writing a socket program in python,both client side and server side.I've written the client side which is working perfectly fine(checked it against server program written in C).but as for...
12
by: JD | last post by:
This is another Python problem, I think might be unrelated to the earlier bug I found, and eventually figured out how to report it to Sourceforge. This is related to a question I have about...
5
by: Richard Gutery | last post by:
G'day. Slight problem that has me perplexed. We have an ASP app running on Win2K IIS 5.1, devloped on WinXPpro. Up until the other day, the app worked without problems. Now, the app hangs on...
6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
10
by: Tomas Vera | last post by:
Hello All, I'ma having trouble getting GetCurrentProcess() to work properly. What I'm trying to accomplish is list all running processes. But my call get GetProcesses() hangs. While testing...
6
by: Alexander Widera | last post by:
hello, if i start a program (an exe-file) with Process.Start(...) I don't have the required permissions that the programm needs (i could start the programm but the program needs special rights)....
2
by: Pierre Rouleau | last post by:
Hi all, I have a consistent test case where os.popen3() hangs in Windows. The system hangs when retrieving the lines from the child process stdout. I know there were several reports related to...
0
by: Arno Stienen | last post by:
Perhaps I should be a bit more specific. When using this code to connect to a remote XML-RPC server (C++, xmlrpc++0.7 library): import xmlrpclib server =...
2
by: Patrick Finnegan | last post by:
Running db2 8.2 ON aIX 5.3. We have a third party USEREXIT program that periodically hangs for some unknown reason. Db2 generates error message to the diag log. MESSAGE : Successfully...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.