Applicable to:
- Plesk Obsidian for Linux
Symptoms
-
Websites show the following error:
CONFIG_TEXT: AH10292: Invalid proxy UDS filename (proxy:unix:///var/www/vhosts/system/example.com/php-fpm.sock|fcgi://127.0.0.1:9000/var/www/vhosts/example.com/httpdocs/public/index.php)
CONFIG_TEXT: Internal Server Error
-
Apache has been updated to a new version recently:
Ubuntu 20.04:
# grep 'status installed' /var/log/dpkg.log | grep apache2:amd64
2021-09-27 12:46:57 status installed apache2:amd64 2.4.41-4ubuntu3.5Ubuntu 18.04:
# grep 'status installed' /var/log/dpkg.log | grep apache2:amd64
2021-09-28 06:25:55 status installed apache2:amd64 2.4.29-1ubuntu4.17
Cause
This is an Apache bug which arose with Ubuntu packages update and later fixed in the following versions:
- Apache for Ubuntu 20 version 2.4.41-4ubuntu3.6.
- Apache for Ubuntu 18 version 2.4.29-1ubuntu4.18.
Plesk uses Apache packages from OS repositories and does not control their version updates.
Resolution
Update Apache packages to fix the issue:
-
Go to Tools & Settings > Server Management > System Updates and click Recheck now.
-
Once updates are detected, click Update all.
The issue should be fixed, verify that websites are back online.
-
Connect to the server using SSH.
-
Execute below command:
# sudo apt-mark unhold apache2
-
Apply steps 2-3 from the resolution.
Comments
318 comments
Hey guys, if you have client's websites, dont use SSH if you dont have the knowledge to do so because one simple mistake can cause a lot of trouble in the future, intead for now, try my fix comented above as it will do all the work for you with the click of a few buttons which ofcourse you can revert back later.
https://support.plesk.com/hc/en-us/articles/4407366133906/comments/4407394374034
Just tryna give y'all a heads up just in case you have client websites, because trust me, it will save you both time and money other than using SSH and messing up everything.
My best suggestion for you is to wait until the fix is official from the Plesk team and then deploy it because at that time, they will have tested everything for us to make sure its stable.
Have fun :)
@Harsha K I did. But the command stopped an nothing happened. I switched Sites to FastCGI. This helped for the moment.
Hey TechTheBoy
Thanks so much for your reply...
Did you mean this menu bar?
https://www.dropbox.com/s/pev9hb9ay2yd8aj/Capture.PNG?dl=0
If so there is no DNS section inside it...
Fitz
@Fitz Could you send me a full screeshot of the page?
Blur any domains or anything sentisitive
Thomas Grippaudo
I tried but i still have "Abort".
Nipuna Maduranga
I tried your solution as well but doesn't work
@Fitz Its right above PHP settings in the place where you clicked PHP settings to change it
20 of our sites where down, we made a "quick-fix" by disabling Proxy mode:
https://www.screencast.com/t/mCqi8xM6
It worked on all websites.
@Alessio Pellegrini But for many it did :)
@Alessio Pellegrini Maybe you have changed some other settings beforehand
Thank you it works :)
Downgrading on 20.04 worked for me.
@Anton Maslov How long to get an official fix?
Sure TechTheBoy
https://www.dropbox.com/s/hluoo52lkr4r36m/Screenshot%202021-09-28%20at%2011-03-54%20Hosting%20Settings%20for%20seksme%20com%20-%20Plesk%20Obsidian%2018%200%2038.png?dl=0
Here goes..
Nipuna Maduranga
If you disable proxy mode all requests will be served by NGiNX. That means if your sites use .htaccess for redirects and other stuff, that will no longer work. It would be good to let people know this in advance.
And here is where i changed the PHP settings...
https://www.dropbox.com/s/x6n6kpxfvmeb3p0/Screenshot.png?dl=0
Just switched PHP support in Plesk (PHP version 7.4.23, run PHP as FastCGI application served by Apache) and it works in my wordpress site hosted in digital ocean.
I hope plesk releases a update to handle the situation.
Daniel Marques
I just tried you fix suggestion and it worked for me too... thanks a lot for this!
And also TechTheBoy
Thanks so much for trying to help me too!!
Fitz
What a relief!
thx
Hi...on my servers in some cases disapeared the possibility to change php from fpm to fastcgi from plesk... happens to anyone ?
@Jürgen Hörmann I've mentioned it earlier, https://support.plesk.com/hc/en-us/articles/4407366133906/comments/4407394722194
Which is why we cant access the site dashboard if Wordfence 2FA is enabled.
Thanks for the comment anyways :) It'll help others if they are searching for an answer on why they cant access any redirected requests.
Disabling Proxy mode will make NGINX handle all requests, this will only work if your PHP is also handled by NGINX. It also makes your sites ignore .htaccess files, so be careful with this. .htaccess file wil ONLY be parsed by Apache. You can replace the .htacces file by converting it to nginx directives.
Any incoming request is first handled by NGINX, you can choose to handle it there and then, or forward it to Apache. PHP can be handled by both NGINX and Apache. NGINX can act as a webserver, but also as a reverse proxy. This is what you configure in your screenshot.
The problem we face is in the communication between Apache and PHP-FPM.
These are the moving parts:
Requests that fail will follow this path:
What you did was cut out apache:
This works, but also kills any .htaccess functionality.
Picking PHP-FastCGI should also work, but will keep your .htaccess files in-tact
The best way for now is just to downgrade Apache and check this page again in a month to see what steps to take next. If you have no SSH client, there is a Plesk Plugin you could use. But BE CAREFUL IN SSH! You can destroy your server with a wrong command.
@Fitz Anytime bruh :)
Thanks again TechTheBoy :)
@Luca Maffi Try clearing browser cache
Thanks for the quick fix! We had issues with it always Aborting despiting pressing Y/y/Yes, adding
-y --allow-downgrades
solved it.
export version="2.4.41-4ubuntu3"; apt-get install -y --allow-downgrades apache2=$version apache2-utils=$version apache2-data=$version apache2-bin=$version
This is major as all of our clients' sites went 500 all of a sudden. What's embarrassing is among these a handful sites were still on cpanel vms not affected by this. Thanks for the temporary walkaround till real fix becomes available.
TechTheBoy
Just one last question before i go..
You know i earlier mentioned that i changed my Apache settings to the FastCGI application served by Apache option.
Can you foresee doing this causing me any operating issues?
And do yo think i will i need to change this back after the official Plesk fix?
Fitz
@TechTheBoy ...no already tried... only on some domain in php curtain i see only php-fpm from nginx all others values disappear. But on the same server on other domain i see all values.....
thanks anyway
Temporal solution that works for me:
Updating on file /var/www/vhosts/system/example.com/conf/httpd.conf:
SetHandler proxy:unix:///var/www/vhosts/system/example.com/php-fpm.sock|fcgi://127.0.0.1:9000
to
SetHandler proxy:unix:/var/www/vhosts/system/example.com/php-fpm.sock|fcgi://127.0.0.1:9000
and restarting apache service
Please sign in to leave a comment.