It is possible to run ExamSys on Windows using IIS
You must have the World Wide Web Services and Web Management Tools enabled via Windows features
Download any versions of PHP you wish to test with
Install MySQL
Have a local ExamSys git repository with the develop branch checked out
Use PHP Manager to select the versions of PHP you wish to use.
Open the Internet Information Services (IIS) Manager tool
Right click on the Default Web Site and select Add Virtual Directory
Enter an alias (for example examsys) and set the physical path to be the directory your local ExamSys repository
In the Default Web Site click on the Bindingsā¦ action and add a http port on 8001 (you can then use that port to run behat tests)
Select the ExamSys directory that will not be showing up and open the PHP Manager
Ensure that the version of PHP you need for ExamSys is selected
Configure error reporting to be Development machine
Ensure that the extensions that ExamSys requires are enabled
Download and install xdebug for the version of PHP you are using.
Manually edit your php.ini file to add the configuration for xdebug
[XDEBUG] zend_extension=php_xdebug-your.version.details.dll xdebug.remote_enable=on xdebug.xdebug.remote_port=9000 xdebug.remote_host=localhost xdebug.remote_autostart=off |
It is recommended to use a manager for npm such as nvm for Windows after you have installed it run the following set of commands:
nvm install 6.17.0 nvm use 6.17.0 |
You should replace the version numbers above with what ever the most current supported version of npm is for ExamSys
Download the latest version of composer into the root directory of ExamSys.
Before you can install ExamSys you will need to run several things to ensure all the dependencies are downloaded.
npm install php composer.phar install grunt cd plugins/texteditor/plugin_tinymce_texteditor npm install |
The following can be used to create a batch script to do it (you will want to run this every time you pull new updates into ExamSys)
@echo off echo Setting up development environment... echo ExamSys NPM: call npm install echo ExamSys composer: call php composer.phar install echo Tiny MCE: cd plugins/texteditor/plugin_tinymce_texteditor call npm install cd ../../.. echo Grunt: call grunt echo ExamSys development setup complete. |
You will now be able to follow the normal ExamSys installation procedure (assuming you used the suggested virtual directory) by going to http://localhost/examsys/install, or you can use the command line installer
You will now probably want to setup both your unit testing and behat test suites.