263 questions
1
vote
1
answer
77
views
ERR_TOO_MANY_REDIRECTS when self-hosting Plausible behind NginX via Laravel Forge
I have a .app domain which I started hosting via Laravel Forge & Hetzner due to my main domain being a php-based app. Now, I want to host the self-hostable version of Plausible, plausible-ce so I'...
1
vote
0
answers
31
views
Tomcat Connection pool to Forge MySQL
My Database happens to be hosted on https://forge.laravel.com/ They appear to be using MySQL8 if that makes a difference. I'm writing a Tomcat application from which I would like to connect to this ...
1
vote
0
answers
38
views
CSS not working my Codeigniter app that is deployed on laravel forge
How can I troubleshoot and resolve the issue where the CSS is not working after deploying my CodeIgniter app on Laravel Forge? What seems to be the problem? Please tell me what you need to see to ...
-1
votes
2
answers
910
views
504 Gateway Timed Out on Laravel Forge with PHP-FPM [closed]
I've had a 504 Gateway Timed Out error for two days on my website hosted on Laravel Forge.
After a lot of investigation and testing, I've deduced that only certain models are causing the problem (such ...
0
votes
1
answer
273
views
Nginx 403 error on Akeneo 7 CE when uploading media
I have a weird problem with Akeneo CE 7.0.41 and uploading media to server (product images, avatars, pdf's... etc.)
When uploading any media file, I get 403 forbidden error from Nginx. The POST ...
1
vote
1
answer
311
views
Laravel Forge Does Not Run Scheduled Command
Something is wrong with command running on Laravel Forge via their scheduler.
I have plenty of commands there already and all of hthem are running just fine. Scheduler setup is generic, it calls ...
0
votes
1
answer
51
views
Customize view server error to 500 or 404
Is it possible to customize the views of the various errors such as server error 500 or 404 etc. in Laravel Forge? If so, how? Where are these files located?
0
votes
1
answer
112
views
How to deploy metabase with Laravel Forge
I installed Metabase as a service on the server and I have it booted but I have a problem in the Nginx configuration. I am using Laravel Forge for the project and I need to change the Nginx ...
2
votes
1
answer
960
views
Browsershot module not found browser.js
I've been using spatie/browsershot for some time without issue. At some point recently I must've updated the packages or something changed and now it's not working once deployed to Forge. I've ...
-1
votes
1
answer
920
views
Laravel Forge - "killed" - npm verb exit 137 - dying on Laravel Mix
I recently updated the versions of Node and NPM on my server on Forge from Node v14.19.0 to v18.17.1 and NPM v.6.14.16 to v9.6.7. I have also updated my dependencies. Not sure if this is relevant, but ...
-1
votes
1
answer
161
views
Laravel Forge Deploy error: "http urls require a HttpDownloader instance to be passed"
I'm trying to deploy a laravel application using Laravel Forge and am getting this in my logs when I try to deploy.
Thu Jul 20 22:14:23 UTC 2023
From github.com:jas0123uah/noted_laravel
* branch ...
0
votes
0
answers
142
views
Laravel Forge / Linode / nginx redirects POST requests to homepage
I'm using Laravel Forge with Akamai/Linode (Ubuntu with nginx) to deploy an app built with Laravel.
On my local development environment (which runs Apache), all is good and things run smoothly.
When ...
0
votes
2
answers
718
views
Laravel Forge server not accepting AWS ELB Health Check request
Our app was running on a single server on Laravel Forge, but we had to recently add another one, so we did it and put both of them together on a new AWS ELB, we preferred that over Forge's ELB ...
0
votes
0
answers
706
views
Composer hangs at @php artisan package:discover --ansi
I recently did a deploy to Laravel forge and my power went out. When it came back, the deploy failed, and is just hanging on
@php artisan package:discover --ansi
and it just exist with the following ...
0
votes
1
answer
976
views
AWS Load Balancer Health Check Path for Laravel App
I have 2 AWS EC2 instances sitting behind an Application Load Balancer. On each instance I have multiple multi-tenant Laravel apps deployed (app1.com, app2.com). As they are multi-tenant they'll have ...
1
vote
2
answers
3k
views
How do I update node in laravel forge?
I am trying to update node to version 18 from version 14 as my old version is no longer supported. I have tried running npm install -g node but it fails to execute. I can't install n either to make ...
0
votes
0
answers
221
views
Configure nginx for open the WP blog on subfolder
I have a project made using laravel. Site is multi-language. First segment of URL is language code but for default language I don't want to add language code.
Examples: mydomain.com/something and ...
1
vote
2
answers
1k
views
Can't connect to DB with Tableplus/Laravel forge - wrong username or password
I have a Laravel project that I manage with Laravel forge.
The website is provisioned, the database is correctely working.
I can even fully access the DB trough commands on Git bash by doing ssh forge@...
1
vote
0
answers
258
views
Why remote image url with HTTP is forced to use HTTPS schema?
Some Info
I have a Laravel app setup on AWS server using Laravel Forge with nginx web server (this information may be irrelevant).
The goal
On one of the pages, I'm trying to serve an image which is ...
0
votes
0
answers
178
views
Laravel Forge store files/images with load balancer
I have a question: I am looking to deploy my app to Laravel Forge. Now my app does save images locally on the server, but when I scale my app and add load balancers, I think saving images on different ...
2
votes
0
answers
498
views
Vite on Laravel Forge running npm run dev
We would like to create a dev environment in laravel forge. The site is working correctly, but when we run npm run dev it won't load CSS and assets.
How can we configure Nginx on laravel forge and ...
0
votes
0
answers
342
views
Unable to login to AWS EC2 instance
My AWS EC2 instance (20.04 LTS) created using laravel suddenly got down and I am unable to login with ssh. I stop the instance and started again several times, but still it is showing the error ...
0
votes
0
answers
168
views
Forge Laravel ssh2
I'm hosting a wordpress site on forge laravel. In one of my files I want to use ssh2_connect. But the ssh2 php module isn't installed. The site is running on PHP 8.0.
I've tried to install it through ...
1
vote
2
answers
1k
views
How to change php version to 8 in Laravel Forge server? [closed]
Ubuntu 18.04. Nginx.
The server used to be hosted by Laravel Forge. Now - no, in free swimming. There were no changes on the server - everything that was created and configured by Forge remained.
I ...
0
votes
1
answer
198
views
Laravel Error 500 on a parametric route when in production
I built a small blog where a editor can create articles and post it and users can read it without login.
The issue that I'm having is the following :
In production server, if a user try to access a ...
0
votes
1
answer
1k
views
EC2 Instance cannot connect to github using SSH
I'm trying to deploy a web with Laravel Forge and AWS. I created an EC2 instance using Laravel Forge control panel. I created a security group for this instance.
Outbund rules
Inound rules v1
Inbound ...
1
vote
0
answers
525
views
Laravel Forge permissions issue
I'm having issues with file permissions on my forge site. Files that are uploaded can't be downloaded again. I ran sudo chmod g+rwxs storage and then it worked, but later stopped working. My ...
0
votes
0
answers
682
views
Pusher Invalid key in subscription auth data - sending to incorrect environment?
I'll preface this by saying my understanding of apps in pusher is that they're like environments, and the keys/secrets separate the environments, so there shouldn't be a case where things cross over.
...
0
votes
0
answers
276
views
Configuring RDS instance for EC2 and local access
I'm really struggling to configure my RDS instance to be accessible from my EC2 instance (created with Laravel Forge), as well as being able to access it locally from my SQL IDE.
I'd like the RDS ...
0
votes
1
answer
358
views
How to force exit an vue cli thread on completion in a deploy script (e.g. ctrl c equivelant)
I'm using Laravel Forge to run a simple deploy script. npm run build calls 'vue-cli-service build'.
Script below. The script 'ends' on
DONE Build complete. The dist directory is ready to be ...
0
votes
0
answers
204
views
Base table or view not found in PermissionServiceProvider class even though table already exists. (Laravel 6)
Yesterday I switch my log level from 'critical' to 'error' in production server (laravel forge) and I received the below error continuously around every 5 to 10 seconds:
PDOException: SQLSTATE[42S02]:...
0
votes
2
answers
3k
views
Stancl\Tenancy\Exceptions\NotASubdomainException Hostname DOMAIN.COM does not include a subdomain
I am using Laravel Forge with AWS EC2 Instance to build a CI/CD Pipeline for a SAAS Laravel project.
Error Attachment: https://i.sstatic.net/hsMdK.png
The configurations are fine but when it comes to ...
0
votes
1
answer
218
views
NGNIX redirect from subdomain to different domain (Forge)
I have a subdomain that I need to redirect to a completely different domain. This subdomain was set up as a CNAME that pointed to Shopify, now it's being removed completely.
Lets say the subdomain is ...
-1
votes
1
answer
2k
views
Not able to generate a Let's Encrypt Certificat
I am using Laravel Forge to manage my servers and websites. So generating SSL certificates via Let's Encrypt is also done vie Forge. Somehow one of my domains throws me an error (see attached).
This ...
0
votes
2
answers
7k
views
How to downgrade PHP version (Your PHP version does not satisfy that requirement)?
After running sudo apt-get update && sudo apt-get dist-upgrade on my Laravel app, I'm getting this error on the next deployment:
- This package requires php ^7.1.3 but your PHP version (8.1.6) ...
3
votes
1
answer
857
views
Laravel Forge: How to add multiple deploy keys to one Github repository
I have one server on my Forge account with two sites. One is a production site while the other is a staging website. For example:
domain.com
test.domain.com
Both rely on the same Github repository, ...
0
votes
2
answers
1k
views
Improve response time when database is on a dedicated server
Overview
I have a Laravel 9 application which is hosted with Digital Ocean. I use Laravel Forge to handle provisioning of the servers, management, etc. I've created two separate servers for my ...
0
votes
0
answers
362
views
laravel fortify sanctum SPA issues on forge
My setup is working properly locally but apparently I'm getting a 401 issue on laravel forge for my laravel-fortify-sanctum
basically I use laravel fortify for authentication then sanctum to get a ...
-1
votes
1
answer
335
views
Laravel scheduler not running artisan command
I wrote a custom artisan command ("get App's Metrics") and added it to the Kernel on my Forge-hosted site to used Laravel's awesome scheduler feature to run it every night.
class Kernel ...
1
vote
0
answers
294
views
How can I deploy Laravel and Wordpress together on Laravel Forge?
We are trying hard to deploy Laravel website with Wordpress on Laravel Forge but are unable to do so.
Say, if our domain is example.com, the blog should be example.com/blog. However, what we currently ...
0
votes
1
answer
2k
views
Path confusion with Spatie's Laravel Media Library on Laravel Forge
I am using Spatie's Laravel Media Library (v7) to create a pictures gallery. Locally (using Valet), the path to the file is OK. "/media/45/conversions/image-thumb.jpg" The equivalent path in ...
2
votes
4
answers
4k
views
Getting GET error while sending POST request to the POST route in Laravel API
Locally project runs fine. On the server getting this error while sending POST request to the POST route in Laravel 9 API.
"message": "The GET method is not supported for this route. ...
0
votes
2
answers
2k
views
Laravel Vue Project gets blank white page on initial run only on production, solved with hard refresh. How can I prevent this?
I'm building a web app using Laravel 8.6, Vue 3.2, and hosting on AWS with Laravel Forge. Everything works fine locally and on staging. However, when I deploy the app to production, some people ...
0
votes
2
answers
220
views
Trying to change how images are requested from Cloudinary via Nginx
We have a lot of images on Cloudinary that we are requesting using original URLs with the <img> tag, and we are trying to find a way to request these images with paramters, without changing any ...
0
votes
1
answer
70
views
Periodically Refresh a Database in Laravel for Dev/Staging Server
I have a system built in Laravel 8, hosted by DigitalOcean and deployed using GitLab and Forge. I have three branches, dev/staging/master that are linked to various domains, separately controlled by ...
1
vote
0
answers
545
views
Laravel - 403 Error with Load Balancer and Email verification
We send a verification link via the Laravel email verification.
A 403 error occurred frequently when the user clicked on the verification link. But the error did not always occur, for some users the ...
0
votes
1
answer
947
views
How do you use basic_auth for all but one route using Laravel Forge
I am using the in-built HTTP basic access authentication for Laravel Forge.
I am currently using basic_auth for all routes.
I would like to exclude one route (basic_auth off).
I tried to customise the ...
3
votes
0
answers
3k
views
Redirect all requests for one domain to another domain while maintaining all other parts of the url
I have an existing site at foo.mysite.com. I need to move it to bar.mysite.com such that all urls are permanently redirected to their equivalent e.g.
foo.mysite.com => bar.mysite.com
foo.mysite.com/...
1
vote
1
answer
961
views
Removing Basic Auth for one uri
I have developed a Laravel app, deployed a staging version via Laravel Forge and have put in place Basic Auth for all locations which works fine. I need to remove Basic Auth from one location but ...
0
votes
1
answer
618
views
Forge didn't start after restart
Am working with laravel forge,
today am just restarted forge from admin panel like in image
laravel forge
but after restart, the server stopped and can't open it now
server giving me disconnected ...