WebPagetest Forums
Different Firstbyte for PHP and HTML pages - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Different Firstbyte for PHP and HTML pages (/showthread.php?tid=11193)



Different Firstbyte for PHP and HTML pages - sbcs - 06-03-2012 06:48 PM

Hi

My site [Drupal 7] running on an AWS is taking 3.5 seconds for the first byte. I tested a php page with "Hello World" and it takes 2.5 seconds and a static HTML page takes .04 seconds for first byte.

What is the reason for a slow response for PHP pages? How can i overcome it?

The url is here



Many thanks!
Sathish


RE: Different Firstbyte for PHP and HTML pages - pmeenan - 06-07-2012 03:19 AM

It's hard to say without knowing a lot more about the software stack you have deployed in your AWS instance.

What web server?

How is PHP configured (cgi, fcgi, mod)?

Is the site live with users or is the only load the testing?

What does the php "Hello World" code look like?

It probably wouldn't hurt to provide phpinfo() output as well.