Hi,
Today I am with the installation guide of LARAVEL5 in windows.
Step 1) Requirements
a) PHP >= 5.5.9
b) OpenSSL PHP Extension
c) PDO PHP Extension
d) Mbstring PHP Extension
e) Tokenizer PHP Extension
Step 2) Install Xampp
First of all, we need Xampp, so we can download it from the official page: Download Xampp
Step 3) INSTALL Composer
If you've downloaded and installed Xampp, you need to install Composer.
"Composer is a PHP package manager that is integrated with Laravel Framework.
In Windows, we can install it easy going to the official page and download the installer."
Composer Download page
After installing it, open a Windows terminal and write composer.
Step 4) Xampp Virtual Host
We will configure a Virtual Host in Xampp for a Laravel project, and in this example, we want to configure the domain laravel.dev for our project.
We need to edit httpd-vhosts.conf that is located in
C:\xampp\apache\conf\extra\httpd-vhosts.conf and add following lines at the end of the file:
#VirtualHost for LARAVEL.DEV
<VirtualHost laravel.dev:80>
DocumentRoot "C:\xampp\htdocs\laravel\public"
ServerAdmin laravel.dev
<Directory "C:\xampp\htdocs\laravel">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
After this, our apache is listening to
Today I am with the installation guide of LARAVEL5 in windows.
Step 1) Requirements
a) PHP >= 5.5.9
b) OpenSSL PHP Extension
c) PDO PHP Extension
d) Mbstring PHP Extension
e) Tokenizer PHP Extension
Step 2) Install Xampp
First of all, we need Xampp, so we can download it from the official page: Download Xampp
Step 3) INSTALL Composer
If you've downloaded and installed Xampp, you need to install Composer.
"Composer is a PHP package manager that is integrated with Laravel Framework.
In Windows, we can install it easy going to the official page and download the installer."
Composer Download page
After installing it, open a Windows terminal and write composer.
Step 4) Xampp Virtual Host
We will configure a Virtual Host in Xampp for a Laravel project, and in this example, we want to configure the domain laravel.dev for our project.
We need to edit httpd-vhosts.conf that is located in
C:\xampp\apache\conf\extra\httpd-vhosts.conf and add following lines at the end of the file:
#VirtualHost for LARAVEL.DEV
<VirtualHost laravel.dev:80>
DocumentRoot "C:\xampp\htdocs\laravel\public"
ServerAdmin laravel.dev
<Directory "C:\xampp\htdocs\laravel">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
After this, our apache is listening to
laravel.dev
connections, but we have to configure our hosts file that allows to redirect laravel.dev to the localhost that is located in C:\Windows\System32\drivers\etc
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost 127.0.0.1 laravel.dev
# 127.0.0.1 localhost
# ::1 localhost 127.0.0.1 laravel.dev
Step 5) Installing LARAVEL
Run this command: composer create-project laravel/laravel laravel "5.1.*"
Run this command: composer create-project laravel/laravel laravel "5.1.*"
After Completing open browser and put laravel.dev what you see is-
Comments
Post a Comment