Skip to content
Snippets Groups Projects
Commit 0aa4f2de authored by Till Brehm's avatar Till Brehm
Browse files

Use correct PHP-FPM sockets in apps vhost on Ubuntu 20.04.

parent 8a1d8f5e
No related branches found
No related tags found
No related merge requests found
...@@ -184,6 +184,7 @@ class apps_vhost_plugin { ...@@ -184,6 +184,7 @@ class apps_vhost_plugin {
|| file_exists('/var/run/php/php7.1-fpm.sock') || file_exists('/var/run/php/php7.1-fpm.sock')
|| file_exists('/var/run/php/php7.2-fpm.sock') || file_exists('/var/run/php/php7.2-fpm.sock')
|| file_exists('/var/run/php/php7.3-fpm.sock') || file_exists('/var/run/php/php7.3-fpm.sock')
|| file_exists('/var/run/php/php7.4-fpm.sock')
){ ){
$use_tcp = '#'; $use_tcp = '#';
$use_socket = ''; $use_socket = '';
...@@ -206,6 +207,8 @@ class apps_vhost_plugin { ...@@ -206,6 +207,8 @@ class apps_vhost_plugin {
if(file_exists('/var/run/php/php7.0-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.0-fpm.sock', $content); if(file_exists('/var/run/php/php7.0-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.0-fpm.sock', $content);
if(file_exists('/var/run/php/php7.1-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.1-fpm.sock', $content); if(file_exists('/var/run/php/php7.1-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.1-fpm.sock', $content);
if(file_exists('/var/run/php/php7.2-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.2-fpm.sock', $content); if(file_exists('/var/run/php/php7.2-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.2-fpm.sock', $content);
if(file_exists('/var/run/php/php7.3-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.3-fpm.sock', $content);
if(file_exists('/var/run/php/php7.4-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.4-fpm.sock', $content);
// PHP-FPM // PHP-FPM
// Dont just copy over the php-fpm pool template but add some custom settings // Dont just copy over the php-fpm pool template but add some custom settings
......
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