setting up laravel redirects to xampp

xampp virtual host redirects to dashboard
localhost/dashboard htdocs

Hi I'm setting up Lavarel using a book called Laravel Starter by Shawn McCool (Packt Publishing), I've cloned the respiratory via github and have got as far as configuring my hosts file and setting up my virtual hosts. As below:

<VirtualHost *:80>
DocumentRoot C:/xampp/htdocs/laravel/public

However if I visit the link I am redirected to the XAMPP page and I should be expecting the laravel splash page.

Any ideas of what I have done wrong? The document root is pointing to the correct direction as it is installed onto my localhost.

Greatly appreciate any help.

In the new xampp you should use something like this:

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/laravel/public"
    ErrorLog "logs/laravel.log"
    CustomLog "logs/custom.laravel.log" combined
    <Directory "C:/xampp/htdocs/laravel/public">
        AllowOverride All
        Order Allow,Deny
        Allow from all
        Require all granted

edited with the right serverName. This is my own virtual host file. I also use it for Laravel.

Redirect my Project to dashboard, I set my Hosts file to app.test and Vhosts in Apache ##<VirtualHost "F:/xampp/htdocs/test/public" ##ServerName app.test ##ErrorLog The Problem when i enter app.test it redirect me to http://me.test/dashboard/ not to my laravel Project. are you setup a virtual host named me.test before ? setting up laravel redirects to xampp. 0. Apache on Windows localhost and virtualhosts. 0. Xampp vhost keeps appending /xampp/ Related. Hot Network Questions

Go to C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf and enable virtualhost by removing the #sign in front of Include conf/extra/httpd-vhosts.conf

Keeps going to http://localhost/dashboard, public function getAdmin() { $domain = $_SERVER['SERVER_NAME']; $user http://%1/$1 [R=301,L] # Redirect Trailing Slashes If Not A Folder RewriteCond � Laravel tutorial for installing Laravel on Xampp Steps to install laravel on xampp: 1, Download and install Xampp if you want to run laravel on your local machine.<br /> 2, Download and install composer for laravel.<br /> Download link for Laravel composer is given under step 2 of this laravel tutorial.<br /> Composer manage (install/update) library dependencies for us.<br /> 3, After

Albeit an old question, I found a solution to this the hard way. Do something like this:

<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
<Directory "C:\xampp\htdocs">
    Require all granted

This would enable the XAMPP Stack to point to the localhost correctly (I guess?) And of course don't forget your drivers\etc\hosts       localhost

Your configuration seems fine. Just don't forget to add these two.

<VirtualHost *:80>
DocumentRoot "D:/Workspace/Projects/Playground/laravel-test/public"
#SetEnv APPLICATION_ENV "development"
<Directory "D:/Workspace/Projects/Playground/laravel-test/public">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    Allow from all
    Require all granted

Laravel 5 Redirect Problem - PHP, I am working my way through the Laracasts course Laravel 5 As oddz suggested, setting up a virtual host on XAMPP would resolve this. Once you have downloaded and installed XAMPP on Windows, then you need to do is Download Composer for Windows and Install it. For more details, see our step by step guide on How to Install Composer On Windows With XAMPP. Laravel utilizes Composer to manage its dependencies. It must installed before setting up Laravel.

In new Laravel you need to change your Apache Vhost file to stop this redirection from server. For complete guide about how to change vhost file and run your first laravel web app go to following link : <>

How to install Laravel 5 with Xampp (Windows), After you've downloaded and installed Xampp, we need to install but we have to configure our hosts file that allows to redirect to� The post was all about setting up Laravel on a Windows Machine with Xampp. To start with, we installed Xampp. Then we installed a Laravel dependency called Composer. And Finally installed Laravel. I walked you through the installation process step by step from scratch.

probably, it is because xampp and laravel run on the same port. If so, try changing port before you start running laravel project by this command

php artisan serve --port=8080

*8080 can be changed to any other number port you want

Hot to redirect your site to open the Laravel public folder?, In case you wish to install Laravel in a folder different than your public_html (for example if you already have a different site on your primary domain name), we� Now to install Laravel on the localhost, type below command in cmd. C:\> cd xampp. C:\ xampp>cd htdocs. Now in the corresponding path, enter the following command to create a new Laravel project: Composer create-project --prefer-dist laravel/laravel new_project. Now, Laravel is being installed on your system.

install laravel on windows 10 xampp, This tutorial will give you a step-by-step guide on how to install Laravel 5 in as laravel, redirect to laravel using cmd prompt as cd c:\xampp\htdocs\laravel. Sure there are applications like WAMP or XAMPP that include the stack you need, but in the end you are not emulating the environment where your live application is very likely to run: Linux. Laravel Homestead is a great tool to setup your PHP development environment, but it can be a little confusing to configure and slow in Windows.

Virtual host redirecting to the xampp folder, but only getting This site , Virtual host redirecting to the xampp folder, but only getting This site can't be reached - php. <VirtualHost *:80> DocumentRoot "D:\laravel Task\laravel\blog" //here set I have set up the zf2 on my ubuntu 14.04 system using following link � In this video we will setup our environment. We will be using XAMPP which gives us an Apache server with PHP and MySQL. We will install Laravel with Composer and we will be using the Git Bash

Xampp redirect http to https, com/2013/08/how-to- setup-a- I created the same XAMPP redirects above for a system like Laravel Valet , which runs a dnsmasq service on your system to� Install Laravel Framework. The default directory of XAMPP for installing or keeping PHP project is htdocs. Navigate to following directory in your terminal C:\xampp\htdocs and run following composer command to create a fresh Laravel 5.7 version. composer create-project laravel/laravel myProject "5.7.*"

  • Try putting quotes in the DocumentRoot like: DocumentRoot "C:\xampp\htdocs\laravel\public" and replace / with \ and also put ServerAlias
  • @GladToHelp I tried this but I still get redirected to
  • Is this: in your hosts file or in httpd-vhosts.conf ?
  • @GladToHelp I have put this in the hosts files in C:\Windows\System32\drivers\etc\hosts as per the book that I am reading
  • Try the correct answer from here:… and see if it works after restarting
  • did you restart xampp afterwards?
  • yes I stopped both the sql and apache quit and started the app again