Is it possible deploying Laravel Sail developed project to Apache server? - laravel

I’m not too familiar with the server technologies. So my question is is it ok to deploy a project developed under Laravel Sail environment (which uses Nginx as default web server i guess) to a server which runs Apache? Will it work? Should i expect any problems?

Laravel Sail is not for production. It also doesn't use apache or nginx, but php's build in web server (php artisan serve). So please use your own, or have a look at my config.

I have modified the docker file to work with Sail and Apache for development purpose. You can take a look on Gitlab link here to have some idea for your production environment.

Related

laravel production in windows server

im new in laravel and i have done my first project, I have xampp,mysql and windows server 2012 (installed with composer and laravel 7). i'm running the application in server via command below
php artisan serve --host=[ip] --port=[port]
application is running fine within the network. However, it seems super slow. I'm not sure if this the correct way of deploying it into production. Do you have any recommendation/instructions where can i run/deploy apps within the resource that I have.
Speed of your laravel project depends on many parameters like hardware config (CPU,RAM,...) and also number of users and level of requests and processes. But consider that for an app in production it's better to not use php artisan serve command. It's only for development environment. I don't that how much you know about linux but I suggest you to change your stack and use linux as your production os with nginx as web server alongside php-fpm for running your app in production. But for now you should config xmapp's apache web server to run your application from project's public folder. Here is a link you can use: https://insidert.medium.com/setting-up-laravel-project-on-windows-2aa7e4f080da
good luck

Laravel Restful api Production Server Configuration

This is my first time moving my Laravel RESTful api to the production server in CentOS environment using apache. To make it work I have to use
APP_URL=production_ip_address
MARKET_BASE_URI=127.0.0.1:8000
and php artisan serve or i
get cURL error 7
Is there any better way to do so if my APP_URL and MARKET_BASE_URI is same? This works on my local environment with the same URL and no issues, but Connection issues when i use the same in production environment.
use
MARKET_BASE_URI=127.0.0.1:9000
run
php artisan serve --port=9000

Doubts in Laravel

I was learning Laravel, I felt doubts regarding to the same.
Do we need APACHE server for Laravel? Because, without my LAMP server ON, I could do php artisan serve
Laravel server is working on HTTP, I wish to work it on HTTPS server.
Can someone help me in above questions?
Thanks in advance.
the php artisan serve is more for testing purpose, to start a development server, so you build you application as fast as you can to test it, but its not for running it to production.
and for your second question, with apache you can solve that, but if you still want to use it with the php artisan serve, you can use ngrok like this
cd <path-to-ngrok>
./ngrok http localhost:8000
https://ngrok.com/

How to run my laravel project on vps?

Now I just finished my laravel web application and want to upload to vps (digital ocean).In local, i usually trying to use by typing php artisan serve ,then go to access http://localhost:8000/ ,and everything is fine. But on vps ubuntu, how to type to run my laravel application,I already upload my project to git and pull from vps. I follow this instruction,but this instruction is just installation.Please guide me. Thanks in advance.

What does MAMP do?

I have to develop api and maintain 'MAGENTO'...
I'm new to this so my senior told me to 'test' our service locally after checking out the all source code.
So I'm searching how to do this...
What I found is the combination of magento and mamp...
But due to the lack of understanding of magento, I don't know what mamp does for my purpose.
Anyone can help us?
To run Magento, you'll need a server environment running a web server (Like Apache and Nginx) and PHP.
MAMP is an easy solution for this - It will install a local environment containing Apache, MySql and PHP
Mac - Apache - MySQL - PHP.

Resources