Skip to content
Snippets Groups Projects
Commit 4efa7d7c authored by ms217's avatar ms217
Browse files

use apps.sock as fastcgi_pass if the socket exists

parent 037bf6fe
No related branches found
No related tags found
No related merge requests found
......@@ -192,6 +192,7 @@ class apps_vhost_plugin {
$content = str_replace('{fpm_socket}', $fpm_socket, $content);
$content = str_replace('{cgi_socket}', $cgi_socket, $content);
if( file_exists('/var/run/php5-fpm.sock')
|| file_exists('/var/lib/php5-fpm/apps.sock')
|| file_exists('/var/run/php/php7.0-fpm.sock')
|| file_exists('/var/run/php/php7.1-fpm.sock')
|| file_exists('/var/run/php/php7.2-fpm.sock')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment