Questions tagged [laravel]

99 questions
0
votes
0 answers

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: "000644" owner: root group: root content: | * * * * * root .…
ackerchez
  • 119
  • 5
0
votes
0 answers

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 starting SSR for both server... the port seems to…
shabxs
  • 1
0
votes
0 answers

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 or file C:\inepub...\logfile.log could not be…
pileup
  • 229
  • 2
  • 9
0
votes
0 answers

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 (google.php.composer-install@0.0.1) === DEBUG:…
0
votes
0 answers

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 environment on the .env) Let see this basic landing page…
0
votes
0 answers

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 TTFB (time to first byte). These core web vitals…
0
votes
0 answers

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 Serverpilot.io can connect and manage even though…
SSSK
  • 21
  • 3
0
votes
0 answers

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 staging site on a new folder (~/live/mysite.com) I…
0
votes
1 answer

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 websites to Laravel 9 and I received the following…
Adam
  • 3
  • 1
  • 3
0
votes
0 answers

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){ $period = CarbonPeriod::create($dates[0],…
babita
  • 1
0
votes
1 answer

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 username and password). However, when I go to…
0
votes
0 answers

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 (.6d) to point to a server on my LAN (say…
0
votes
0 answers

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 many devs a year ago but forgotten it. On this…
0
votes
1 answer

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 models, the DB query builder pages seem to run…
0
votes
0 answers

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 Laravel PHP application will work with to determine the…