Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cgbhise's avatar

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?

0 likes
10 replies
ChristophAust's avatar

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.

geowrgetudor's avatar

Just install xampp create a vhost and that's it. You don't need to use artisan

cgbhise's avatar

@ChristophAust @geowrge

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.

geowrgetudor's avatar

@cgbhise

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.

cgbhise's avatar

@geowrge By LAMP , you mean linux apache mysql...? I am trying on windows with PHP and MySQL installed

geowrgetudor's avatar

LAMP = Linux, Apache, MySQL/MariaDB, PHP.

If you already have PHP & MySQL installed, go ahead and install Apache.

ChristophAust's avatar

Yeah indeed. What is your question? Download the windows binaries and install them using batch.

Please or to participate in this conversation.