How to install Flarum on Windows
Setup of the environment
For starters we will need to install the right tools to use composer and what needs flarum to be installed.
I. PHP
Go to http://windows.php.net/download/ and download this : http://windows.php.net/downloads/releases/php-5.6.16-nts-Win32-VC11-x86.zip, extract the .zip file and put it into your Windows folder under the name of "php".
You should have that :
II. Composer
Download composer here : https://getcomposer.org/download/ (direct link : https://getcomposer.org/Composer-Setup.exe)
Launch it :
You might run into a :
Download this : https://www.microsoft.com/en-us/download/details.aspx?id=48145
Select your php.exe :
And also into an :
Do this :
- Rename
php-production.ini
(located in your C:\php) into php.ini
- On the line 881, remove the ";"
- Copy
ext\php_openssl.dll
to C:\windows\php\
III. cURL
Download cURL by going there : http://www.confusedbycode.com/curl/#downloads
And doing that :
Install it and then, do this :
- (If it's not already done) Rename your
php.ini-production
to php.ini
- In line 868, remove the ";".
- Copy
ext\php_curl.dll
to C:\windows\php\
IV. mbstring & exif & fileinfo
- In
php.ini
line 869, 877 & 878, remove the ";".
- Copy ext\php_mbstring.dll to C:\windows\php\
- Copy ext\php_exif.dll to C:\windows\php\
- Copy ext\php_fileinfo.dll to C:\windows\php\
Installing Flarum
Let's dive in.
I. Console
As the default Windows console (the CMD) lacks a lot of thing, i personally use "ConEmu" and i advise you to do the same.
Launch it :
Go to the folder where you want to install flarum with your console using :
cd /place/where/i/want/to/be
Type in
composer create-project flarum/flarum --stability=beta
Your console will start to act funny :
You will probably reach this phase of the installation :
To do so, follow this link to the Github token creation page : https://github.com/settings/tokens/new, type in your password or log in and uncheck all of the scopes as on the image above :
Click on "Generate Token", you should have something like that :
Make sur to copy it as it is said and paste it back on your console after the
That done, it will resume the flarum installation :
Aaaaand, it is done ! The installation is complete. In the location where you choose to install flarum, you'd normally have something like that :
Have fun with flarum !