Laravel 5 Tutorial : Installing Laravel 5.3 on Windows with IIS

Laravel 5.3 Tutorial for beginners : How to Install Laravel 5 on windows with Microsoft Internet Information Services (IIS) and PHP Manager, Laravel with IIS 10 support for windows 10.

Laravel 5 Tutorial - This Lessons will show you how to install Laravel 5.3 on windows using Microsoft Internet Information Services (IIS) Manager. We will enable Microsoft Internet Information Services (IIS) on windows 10, and install PHP 7 for IIS.

After installed laravel, for next lessons we will try configuration to connect to a SQLite database.

Installing Laravel 5.3 on Windows with IIS

In windows 10, IIS (Internet Information Services) needs to be installed, One way to do this is by selecting the start button and type Windows Features to bring up a list where "Turn Windows features on or off" can be selected.

Installing Laravel 5.3 on Windows with IIS

Another way to get to this Control Panel app is Windows + R key combination and run "appwiz.cpl". Turn Windows features on or off link should be in the upper left panel.

install laravel on windows with IIS

PHP and PHP Manager

Install PHP 7 for Windows using the Microsoft Web Platform Installer. Download Microsoft web Platform Installer here.

It's an easy way to get both PHP for IIS and takes some of the guess work out of getting PHP up and running on Windows and IIS.

install laravel on windows with IIS

Download and Install PHP Manager

To install PHP manager and running in windows with IIS, please download and install PHP Manager below :

PHP Manager 1.4 for IIS 10

PHP Manager 1.3 for IIS 8-8.5

Composer for Windows

To install Laravel on windows with Internet Information Services, you need to install composer, see How to Install Composer on Windows.

Create Laravel Project

Open your Command Prompt (CMD) with "Open as Administrator". One way to do this is by selecting the start button  and type command to bring up a list where "Command Prompt" can be selected. Right click on Command Prompt and select Run as administrator.

cd c:/intepub
......
composer create-project laravel/laravel laravel "5.3.*"

To install Laravel on windows with Xampp PHP server, go to this link.

IIS Manager Configurations

Open Internet Information Services (IIS) Manager. Right click on the Server and select Add Website. Fill out the form as follows :
Site name : Laravel in IIS
Application pool : DefaultAppPool
Physical path: C:\inetpub\laravel
Host name : laravel.win
Select "Test Settings" and then "OK" if successful.

Hosts Mapping

Since the Host name laravel.win was entered for the website, the hosts file needs to be updated. Open Notepad as an administrator. One way to do this is by selecting the start button  and type Notepad to bring up a list where it can be selected. Right click on Notepad and select Run as administrator.

Select File | Open, or Ctrl + O and change the File type from Text Documents (*.txt) to All Files (*.*). Browse to C:\Windows\System32\drivers\etc and select the hosts file. Add an entry to map localhost to laravel.win as follows.

127.0.0.1   localhost
127.0.0.1   laravel.win

Laravel Project Permissions

Go to IIS Manager, Click on website "Laravel with IIS", right click on Edit Permissions. Under the Security tab, grant full control of the storage folder to Users as shown in the figure below.

install laravel on windows with IIS

Laravel web.config

Since IIS does not have an .htaccess file like Apache, create a web.config file in C:\inetpub\laravel\public as follows.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="^" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

Restart IIS

In an Administrative Command Prompt, restart IIS so all of the changes get applied.

iisreset /restart

Open Laravel Project

Finally, try to open your first Laravel intalled on IIS, following by this command

http://laravel.win/public

Video Tutorial Installing Laravel 5.3 on Windows with IIS



See you Next Lessons....

COMMENTS

Next Recomended


Feel free to code it up and send us a pull request.

Hi everyone, let's me know how much this lesson can help your work. Please Subscribe and Follow Our Social Media 'kodeajaib[dot]com' to get Latest tutorials and will be send to your email everyday for free!, Just hit a comment if you have confused. Nice to meet you and Happy coding :) all ^^



Follow by E-Mail


Name

ADO.NET,3,Ajax,6,Android,9,AngularJS,4,ASP.NET,4,Blogger Tutorials,7,Bootstrap,7,C++,1,Codeigniter,2,Cplusplus,6,Crystal Report,6,CSharp,25,Ebook Java,2,FlyExam,1,FSharp,3,Game Development,2,Java,35,JDBC,2,Laravel,84,Lumen,2,MariaDB,2,Ms Access,3,MySQL,31,ODBC,6,OleDB,1,PHP,14,PHP Framework,5,PHP MYSQLI,9,PHP OOP,5,Python,8,Python 3,4,SQL Server,4,SQLite,4,Uncategorized,5,Vb 6,2,Vb.Net,89,Video,48,Vue Js,4,WPF,2,Yii,3,
ltr
item
KODE AJAIB: Laravel 5 Tutorial : Installing Laravel 5.3 on Windows with IIS
Laravel 5 Tutorial : Installing Laravel 5.3 on Windows with IIS
Laravel 5.3 Tutorial for beginners : How to Install Laravel 5 on windows with Microsoft Internet Information Services (IIS) and PHP Manager, Laravel with IIS 10 support for windows 10.
https://4.bp.blogspot.com/-lVZKuukpdvI/WADVQXbQ-XI/AAAAAAAACt4/V-3tHe7M0CQ4_GFVL6ClB4M93us6UQpzACLcB/s320/laravel-tutorial-install-laravel-iis5-3.png
https://4.bp.blogspot.com/-lVZKuukpdvI/WADVQXbQ-XI/AAAAAAAACt4/V-3tHe7M0CQ4_GFVL6ClB4M93us6UQpzACLcB/s72-c/laravel-tutorial-install-laravel-iis5-3.png
KODE AJAIB
https://www.kodeajaib.com/2016/10/laravel-5-installing-windows-IIS.html
https://www.kodeajaib.com/
https://www.kodeajaib.com/
https://www.kodeajaib.com/2016/10/laravel-5-installing-windows-IIS.html
true
3214704946184383982
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy