There are always some boring steps until we can actually start using a framework. Moreover working with Windows and IIS makes things more difficult/tedious yet. I always find myself having to google these kind of things and this time I decided to keep a record of the steps I followed. This way I won’t have to face the same problems in future installations in other machines. Also, hopefully this can help someone else in the same situation!
These are the steps I followed to install Laravel 4 framework to work under my Windows 7 machine with IIS7:
- Download the last version of PHP Non Thread Safe for windows.
- Place the
php.productionif you are on production) to
fastcgi.impersonate = 1
cgi.force_redirect = 0
extension_dir = "ext"
- Enable openssl in
- Install the package Visual C++ Redistributable for Visual Studio 2012 (version x86: vcredist_x86.exe)
- Download Laravel from github and extract it into the
- Download and install composer for windows in the same directory as
- Open the console, move to laravel folder and type the command:
- Add permissions for the ISS user for the
- Make sure you have installed “URL Rewrite 2.0” for IIS 7, if not, download it.
- Import .htaccess rules located in the “public” folder of laravel into the URL Rewrite module of IIS 7:
Once applied this will generate a file called web.config inside your laravel main folder.
- Move the created
web.configfile into the
This is the web.config file which was generated in my case:
So that’s it! After this I was able to start playing with Laravel4 in my windows environment. I hope this can be of help for somebody else.
Join 2,000+ readers and learn something new every month!