Setup FW Installer for Development
This tutorial assumes that you have completed the FW Installation for Windows up until the "Download FW Installer" heading. If you have not, please complete that at this time. If you intend to develop the FW Installer, instead of doing the normal setup, instead substitute the following steps:
- Download the most recent Box version's
box.phar
file, from here, and put it in yourwebroot/bin
folder. Then create thebox.cmd
file in the following way:
C:\Users\[yourUserName]\webroot\bin> echo php "C:/Users/[yourUserName]/webroot/bin/box.phar" %* > box.cmd
- Clone the FW installer, and build the FW installer command.
C:\Users\[yourUserName]\webroot> git clone https://bitbucket.org/linformatics/fw-installer
-
Edit your
php.ini
file with the following changes (in addition to the php configurations to thephp.ini
file in the FW Installation process linked above).- Search for "curl.cainfo", and change the line to the following:
curl.cainfo = "C:/Windows/cacert.pem"
- Search for "openssl.dll" and ensure the line
extension=php_openssl.dll
is uncommented (no semicolon)
- Search for "curl.cainfo", and change the line to the following:
-
Build the
fw.phar
file from the code you downloaded, instead of downloading the file. To do this, run the following command:
C:\Users\[yourUserName]\webroot\fw-installer> composer run-script build
Note: This command MAY error on Windows machines due to shasum
not being defined. If that is the case:
- Modify
composer.json
and remove "&& shasum -a 1 fw.phar > fw.version" (don't push this change) - Rerun the command
-
You MAY need to move your
fw.phar
file fromwebroot/fw-installer
towebroot/bin
(thebuild
command should do this, but if it doesn't then you will need to move it). -
Make the proper
fw.cmd
file by navigating to youwebroot/bin
folder and running this command:
C:\Users\[yourUserName]\webroot\bin> echo php “C:/Users/[yourUserName]/webroot/bin/fw.phar” %* > fw.cmd