Sunday, 15 August 2010

php - Localhost rendering pages are very slow -



php - Localhost rendering pages are very slow -

my localhost rendering pages slow. simple html rendering taking around 2-5 seconds. researched on , got fixed replacing:

new \pdo(... ':host=localhost' ...);

to

new \pdo(... ':host=127.0.0.1' ...);

can explain me or give me link read why localhost slowing downwards , how changing ip made fast. right renders complex queries less sec when taking around 5-10 seconds before.

and there security issue replacing localhost ip? mean if host project live , replace localhost ip of host have impact on kind of security?

thanks alot

i reckon have ipv6 beingness enable on server run script. i'm not strong on network topics, such issue has been discussed several times.

i looked article give improve explanation, think found one: mysql , localhost performance (it's 2011, still applies in many cases).

php apache pdo localhost

No comments:

Post a Comment