Questions tagged [laravel]
The laravel tag has no usage guidance.
98
questions
0
votes
0
answers
20
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
46
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
37
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
32
views
adding vlv(virtual list view) extension to openLDAP (LDAP) Server
Im currently working with LDAPRecord library in a Laravel project. I want to use a pagination function but it's required having virtual list view (vlv) extension to my ldap server
, I dont quite know ...
0
votes
0
answers
92
views
Migrating Snipe-IT asset Management from Docker to K8s
I have been running Snipe-it app (a Laravel based asset management software) on my Docker environment since a year ago, now I want to migrate it to K8s with its existing data, to move the data of the ...
0
votes
0
answers
49
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: &...
0
votes
0
answers
75
views
Inertiajs php artisan start-ssr not running for two app on same server
I have two applications that I have deployed to Digital Ocean using Laravel Forge. Both is building using Laravel, Vue, Inertia, Tailwindcss Stack. (inertia 1.0) When I try to start daemon for ...
0
votes
0
answers
18
views
Moved app to Default Application Pool with ApplicationPoolIdentity and there are permission errors
Running a PHP 8.2 app.
I changed the app to use the Default Application Pool under the user ApplicationPoolIdentity instead of the previous Custom pool and custom account, but now I get:
The stream ...
0
votes
1
answer
53
views
GCP Cloud Build installation of composer fails because checksums don't match
The build of my Laravel 9 app is broken. During the deploy the build stage always fails because the installation of composer fails due to unmathing checksums.
Build logs:
=== PHP - Composer - Install (...
0
votes
0
answers
47
views
Does Laravel tend to be much more slower than Node JS?
Does Laravel tend to be much more slower than Node JS? Or is it just me that doesn't know that Laravel have certain limiter or anything when runs in local machine (even though using production ...
1
vote
1
answer
2k
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 ...
0
votes
0
answers
140
views
How to fix speed optimization of Laravel website?
I have developed a website in PHP Laravel. It is working fine but there is some core web vitals issues. I have tried to fix it but it has not done all. LCP, FCP INP (interaction to next paint) and ...
1
vote
0
answers
185
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 ...
0
votes
0
answers
82
views
How to use Laravel Forge when SSH is blocked
I'am trying to use Laravel Forge in a Ubuntu 22.04 Server with SSH is blocked. Laravel Forge is a server management software which requires SSH to connect and manage.
I found another similar service ...
0
votes
0
answers
133
views
second laravel site using apache on server is not being served
I have a working laravel staging site on a DO server which uses ubuntu 22.04 and php 8.1. I am now moving it to production. I decided I'd serve this from the same server so i created a copy of the ...
0
votes
1
answer
6k
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
0
answers
110
views
Laravel scope function for getting everyday data sum each day for a month or between 2 dates
How to get the scope function to get the sum of data of each day for a month or between 2 dates. I tried this but it did not work.
public function scopeEachDayInPeriod($query, array $dates){
$...
0
votes
1
answer
407
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
185
views
Adding another TLD to dnsmasq installed with Laravel Valet
I've got Laravel Valet set up on my Mac (Monterey 12.5.1) to run PHP based sites locally on the .test TLD. This all works as expected and everything is fine.
I'm trying to set up another fictional TLD ...
0
votes
0
answers
294
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 ...
0
votes
1
answer
532
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
101
views
Where would Caddy2 fit into our server (possibly AWS) architecture chain for enabling custom domains and subdomains?
I'm in the process of re-architecting our web application so that it's more scalable.
One of the requirements is to allow customers to point custom domains AND subdomains at our site, which our ...
0
votes
0
answers
311
views
Laravel App on Server takes high CPU
I have a larvel app that runs very smooth and quick on my localhost, but when I push it to my server and run the deployment environment there (same as on my localhost), sometimes the app is very slow ...
0
votes
0
answers
192
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
417
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
967
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
4k
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
2k
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
13k
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
236
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
1k
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
4k
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
2k
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
2k
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
693
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
1k
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
208
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
816
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
81
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
185
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
844
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
2k
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
608
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
462
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 ...
1
vote
1
answer
902
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 ...
0
votes
0
answers
1k
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. ...
0
votes
1
answer
114
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 ...
-1
votes
1
answer
202
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 ...