# How to Fix 502 Error: PHP-FPM Socket Issues in PHP/Laravel Forge

DevFeed: [How to Fix 502 Error: PHP-FPM Socket Issues in PHP/Laravel Forge](<https://devfeed.tech/articles/how-to-fix-502-error-php-fpm-socket-issues-in-php-laravel-forge-3716.md>)

Original publisher: [Read original article](<https://laravel.com/blog/how-to-fix-502-error-php-fpm-socket-issues-in-php-laravel-forge>)

Author: Laravel Team

Published: 2025-10-29T19:04:23Z

Content type: tutorial

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [nginx](<https://devfeed.tech/topics/nginx.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [servers](<https://devfeed.tech/topics/servers.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [errors](<https://devfeed.tech/tags/errors.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [http](<https://devfeed.tech/tags/http.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [php](<https://devfeed.tech/tags/php.md>), [server](<https://devfeed.tech/tags/server.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

This tutorial explains how missing or inaccessible PHP-FPM Unix sockets can cause 502 Bad Gateway errors in Nginx when serving PHP or Laravel applications. It recommends restarting PHP-FPM through Laravel Forge or reloading it over SSH, and describes related causes such as service failures, configuration errors, and exhausted server resources.

## Source excerpt

Learn how missing or broken PHP-FPM sockets cause 502 Bad Gateway issues in Nginx, and how to restart PHP-FPM to resolve them.