The "supernova" is another bucket for Scoop. Scoop is a command-line installer for Windows, like homebrew.
Requirements:
- PowerShell 3
- PowerShell must be enabled for your user account e.g.
set-executionpolicy unrestricted -s cu
On Windows 8 and 10 Power Shell already installed. For run just type in cmd:
powershell
To install scoop (run in powershell console):
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Once installed, run scoop help
for instructions.
To make it easy to install apps from this bucket, run
scoop bucket add scoop-supernova https://github.com/Sandex/scoop-supernova.git
Check that it works:
scoop bucket list
For update run:
scoop update
For example, search all avialable PHP packages:
scoop search php
For example, install PHP7:
scoop install php7
For example install 32bit version:
scoop install php7 -a 32bit
To install:
scoop install php7
Сheck that it works:
php -v
You can find path to php use command:
scoop which php
NOTE: PHP7 (also as and Apache VC14) builded with the latest Windows Visual Studio C++ 2015.
Depending on the VC14 specified in a package as "depends": "ms-vc14"
. When the scoop will do the installation, it will automatically check for dependencies, download and make their installation.
To install:
scoop install apache-vc14
To find the location use:
scoop which httpd
Now just run for test httpd
, and open http://localhost/ in browser.
At first you need install sudo:
scoop install sudo
The run:
sudo httpd -k install
sudo net start Apache2.4
It's done!
Now you have two ways to connect PHP to the Apache.
At first install fcgi module:
scoop install apache-mod-fcgi
And then add PHP handler fcgi to httpd.conf (run in powershell console):
iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/Sandex/scoop-supernova/master/scripts/apache-php-fcgi.ps1')
Now restart Apache:
httpd -k restart
Done!
iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/Sandex/scoop-supernova/master/scripts/apache-php-module.ps1')
Done!