Questions tagged [laravel]
The laravel tag has no summary.
102 questions
1 vote
2 answers
439 views
How can I fix PHP package conflicts when I using multiple PHP versions?
I am running two versions of PHP 7.4 and 8.4 on an Almalinux server and I'm missing a php function posix_getppid (in Laravel/Horizon). I've searched and it seems I'm missing a PHP extension/module. I'...
0 votes
0 answers
29 views
Azure MultiContainer WebApp deployment issue
Background: I am trying to deploy a multi-container web app using docker-compose. Docker compose file is shared below. backoffice and frontoffice (laravel) images are being pulled from ACR. Rest 2 ...
0 votes
1 answer
57 views
Nginx subpath routing issue
I'm having an issue with the Nginx subpath not working correctly. Currently, I'm using docker to run 2 Laravel projects in separate directories (v1 and v2). The list of containers is as follows: ...
0 votes
0 answers
78 views
Permission denied using Apache userdir module and Laravel or Wordpress
I have a problem that I have been looking for a solution for for a long time and I still haven't found. I use Apache with the userdir module and somehow isolate each site/application in its respective ...
0 votes
0 answers
39 views
Having difficulty switching servers in AWS load balancer target group for Laravel 5.5 and Vue 2 application
I have a legacy Laravel 5.5 and Vue 2 application hosted on an AWS load balancer with a target group containing three fairly old Ubuntu 20.04 servers. Laravel is configured to store session data in ...
0 votes
1 answer
2k views
Nginx upstream timed out (110: Unknown error)
I own a game server (counter strike 2) in the middle east . I'm trying to set up a web panel for it which is hosted in Europe on an ubuntu 22 VPS . This website has a tool that allows remote commands ...
0 votes
0 answers
47 views
Memory consumption anomaly - Digital ocean and Laravel
I have a droplet in digital ocean with 3 Laravel projects inside. So far so good, but a few weeks ago the memory consumption has a strange behavior: Slowly but steadily increases consumption and when ...
1 vote
0 answers
338 views
How can I make reverse proxy for websocket requests on apache
I have a website written on Laravel with Reverb for websockets. Everything works except websockets. They are sent from the browser to the server in the form wss://mydomain.com/app (which throw an ...
0 votes
0 answers
247 views
Laravel App Working on HTTP but Not on HTTPS (403 Error)
My Laravel application functions properly with HTTP URL but having an issue with HTTPS, displaying the error message Failed to load resource: the server responded with a status of 403 () kindly review ...
1 vote
1 answer
4k views
How to successfull configure nginx for laravel reverb websocket?
Triying to setup ssl for laravel reverb using nginx on ubuntu Laravel reverb docs /etc/supervisor/conf.d/websockets.conf [program:websockets-l11] command=/usr/bin/php /var/www/l11/artisan reverb:start ...
0 votes
1 answer
2k views
NGINX 403 ACCESS DENIED
I have this problem in nginx, it is a Laravel application. but it is in a user's folder /home/user/projects, I already tried with 777 nginx owner of the folders but it still shows the error FastCGI ...
0 votes
1 answer
183 views
Why my AWS T2.Medium EC2 CPU utilization is at 27% constant, but on running top command shows 100%?
I am running my PHP Laravel application in AWS EC2 instance (T2.Medium, 2 core) through Laravel Forge. For 5 months continuously I am seeing constant CPU utilization of 27% in the AWS console graph. ...
0 votes
1 answer
506 views
Hosting Laravel Filament apache server responded with a MIME type of ""
I been trying to host my laravel filament project into my server using apache but upon deployment i met 2 problem i never seen before pic related Failed to load module script: Expected a JavaScript ...
0 votes
1 answer
608 views
Laravel app routes not working when using domain name (fine with IP address) on AWS Lightsail
I am running a Laravel 10.x application on an Amazon Lightsail server here - 18.134.48.92 Currently when browsing to http://18.134.48.92/login I am correctly shown the login page (I am using Laravel ...
0 votes
0 answers
294 views
Issue with Laravel ECS Deployment: Access denied for user 'forge'@'10.0.20.124'
I am facing an issue with my Laravel application deployment on AWS ECS. The deployment process involves Jenkins, AWS ECR, and ECS. The new task is created, but there's an "Access Denied" ...
0 votes
0 answers
456 views
Permission issues in docker + laravel
I've been having this problem for a week and I don't know how to solve it. I started a small laravel project with Docker and Docker's mysql doesn't work at all. It keeps crashing by itself, when ...
1 vote
1 answer
117 views
How to track down company wide connection issues to a specific web location?
I've tried asking on StackOverflow without success so I hope I this community can help me track down this issue. We have a web app that many people in the company need to access. Occasionally the web ...
0 votes
0 answers
99 views
Configuring database alarms for and AWS RDS datbase
I'm using an AWS RDS MySQL 8.0db.t3.micro 100GB DB for an app and am trying to determine the best alarms to set (the Laravel application is served through Vapor and through their UI, you can receive ...
0 votes
0 answers
414 views
Laravel: Logging messages generated by "error_log(...)" to terminal, while running app in Apache server
The issue is this one: When I run a Laravel app from PHP server, that's it, with php artisan serve, I could see every message generated by "error_log(...)" printed in the terminal, like this:...
0 votes
1 answer
303 views
nginx config for SEO friendly Laravel setup
I wasn't able to find an immediate solution to the 3rd item, below, so once I'd worked it out, I thought it would be helpful to post my general config for Laravel in order to help others searching for ...
0 votes
0 answers
226 views
Laravel Crons on Elastic Beanstalk Linux AMI 2
I am running a Laravel app on Elastic Beanstalk Linux AMI 2. I am using the following config file in the .ebextensions folder to set up the cron. files: "/etc/cron.d/schedule_run": mode: &...
1 vote
1 answer
5k views
Nginx returning 404 on new installation
On Linux Mint 20.3 I had working setup for my local development of website: server { listen 80; listen [::]:80; server_name cbp.local; root /home/gacek/html/cbp/public; index ...
1 vote
0 answers
372 views
need nginx to be able to check directory outside of root directory
I have a Laravel app that works perfectly fine when running with php artisan serve but when trying to use nginx as the frontend I'm having all sorts of trouble getting this to work properly. I ...
1 vote
1 answer
19k views
How to install PHP Sodium on Ubuntu 22.04
I'm running a Google Cloud server running Ubuntu 22.04. It's a typical LAMP stack (PHP is version 8.1.2). Some of the websites on the server are using Laravel 8. I recently upgraded one of the ...
0 votes
1 answer
920 views
Redirect Base URL to Application Directory
I have an AWS server. I set up a Laravel project, and it's working fine. The project is under /var/www/MyProject, and when I go to myproject.com/public, I see the application (after entering my apache ...
0 votes
0 answers
903 views
Create ubuntu user with home folder located in www and restrict ssh access using ChrootDirectory to that folder
I posted this on stackoverflow and was told to post here: I am running a Ubuntu remote dev server, heavily restricted (due to compliance) environment which i previously had configured correctly for ...
1 vote
1 answer
977 views
Laravel Valet 502 Bad Gateway when using Eloquent in php8.0
I've got a Laravel 6 application that I'm serving in Valet, I've just upgraded to php8.0 and I'm getting a 502 Bad Gateway error. But curiously only on pages that are using the Eloquent database ...
0 votes
0 answers
385 views
Laravel page loads over 1s in production (while blazing fast locally on my dev macbook)
I've shipped my Laravel based platform to a production server but with little to no users online page loads are still above 1 second, around 1,5s. There's little to no data in the database. I've ...
0 votes
0 answers
606 views
Blocked loading mixed active content laravel script nginx ubuntu 20.04
This is my virtual host configuration server { listen 877; listen [::]:877; root /wbs/carpool/www/public/; index index.php index.html index.htm index.nginx-debian....
0 votes
1 answer
2k views
Windows Server: First request very slow, subsequent requests normal
I’m developing a Laravel website which is to be deployed to Windows Server 2019 (IIS) running SQL Server, hosted on a VPS with Plesk. I recently deployed the site to a password-protected testing ...
1 vote
1 answer
6k views
How to setup correct .htaccess for laravel app on subdomain?
I moved my Laravel application from the development localhost to an internet production subdomain. On localhost everything works. But when I move app to subdomain it seems .htaccess can not handle ...
0 votes
0 answers
3k views
nginx working fine in localhost but show 404 on server
i have a laravel based project that i have to host on digital ocean using docker. docker is working fine on localhost but shows 404 on server but phpmyadmin working fine on server as well which is ...
1 vote
2 answers
27k 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 ...
0 votes
0 answers
317 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 ...
0 votes
1 answer
2k 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 ...
0 votes
1 answer
2k 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 ...
-1 votes
1 answer
5k 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 ...
0 votes
1 answer
3k 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 ...
0 votes
2 answers
4k 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 ...
0 votes
1 answer
1k 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 ...
0 votes
1 answer
2k 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 ...
0 votes
0 answers
487 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 ...
0 votes
1 answer
1k 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 ...
1 vote
0 answers
131 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 ...
0 votes
0 answers
212 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 ...
2 votes
1 answer
1k 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 ...
1 vote
0 answers
3k 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 ...
0 votes
1 answer
2k 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 ...
1 vote
0 answers
736 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 ...
0 votes
0 answers
566 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 ...