Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [laravel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Authorization Header Missing Upon NGINX Proxy Pass to subdomain

Hi I'm running Laravel on NGINX server and I would like to use NGINX reverse proxy capability as an API gateway for my Laravel and other node API application. Here are my configurations: Application ...
user avatar
0 votes
0 answers
26 views

link custom domain (name.com) to Azure vm laravel & nginx

Good day, I have a Laravel application on an Azure Virtual machine using Nginx in the ubuntu VM. I wanted to link it to the custom domain I purchased on name.com... Those are the steps that I did so ...
user avatar
0 votes
0 answers
18 views

Hosting a script from CodeCanyon on my own server. How can the original developer see my script?

I bought a PHP script on CodeCanyon from a well reviewed user and a 5-star script and installed it on my own server with the intention of modifying it for my own use (complies with the license). ...
user avatar
  • 13
0 votes
1 answer
67 views

Sail up for a cloned laravel project does not work

I have Windows 10, WSL2, and Docker. I've cloned a repository from GitHub, and when I try to sail up, I get this message: /usr/bin/env: ‘sh\r’: No such file or directory. The following is from the ...
user avatar
  • 1
0 votes
1 answer
79 views

Why is my Laravel App having 3+ seconds TTFB in Production?

I've looked around but can't find a definitive answer on if things like Images affect TTFB which would be my best guess as to why my site is taking so long to load in production. After the page is ...
user avatar
0 votes
0 answers
19 views

Ubuntu SFTP "fatal: bad ownership or modes for chroot directory component"

I know this has been answered before, but all the answers make absolutely no sense in my use-case to be honest. I'm hosting a Laravel application on my Ubuntu server, and I've created a separate user ...
user avatar
  • 101
-1 votes
1 answer
217 views

error The Process class relies on proc_open, which is not available on your PHP installation

after change server and setup centos with cpanel lumen cron job not worked and every minutes add this error to lumen log: The Process class relies on proc_open, which is not available on your PHP ...
user avatar
0 votes
0 answers
22 views

Two NGINX Sites, two or more different code bases

What I'm trying to do is enable a secondary site (and code) off a main site (different code) on the same nginx deployment and domain. Main Site: Works as expected Main example.com Location Site 1: ...
user avatar
0 votes
0 answers
33 views

Nginx Server Block Always Prefix URL with String

In nginx server block I need to prefix url with country code always. Example if request comes with example.com, I need it to redirect it to example.com/au Then I have a alias to handle /au location. ...
user avatar
  • 1
-1 votes
1 answer
118 views

Nginx: proxy_pass path of domain to different web server

We plan to upgrade our web application from php native based application to PHP Framework based (Laravel) to enhance application security and performance. My task is to split traffic where every ...
user avatar
0 votes
0 answers
71 views

Laravel - ElasticBeanstalk - disable PHP files except /public/index.php

For security reasons, i am trying to disable all PHP files except /public/index.php. I have this nginx configuration, which is unfortunately not working : root /var/www/html/public; add_header X-...
user avatar
0 votes
2 answers
322 views

nginx large file upload limit

I am using Laravel Forge to manage my server and I had a problem with uploading large files with livewire. after 100 seconds uploadng fails and shows this error: net::ERR_HTTP2_PING_FAILED and ...
user avatar
0 votes
1 answer
97 views

Apache server is very slow for high traffic

I am using Apache 2 on AWS ec2 instance. I have application load balancer with 2 instances/servers attached to it. Each instance type is m5.8XLarge. My application is developed in Laravel, I am using ...
user avatar
0 votes
1 answer
112 views

My laravel .env file is downloadable via ip access! How to solve this on litespeed server?

hello I am creating a new laravel project with Openlitespeed server and I saw a glaring security issue. I've added the following rule to the .htaccess of the site root and it works fine by stopping ...
user avatar
0 votes
0 answers
138 views

Convert .htaccess rules to nginx format

I bought a ready-made Laravel script that was developed to run on Apache server, and the developer doesn't support to Nginx rewrite rules. Can someone help me? When I try to access the system on my ...
user avatar
0 votes
1 answer
69 views

nginx setup with conditional reverse proxy for some routes

I have a laravel server fronting a wordpress hosted on another server. The laravel server is receiving all traffic. I would like to direct specific routes to the local index.php (laravel) and all ...
user avatar
1 vote
0 answers
32 views

Increase PHP's upload_max_filesize in Apache

I have a Laravel app and I need to increase PHP's upload_max_filesize, but rather than do this for the entire app I wanted to apply it to a specific route/location. I am running Apache 2.4. In the ...
user avatar
  • 345
0 votes
0 answers
338 views

Docker - Bad Gateway when attempting to proxy nginx container to laravel php-fpm container

I'm trying to work out whats causing a 502. I have a simple application with two containers: web - running nginx, with a proxy to app: fastcgi_pass app:9000; app - running php-fpm. I'm not sure how I ...
user avatar
  • 101
0 votes
0 answers
87 views

How to fix errors when deploying akaunting to kubernetes cluster?

I try to deploy the web-app akaunting to a k8s cluster. Therefore, I converted the given (and working!) docker-compose script using kompose to k8s yaml files. When I try to apply these files (given ...
user avatar
  • 101
2 votes
1 answer
160 views

MYSQL is at 197% CPU usage ~ not allowing site to run

Spec: 8 GB memory / 4 vCPUs / 25 GB ssd Ubuntu 20.04 My website got hit with a DDoS recently and had this continuous high CPU usage error for 4 days and the site will not load up, I take a look using ...
user avatar
1 vote
0 answers
364 views

nginx 502 error for api call from application but working in postman and curl request

Environment: Laravel Version: 5.8.29 PHP Version $ php --version: PHP 7.2.24 (cli) NGINX Version $ nginx -v: nginx version: nginx/1.14.0 (Ubuntu) Problem Statement: Everything works fine, except for ...
user avatar
  • 111
0 votes
0 answers
42 views

How do you set up MySQL master-master replication for my digitalocean host and my laragon localhost?

I created a Laravel web application on my computer using Laragon, then hosted it on Digital Ocean and it works fine. Now, I am supposed to implement a Mysql master-to-master replication for my "...
user avatar
  • 1
0 votes
0 answers
42 views

storage:link not working properly while deploying laravel application to elastic beanstalk via codecommit

I am using Elastic Beanstalk environment to host my Laravel application. And I'm using CodeCommit as codesource when I'm deploying. Lastly, I'm using an init.config file inside .ebextensions folder to ...
user avatar
  • 101
0 votes
0 answers
38 views

Do I have to set up S3 for Laravel application on Elastic Beanstalk?

I have set up an Elastic Beanstalk environment on top of PHP platform and deployed Laravel code. I have realized that each time I deploy code to EB environment, the storage becomes empty (naturally ...
user avatar
  • 101
0 votes
1 answer
828 views

Email sending in laravel8, fails when using application specific password for gmail

I have used application-specific password for my Gmail account to send emails since other way does not work in my server environment though it works in local. my configuration is as follows ...
user avatar
  • 101
0 votes
0 answers
15 views

Deployer task with $options?

I'm using deployer (https://deployer.org/docs/6.x/tasks) to deploy my laravel application and it works like a charm. However, I want to make it more pretty. Why? Because I have background NodeJS ...
user avatar
  • 984
0 votes
0 answers
332 views

PhpStorm Laravel trying to connect to MySQL database throws java.net.ConnectException: Connection refused: connect

I am trying to set up a laravel project in phpstorm but fail at connecting to a mysql database. These are the steps I've taken so far: download and install composer, vagrant and virtualbox create ...
user avatar
0 votes
0 answers
145 views

how to set up websocket server along with two laravel backend and a spa

i have two laravel backend setup on different routes. and there is a spa on root. now i want to set a websocket server along with it. here is my website.conf ############## block-4 : multiple ...
user avatar
1 vote
1 answer
290 views

Laravel route (voyager and others) shows 404

I Use Apache 2.4.41, on WSL2/Ubuntu. There I have a laravel project, with Voyager installed. I also use a virtualhost(vh) for it. Accessing the App url http://myapp works. However - The Voyager app at ...
user avatar
  • 139
0 votes
0 answers
60 views

How do I run Laravel App with mysql using only Dockerfile?

I want to be able to enable my visitors to upload their laravel app to my server, and I want to run each app in a docker container. And I also want them to be able to have database access. My current ...
user avatar
0 votes
0 answers
473 views

“No input file specified” - Laravel project on CentOS

I've have VM with CentOS installed where I want to host Laravel project. I've put it on /var/www/html/project But when I access via URL of this project like 127.0.0.1/project I get tree of document. ...
user avatar
0 votes
1 answer
73 views

How to host laravel on VM Instance

I want to deploy laravel on VM Instance, I am following this link, when I completed upto setting up of database, I could not see my applications landing page, it instead shows Apache2 Debian Default ...
user avatar
0 votes
0 answers
19 views

Give permission to Larvel web app in Centos 7 to add/delete/edit files

I build a new web interface by Larvel 8 for nagios core in Centos 7, everything is OK I can open the interface in browser, except one thing it s add/delete/edit files in nagios repositry cuz I want to ...
user avatar
-1 votes
1 answer
103 views

Adjust server configuration [PHP, Laravel, mysql, nginx] for serve great number of user [duplicate]

I have a Laravel PHP webapp that shows analytics data in Angular frontend to users. User can only show content, plots and tables. I have written 3 laravel commands that hourly download and store data ...
user avatar
0 votes
1 answer
876 views

Dockerized Laravel application with volume on AWS Fargate issue

this is my scenario, I have a Laravel 8 application that I'm trying to deploy using AWS ECS through AWS Fargate. This is the useful part of my dockerfile: ### ... Previous composer and npm stages ...
user avatar
  • 101
0 votes
2 answers
711 views

Apache2 react app + laravel REST api on same domain

So my goal is I have my domain named example.com conf for example.com <VirtualHost *:80> ServerName example.com ServerAlias www.example.com ServerAdmin webmaster@...
user avatar
0 votes
0 answers
133 views

Using setuid in a Shell Script on Ubuntu 20.04

So I have a Laravel PHP app on Nginx on Ubuntu 20.04. I have a simple deploy.sh script that will: Put Laravel into maintenance mode, so it returns a 503 error if anyone visits the site Pulls down the ...
user avatar
0 votes
1 answer
1k views

Proxy Forwarding not woking on Nginx, Laravel, Elastic Load Balancer

I have an AWS Elastic Load Balancer that receives https requests for the domain (bunny.misite.dev), the requests are sent to the server Nginx via http and the Laravel App answers the requests. The ...
user avatar
1 vote
1 answer
204 views

Why I got errors running redis in laravel app?

I need to run laravel 5 app on my local Kubuntu 18 and I need to run redis server for this app I installed and in file /etc/redis/redis.conf I uncommented line : requirepass foobared in .env I ...
user avatar
  • 111
0 votes
1 answer
157 views

Connect to production database on vps from local dev environment

I am using a Ubuntu 20.04.1 LTS VPS with a deployed Laravel Framework 6.20.16 application. I am currently connecting to my mysql database via ssh using dbeaver, using simply root@IP_Address and my ...
user avatar
  • 117
0 votes
1 answer
26 views

Laravel mass image serve

We have a Laravel application and imagine the following: We have a slider with a play button that will start showing images on a slideshow. These images arrived from web cameras so obviously there are ...
user avatar
  • 984
2 votes
0 answers
99 views

How to configure multiple workers for laravel queue with systemd [duplicate]

I am running queue for my laravel app using systemd. Here's my service file [Unit] Description=Mosharaf isdp queue [Service] User=nginx Group=nginx Type=simple Restart=always Nice=10 WorkingDirectory=...
user avatar
  • 121
2 votes
0 answers
596 views

Setting up Lavarel with Podman, but the php user can't write to my mounted directory

I've set up a laravel project on Fedora using Podman. For this I wrote a small script that attempts to replace the build process usually done by sail. #!/usr/bin/env bash if [ -f ./.env ]; then # ...
user avatar
  • 121
0 votes
1 answer
206 views

After migrated from AWS to Azure, API response became very slow

Our mobile APIs were hosted in AWS EC2 instance and it was working very fast, say 300 ms. Recently we migrated to Azure VM and after that, all the API responses are very slow, say 2 to 8 secs. The ...
user avatar
0 votes
0 answers
26 views

Passthru works in development server but not in apache

I'm trying to execute a Python script from a Laravel project in Ubuntu 20.04 using this code: passthru('/usr/bin/python3 /var/www/birra/public/setauto.py DB_D1 false'); $output = ob_get_clean(); ...
user avatar
  • 101
1 vote
0 answers
772 views

creating a local nginx subdomain for laravel

I currently have a working reverse proxy to a local domain: https://domain.test with an entry in /etc/hosts 127.0.0.1 domain.test https://domain.test goes to an spa website while https://domain.test/...
user avatar
  • 11
1 vote
0 answers
167 views

Apache 502 bad gateway response when using AWS Application Load Balancer and Centos 7

I am new in Linux/centos, I configured a Laravel application in my AWS EC2 Instance (Centos 7),The application was working fine but after that I configured a Application Load Balancer to use path ...
user avatar
  • 11
0 votes
1 answer
2k views

Can't 'php artisan migrate' inside docker

Trying to run 'php artisan migrate' in docker returned following error Illuminate\Database\QueryException could not find driver (SQL: select * from information_schema.tables where table_schema = ...
user avatar
  • 1
0 votes
0 answers
28 views

Server architecture for high traffic system [duplicate]

we are working on the online exam system, which supposed to have much traffic at the same times, more than 15000 students will log in and make an exam at the same time, we are developing this system ...
user avatar
1 vote
0 answers
358 views

Mysql in Nginx takes over 100% CPU

I have a Laravel application running on my Ubuntu 18.04 server and MySql 5.7. Sometimes, it is very slow. I have checked with "top" command and this is the result: Some times %cpu raises ...
user avatar