Created
April 3, 2017 02:06
-
-
Save NanoAi/4e7bcd30cc6bc22ae7411e7ff22e8f8d to your computer and use it in GitHub Desktop.
Install Laravel into XAMPP without using your %appdata%, this way you should be able to transfer things around without having to do much editing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- For people who don't like writing to %appdata% allot. | |
Start by installing XAMPP and downloading Composer. | |
Install XAMPP and make sure you install the PHP plugin. | |
Install Composer, select the php.exe found in C:\xampp. | |
Make a new folder under your XAMPP directory, call it Composer. | |
Go to that folder. | |
Open a CMD inside that folder and enter `composer require "laravel/installer"`. | |
Now goto xampp_shell.bat and add `doskey laravel=C:\xampp\composer\vendor\bin\laravel $*` right under `:setenv`. | |
Save that file. | |
Run `doskey laravel=C:\xampp\composer\vendor\bin\laravel $*` in your current CMD. | |
Goto your htdocs folder move everything in it to a folder called xampp. | |
In your CMD navigate to C:\xampp\htdocs\ and run `laravel new`. | |
After you're done installing move the xampp folder you made before into C:\xampp\htdocs\public | |
Open `.gitignore` and add `/public/xampp` to it. Be sure to save. | |
Goto C:\xampp\apache\conf\extra\httpd-vhosts.conf and add the following... | |
``` | |
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot "C:\xampp\htdocs\public" | |
ServerAdmin laravel.dev | |
<Directory "C:\xampp\htdocs"> | |
AllowOverride All | |
</Directory> | |
</VirtualHost> | |
``` | |
Remember to save it! | |
Now just start XAMPP and everything should work... navigating to `localhost` should bring up the basic laravel page. | |
Going to localhost/xampp should give you the XAMPP panel, and going to localhost/phpmyadmin should give you your PHPMyAdmin stuff. | |
This may be useful in the future... (The link here is for me. :p) | |
https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment