LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-14-2007, 12:01 AM   #1
joelunch
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Rep: Reputation: 0
PHP4 stability and testing


We have 2 almost identical servers running uptodate Centos 4.x. One seems to be having stability issues with PHP (4.3.9).

We can't find any difference between the two systems. On one we have client reports of PHP having issues and we are experiencing random errors running Cacti - after a random time it will simply log us out.

Are there some PHP load/stress testing applications/scripts to see if our PHP install is stable? Or where might we begin to troubleshoot how our php install is causing issues?

Thanks heaps,

Joe
 
Old 09-14-2007, 12:44 AM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Antonio, TX
Distribution: Fedora, RHEL 6, CentOS 6, Debian 6, Arch, Gentoo
Posts: 136

Rep: Reputation: 16
Quote:
Originally Posted by joelunch View Post
after a random time it will simply log us out.
Did you check to make sure your php.ini file is the same. Check to make sure your session.save_path is writeable by apache.

Thanks,
James Glenn
thedonkdonk.net
 
Old 09-14-2007, 12:55 AM   #3
Scroggs79
LQ Newbie
 
Registered: Feb 2006
Location: California
Distribution: Mandriva
Posts: 15

Rep: Reputation: 0
Also run the php_info(); command on both and compare the output.
 
Old 09-14-2007, 03:13 AM   #4
joelunch
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Yeah I've closely compared and matched up the php.ini, httpd.conf and the my.cnf on the dodgy machine and still the same issues occur. I've also tried removing the php modules and still have the issue.

The session.save_path appears readable as it is full of sess_.. files from today.

One slight difference is the following
apache module mod_webapp
Anyone know what it does? Is it needed? (XSTL wouldn't be needed would it - that isn't on the faulty machine)
 
Old 09-15-2007, 11:07 AM   #5
andyccn
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 46

Rep: Reputation: 15
Unless you're using some form of XML transformations using PHP, I can't imagine that XSLT would be needed.
As for mod_webapp, it looks to be a sort of HTTP stack between Apache and Tomcat. If you're not using Java on your servers, I'd disable it.

http://people.apache.org/~jfclere/webapp_docs/ <- WebApp Module
 
Old 09-16-2007, 06:45 PM   #6
joelunch
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Any other ideas for testing the stability of PHP and seeing what might be the cause?
 
Old 09-17-2007, 01:02 PM   #7
andyccn
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 46

Rep: Reputation: 15
Have you disabled mod_webapp?

PHP 4.3 is quite dated now (in fact PHP4 will be end-of-life'd by the end of the year.)
Try the latest version of PHP4 - 4.4.7, and get your application in testing/development for PHP5.

Also turn on PHP debugging to log to a file, and when the application logs you out/stops doing what it should, check the debug logs and your Apache error logfile.
 
  


Reply

Tags
centos4, php, stability


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace 'etch' with 'testing' in /etc/apt/sources.list to track 'testing' branch? Akhran Debian 3 04-09-2007 10:45 AM
Sarge-testing To Etch-testing? SMurf7 Debian 3 02-21-2006 10:59 PM
Help loading php4-gd with php4 already installed. (Debian) sdduuuude Linux - Software 3 10-24-2005 05:13 AM
Setup as getting debian testing files from ftp - will it stay with testing BrianHenderson Debian 2 09-02-2004 06:06 PM
looking for stability corbintechboy Linux - General 12 10-18-2003 12:07 AM


All times are GMT -5. The time now is 05:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration