Page 1 of 1

RH7.3 PHP reinstall causing long load times...

Posted: Fri Dec 06, 2002 10:45 am
by Gr@peApe
I removed the original PHP from my recent RH7.3 install and then installed the same version (4.1.2-7) from source rpm found at rpmfind.net. This has caused a very interesting situation: anyone outside my linksys router trying to access pages with php AND connexions to mysql or postgress suffer a several minute load time.

If I try to access the same page via external address/name from inside the router I receive the same load time/sometimes timesout. If I try the page via internal address it load in normal 2-3 second time. If I load a PHP or straight html page that is NOT connecting to a database the page loads normally.

One other note. I had someone external do a head request on one of these slow loading pages and he got the header back damn quick. But, when he did a get request he received the long delay.

Has anyone seen this behaviour before? Is it a PHP config setting???

I tried installing BIND and setting up a local caching DNS. Hasn't helped.

Posted: Fri Dec 06, 2002 3:51 pm
by Johnm
I assume you are using Apache... it could be a multitude of things but for starters, look at how the virtual hosting is set up in the httpd.conf file, also if you can get the page to eventually load have a look at phpinfo() and make sure that you are pointing to the correct php.ini file.

John M

more info

Posted: Fri Dec 06, 2002 8:37 pm
by Gr@peApe
Yes apache is being used, v.1.3.23-11

I am using name based virt hosting, which was working fine before i reinstalled php. Going to the internal ip or internal name loads the default site promptly.

And phpinfo() confirms the use of /etc/php.ini.

Posted: Mon Dec 09, 2002 11:19 am
by Johnm
Any clues in the Apache or PHP error logs? are you using any sort of fail over setup?

John M

Re:

Posted: Mon Dec 09, 2002 11:30 am
by Gr@peApe
No errors were showing up. For some reason it was just timing out loading the page, but once it timed out/or waited long enuf it would load.

No failover.

I had to get the box online so I reinstalled RH7.3, left the default PHP install alone this time and it is working fine. Maybe my DL of PHP for the previous install was corrupt??

Thanks for trying to help me out!

Gr@peApe

Posted: Mon Dec 09, 2002 11:33 am
by Johnm
We had some similar problems and the cure ended up being resolving a conflict between the active and failover servers and also with a new DNS server that was installed.

Later,
John m