Installing PHP
The second component needed for Organizr to run is PHP.
- 1.Download PHP for Windows from here: http://windows.php.net/download (Non Thread Safe version used in this guide)
- 2.Create a folder called PHP under your Nginx directory e.g.
C:\nginx\php
and copy the downloaded files to this folder
- 1.Install NSSM - Skip to Step 2 if already installed
- 1.
- 2.Copy the nssm.exe from the win32 or win64 folder depending on your system to
C:\Windows\System32
- 2.If you’ve got
nssm
already setup, open command prompt as admin. - 3.Type in the following
cmd nssm install php
- 1.Path =
C:\nginx\php\php-cgi.exe
- 2.Startup directory =
C:\nginx\php
- 3.Arguments =
-b 127.0.0.1:9000
- 4.See image below for Example
- 4.Install Service
- 5.On the opened cmd prompt type in
nssm start php
to start the PHP service. - 6.If the installed PHP service doesn’t start, then try manually running the
php-cgi.exe
file inC:\nginx\php\
- 1.If you get a missing ‘VCRUNTIME’ related error then follow the solution on this link: http://stackoverflow.com/questions/30811668/php-7-missing-vcruntime140-dll
- 7.Make a copy of one of the
php.ini-development
orphp.ini-production
files and rename it tophp.ini
- 8.Open the php.ini file and search for the following and uncomment each:
- 1.extension_dir = "ext"
- 2.extension=php_openssl.dll
- 3.extension=php_pdo_sqlite.dll
- 4.extension=php_curl.dll
- 5.extension=php_sqlite3.dll
- 9.Please note that if you are running PHP 7.2 or higher, look for the below lines and uncomment them instead:
- 1.extension_dir = "ext"
- 2.extension=openssl
- 3.extension=pdo_sqlite
- 4.extension=curl
- 5.extension=sqlite3
- 10.Also, uncomment the following line and add
ext
to the end of it:- 1.sqlite3.extension_dir =
- 1.So that is becomes:
sqlite3.extension_dir = ext
- 11.On the opened
cmd
prompt type innssm restart php
to restart the PHP service to apply the changes inphp.ini
.

apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.1-fpm
Then, to be sure all of the PHP packages are installed, run the following command with your package manager. Some of these may also require other dependencies, so select "Yes" to install those as well.
apt-get install php7.1-mysql php7.1-sqlite3 sqlite3 php7.1-xml php7.1-zip openssl php7.1-curl
Last modified 1mo ago