Deploying ready Laravel 5 project on Apache server on Windows
I have recently designed Laravel 5 project on my windows machine being run on its own development server using 'php artisan serve' command. I want to learn on how to install and configure Apache on windows to deploy this project on it. Is there any guide or anything else for it?
Not really.
There is XAMPP for example.
You use MySQL as a database?
There are binaries for windows which you can install as a service using batch. You will need to install php also.
What I am trying to learn is how to deploy Laravel app on actual stand alone Apache server for production. So to start , I want to deploy it on my local windows machine. You mean there is no way than using XAMP? I alread have PHP , MySQL installed on my machine.
You have to tell us what production server you will gonna use. If it's a shared hosting, then it's a little bit tricky. You have to change some stuff. (I never used this option)
I usually use a VPS like DO. Assuming you already have your project on github/bitbucket or whatever, you should do the following:
add your ssh key to the server
pull the project in your www folder
create a mysql user and a DB
create another system user to handle your files (or you can go with www-data/root)
edit Laravel's .env file and add the DB credentials
install composer and run composer install
run migrations
install LAMP or LEMP (if you prefer nginx)
create a conf file that will point to your project root/public
restart apache / nginx / php-fpm
also you will have to add the domain name to the server and also set the NS for it
turn off debug mode in .env
There might be other steps but this in general what you need to do.