how to fix aws lightsail ubuntu Internal Server Error?

Issue

AWS Lightsail suddenly shows error 500
After checking logs, there was an error AH10292: Invalid proxy UDS filename (proxy:unix:///var/www/vhosts/system/website.net/php-fpm.sock|fcgi://127.0.0.1:9000/var/www/vhosts/website.net/httpdocs/index.php), referer: https://website.net/
All of my websites on lightsail are down, please help.

Solution

Plesk has a similar report, too:

Cause

The issue is related to the latest Apache update, which changed the approach in handling UDS URIs used to proxy connections from Apache to PHP-FPM.

Theirs (which must not mean theirs) solution is to downgrade Apache 2 and put it on hold.

Ubunutu 20.04:

# export version="2.4.41-4ubuntu3"; \
  apt-get install apache2=$version apache2-utils="$version" \
    apache2-data=$version apache2-bin="$version"; \
  apt-mark hold apache2

Answered By – hakre

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published