Shoey
03-25-2004, 09:29 AM
Hello,
CP, FTP, Html are too fast but PHP is slow. Do you have any idea? If yes, How to fix this problem?
Thank you.
What exactly are you using to determine it's slow? Are you looking at one particular script? or is it all PHP pages? a link would be useful.
ksstudio
03-25-2004, 11:53 AM
What your server hardware specs are?
Nullified
03-25-2004, 11:56 AM
php scripts probably aren't what's slow. it's probably something to do with your server. If yo think it's php though, then zend encode it or don't use it.
rsferreira
03-25-2004, 12:50 PM
Maybe it's just a bad coded script, not PHP itself. Anyway, you can optimize it using Zend, MMCache etc.
Shoey
03-25-2004, 01:16 PM
Dual Xeon 2.4Ghz, 1GB Ram, 73GB SCSI hdd, 100 -normal accounts/domains hosted on it.
RedHat 9.0
When I restart apache, it works fine but after some hours it goes slow again.
SROHost
03-25-2004, 01:33 PM
Originally posted by Loon
What exactly are you using to determine it's slow? Are you looking at one particular script? or is it all PHP pages? a link would be useful.
rkuris
03-25-2004, 01:43 PM
A memory leak will cause this type of problem. Perhaps you have an older PHP version or have discovered a new bug.
One thing you can try is adjusting MaxRequestsPerChild in your httpd.conf file:
MaxRequestsPerChild 100000
See if that makes the problem disappear. If so, then you have probably found a leak.