Questions tagged [laravel]
The laravel tag has no usage guidance.
102
questions
0
votes
0
answers
23
views
Why can't I get supervisor recognize new .conf files in Laravel Sail/Docker installation?
so I've got a scout-worker.conf in /etc/supervisor/conf.d It contains this code:
[program:scout-worker]
process_name=%(program_name)s_%(process_num)02d
command=docker exec cercasemi-laravel.test-1 php ...
0
votes
0
answers
28
views
Laravel Horizon not displaying a specific job at all?
So I have a job running and I can see it is running but only in the horizons log file.
2024-08-15 14:58:08 App\Jobs\Cache\UpdateDocument .................. RUNNING
2024-08-15 14:58:14 App\Jobs\Cache\...
0
votes
0
answers
58
views
nginx/docker - failed (111: Connection refused) while connecting to upstream
I am trying to deploy a dockerized Laravel application via Portainer. I want the website to be accessible via port 8080
This is my docker-compose.yml file:
version: '3.8'
services:
laravel:
...
0
votes
0
answers
13
views
azure devops pipeline php laravel yaml PDOException: SQLSTATE[HY000] [2002] Connection refused
PDOException: SQLSTATE[HY000] [2002] Connection refused with 15 error like ,I am already hosting my website on Azure and it is working fine. However, I need to add one CID pipeline using Azure Devops ...
1
vote
0
answers
114
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
75
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 ...
0
votes
0
answers
120
views
NGINX proxy pass not working with Laravel application. No routes other than / can be accessed from proxy domain. Gets a 404. How to solve?
I have a Laravel 7 application running on a separate server, let's assume it is SERVER A with domain serverA.com. The application is behind NGINX.
I have another server, SERVER B. I want to proxy pass ...
0
votes
0
answers
35
views
Laravel Form Set Default Selection
@section('page-action')
{{ Form::select('item_type', $product_type, null, ['id' => 'item_type', 'class' => 'form-control select ', 'required' => 'required', 'placeholder' => 'Type de ...
1
vote
1
answer
2k
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
905
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
109
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
327
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
406
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
195
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
319
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 ...
0
votes
0
answers
131
views
How do i run assets (npm run production) on an elastic beanstalk laravel application?
I have a laravel application, running on an AWS eb instance (elastic beanstalk).I have uploded the code, and connected a database and everything works fine without any errors. But i need to compile ...
1
vote
1
answer
87
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
67
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
262
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
172
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
177
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
4k
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
299
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
14k
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
779
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
727
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
867
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
324
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
521
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
1k
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 ...
0
votes
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
21k
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
283
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
3k
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
933
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
386
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
119
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
210
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
...
0
votes
0
answers
677
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
550
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 ...