LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP4 + apache very slow (https://www.linuxquestions.org/questions/linux-software-2/php4-apache-very-slow-173661/)

MurrayL 04-23-2004 07:55 AM

PHP4 + apache very slow
 
I am running an apache server with php4 module on redhat 9.0

I am having a problem that whenever I try to access a php page on the server it is very slow to load. ( about 10secs ).

After the first php page has loaded, if I acces another page soon after the first (<10secs), it loads almost instantaniously. But if I wait too long before opening the next page, it also takes allong time to load.

so if I stay on 1 page for longer than approx. 10secs the next page takes a long time to load.

This seems very strange to me, does anyone have any ideas as to what is going wrong, or how I could go about diagnosing the problem.

Thanks
Murray

Other insteresting and possibly helpfull information:

-HTML pages load very quickly
-CPU & Memory under no strain at any time during the procedure.
-Exaclty the same problem occurs for every user, if more than one user is accessing the server symultainously.
-not using any proxy servers
-Same problem when accessing page though windows or linux.
-Have tested with many different php scripts so am sure it is not a problem with the script.

AutOPSY 04-23-2004 09:06 AM

It may be a module loading unloading thing going on, how does mod_php work with apache ?

you might look into the settings for apahce and you may not have PHP setup correctly.


All times are GMT -5. The time now is 02:33 AM.