Different Firstbyte for PHP and HTML pages

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

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.