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

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Gr@peApe
Forum Newbie
Posts: 3
Joined: Fri Dec 06, 2002 10:45 am
Contact:

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

Post 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.
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post 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
Gr@peApe
Forum Newbie
Posts: 3
Joined: Fri Dec 06, 2002 10:45 am
Contact:

more info

Post 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.
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

Any clues in the Apache or PHP error logs? are you using any sort of fail over setup?

John M
Gr@peApe
Forum Newbie
Posts: 3
Joined: Fri Dec 06, 2002 10:45 am
Contact:

Re:

Post 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
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post 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
Post Reply