Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 80 forks source link

Allow for listening on custom socket on php-fpm #252

Closed edusperoni closed 7 years ago

edusperoni commented 7 years ago

This commit changes the php-fpm listen and fcgi_pass logic so you can listen on a custom tcp socket, like 127.0.0.1:9000, fixing errors like this:

https://stackoverflow.com/questions/10470109/error-502-in-nginx-php5-fpm

I've tested this configuration and I'm currently runing it on my website. If "Custom listen" is not set, it will use unix sockets by default.