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.pharfile, from here, and put it in yourwebroot/binfolder. Then create thebox.cmdfile 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.inifile with the following changes (in addition to the php configurations to thephp.inifile 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.dllis uncommented (no semicolon)
- Search for "curl.cainfo", and change the line to the following:
-
Build the
fw.pharfile 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.jsonand remove "&& shasum -a 1 fw.phar > fw.version" (don't push this change) - Rerun the command
-
You MAY need to move your
fw.pharfile fromwebroot/fw-installertowebroot/bin(thebuildcommand should do this, but if it doesn't then you will need to move it). -
Make the proper
fw.cmdfile by navigating to youwebroot/binfolder and running this command:
C:\Users\[yourUserName]\webroot\bin> echo php “C:/Users/[youronuname]/webroot/bin/fw.phar” %* > fw.cmd