502 Bad Gateway nginx/1.17.10 Laravel - laravel

I'm getting a 502 Bad Gateway nginx/1.17.10 error when trying to visit a Laravel .test site with Valet. I'm having no issues with another Laravel app running on .test. I have tried reinstalling nginx, php, valet, and have tried using php versions 7.2 ,7.3 & 7.4 for valet. Any ideas?

For anyone still experiencing this issue:
Open your Homestead.yaml file
Add the following lines to the sites option:
php: YOUR_PHP_VERSION
type: apache
Run the command vagrant reload --provision

Related

Project Laravel 404 Not Found in nginx

When installing nginx to use it with my laravel project, I believe that the routes do not work, it indicates the following error: 404 Not Found when trying to enter: http://127.0.0.1/project/public/login.
nginx.conf

phpmyadmin 404 not found on vps

I'm trying to install phpmyadmin on vps. I did everything like here but when i was first installing phpmyadmin in configuration i cancel it (configurarion program with intsalling) now i can't get to work. I got 404 error when i'm going to /phpmyadmin
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04
apache and mysql works but phpmyadmin is not properly configured. Can I do something with that?

404 not found laravel 5.2 after publish on server

i got error 404 not found on laravel 5.2 after i deployed my project on ubuntu server 16.04
i gave permission to storage and too i created virtual host and its directory on public folder of my project
Not Found
The requested URL /login was not found on this server.
Apache/2.4.18 (Ubuntu) Server at www.xxx.com Port 80
the laravel home page show but nothing work like login and register
i got the answer
you should run this on server:
a2enmod rewrite
that worked perfectly! xD

Lumen not working out of the box

Just installed Lumen framework.
hit the link http://localhost/lumen/public/ in my browser and got this following error, anyone got any idea about it?
Traced it back to the app.php file in bootstrap folder.
if You want to access lumen project without "php artisan serve"
$app->run(); replace with
$request = Illuminate\Http\Request::capture();
$app->run($request);
from this path yourlumenproject/public/index.php
Open your terminal in the root folder run the following command php artisan serve.
Lumen development server started on http://localhost:8000/
if you want to serve your app in local development you can do this :
php -S localhost:8000 -t public/
and it will serve in localhost in port 8000. hope this help.
Note : I'm using Laravel Framework version Lumen (5.2.4) (Laravel Components 5.2.*)
At the moment Lumen only runs in the domain root.
(I've submitted a PR that fixes this but it has yet to be merged)
You have to create a Virtual Host on your local webserver and point the document root of that to the public directory. After that you can access your app with something like: http://lumen.dev.
Guide for Virtual Hosts with nginx
Guide for Virtual Hosts with Apache
A simple alternative to setting this up manually is Laravel Homestead. It is an official Vagrant box made for Laravel, that allows you to easily get your development environment up and running.

Starting error with laravel 4 : Whoops! There was an error

I was installing laravel 4 by following steps in the official website laravel.com
i downloaded the 4' version from github then i've running the command :
php composer.phar install
but when i try to start laravel by opening the path localhost/laravel/public
it show me this error
Can you help me?
thank you
Clear your cookies for 'localhost' and try again - this is likely picking up a session ID from a previous project. Even better would be to setup a Virtual Host so that you're not working from "localhost" but instead a domain like "mysite.dev".

Resources