Hi everyone,
so i am setting up a standalone web server using nginx, php 5.6.6, and mysql. This is on windows, and nothing is a service. It is windows for a reason, but i know linux is better and more preferred.
This is currently all working and seems to function fine except for one issue. If i load certain pages (in a test drupal install) the php service or nginx seems to stop entirely.
The page runs for 32 seconds before loading (if i chang the php execution time to 30 seconds it throws a timeout error) but whilst this is loading, no other webpages will load, even though they usually load in around 7ms. Which leads me to believe that i have either set up something wrong in nginx, or i am running php wrong.
The second the 32 second request finishes, i get full response back from the server. This is always the case meaning my server seems to only handle one php request at a time. (no php crashes or errors occur)
This is my current server launch file
@ECHO OFF
SET PHP_FCGI_CHILDREN=15
SET PHP_FCGI_MAX_REQUESTS=0
start apps/php/5.6.6/php-cgi.exe -b 127.0.0.1:9000 -c apps/php/5.6.6/php.ini
start apps/mysql/5.6.23/bin/mysqld --standalone --console
start nginx
EXIT
I have attached my php.ini file aswell. Is there something specific i need to be running so nginx can get php to spawn more child process's? could this be an nginx configuration error (every page runs php so no plain files being loaded)? or am i running php incorrectly? I thought it best to ask here as anyone running nginx will most likely be running php as a base aswell
the php i am running is a download of 5.6.6 x64 non thread safe direct from their website (http://windows.php.net/download#php-5.6). If i should be running anything different please let me know as help on this issue would be hugely appreciated.
Also if anyone may know the php or nginx setting i need to change to enable drupal to run its update checks (HTTP request status fails, works in wamp with no issues), that would be great aswell
Regards,
Jamie
so i am setting up a standalone web server using nginx, php 5.6.6, and mysql. This is on windows, and nothing is a service. It is windows for a reason, but i know linux is better and more preferred.
This is currently all working and seems to function fine except for one issue. If i load certain pages (in a test drupal install) the php service or nginx seems to stop entirely.
The page runs for 32 seconds before loading (if i chang the php execution time to 30 seconds it throws a timeout error) but whilst this is loading, no other webpages will load, even though they usually load in around 7ms. Which leads me to believe that i have either set up something wrong in nginx, or i am running php wrong.
The second the 32 second request finishes, i get full response back from the server. This is always the case meaning my server seems to only handle one php request at a time. (no php crashes or errors occur)
This is my current server launch file
@ECHO OFF
SET PHP_FCGI_CHILDREN=15
SET PHP_FCGI_MAX_REQUESTS=0
start apps/php/5.6.6/php-cgi.exe -b 127.0.0.1:9000 -c apps/php/5.6.6/php.ini
start apps/mysql/5.6.23/bin/mysqld --standalone --console
start nginx
EXIT
I have attached my php.ini file aswell. Is there something specific i need to be running so nginx can get php to spawn more child process's? could this be an nginx configuration error (every page runs php so no plain files being loaded)? or am i running php incorrectly? I thought it best to ask here as anyone running nginx will most likely be running php as a base aswell
the php i am running is a download of 5.6.6 x64 non thread safe direct from their website (http://windows.php.net/download#php-5.6). If i should be running anything different please let me know as help on this issue would be hugely appreciated.
Also if anyone may know the php or nginx setting i need to change to enable drupal to run its update checks (HTTP request status fails, works in wamp with no issues), that would be great aswell
Regards,
Jamie