Nginx on Windows PHP fastcgi read timeouts

c0nw0nk nginx-forum at
Tue Jun 17 22:11:03 UTC 2014

So this is going to be a bit of a long post but if i have encounterd this
issue no doubt someone else will.

Basically i keep getting read time outs or my web pages take a very long
time to load.

My server is Windows 2008 R2 64bit.
Everything runs under either System or Root
1GBPS Connection server is from |

My web application is Joomla 2.5.x
External components i use are com_hwdmediashare and com_kunena.
And i use MySQLi instead of MySQL.

My PHP build is PHP 5.4 (5.4.29) x86 NTS (32bit)
No caching extensions enabled

My MySQL server is 5.6.19 (64bit)
MySQL tables i use are all InnoDB

Sever is Nginx from But i was able to replicate
this error with the official builds too

What runs on the server ?
Just Nginx port 80, PHP port 9000-9100, MySQL port 3306.

How i know it is not a MySQL or PHP issue ?
With mysql i enabled slow query logging and i have no queries that are
longer than 2 seconds.
With PHP i added into Joomla a time to load page feature it shows me the
time to create page was always a second or less. "Time to create page: 0.109

Now very often pages take 30 seconds or more to load but yet if i am to
access a page through nginx that is not php. (Html or any other static
content) it loads instantly all the time.

So how do i serve PHP traffic through Nginx ?
I use FastCGI. (This is what i believe is the culprit.)

Bellow i will link to my Configs and hope someone can help me understand why
i am having such a headache and constant read timeouts and downtime of my
site(s). Perhaps i have reached my limit with windows and should be using
linux :(

PHP.ini Config :

MySQL Config : (This was generated by the MySQL installer and the MySQL
server runs fine)

Nginx Config :

Bat Files to run PHP under FastCGI in windows on Nginx (Thanks to itpp2012
for these |,242895,243597#msg-243597) 
multi_run.cmd :

runcgi.cmd :

Bare in mind this is a Windows setup not Linux.

Posted at Nginx Forum:,250964,250964#msg-250964

More information about the nginx mailing list