Hi,
NGINX stable (1.4.2) download:
Spoiler anzeigen
Working PHP-Version 4 HoloCMS:
Spoiler anzeigen
1. Zieht den Ordner "nginx-1.4.2" to C:\, rename diesen zu nginx.
2. Erstellt einen ordner called "php" @C:\nginx\, dort fugt ihr die PHP-Version ein.
3. Offnet C:\nginx\conf\nginx.conf!
Ersetzt
Spoiler anzeigen
Spoiler anzeigen
#location ~ .php$ {
#root html;
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME C:/nginx/html/$fastcgi_script_name;
#include fastcgi_params;
#}
mit
Spoiler anzeigen
location ~ .php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME C:/nginx/html/$fastcgi_script_name;
include fastcgi_params;
}
4. Erstellt ein batch-file(Save as .bat), eins called start.bat & stop.bat.
Start.bat:
Spoiler anzeigen
Echo OFF
start C:\nginx\nginx.exe
start C:\nginx\php\php-cgi.exe -b 127.0.0.1:9000 -c C:\nginx\php\php.ini
ping 127.0.0.1 -n 1>NUL
echo Starting nginx
echo .
echo ..
echo ...
ping 127.0.0.1 >NUL
EXIT
Stop.bat:
Spoiler anzeigen
Echo OFF
taskkill /f /IM nginx.exe
taskkill /f /IM php-cgi.exe
Exit
.
Enjoy!
~ElServidor93 (TheReal)