Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonas
ISPConfig 3
Commits
67d81d3f
Commit
67d81d3f
authored
Jul 16, 2018
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed nginx socket path in apps vhost for Ubuntu 18.04.
parent
da1e393d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+3
-3
server/plugins-available/apps_vhost_plugin.inc.php
server/plugins-available/apps_vhost_plugin.inc.php
+5
-0
No files found.
install/lib/installer_base.lib.php
View file @
67d81d3f
...
...
@@ -2135,9 +2135,9 @@ class installer_base {
$content
=
str_replace
(
'{ssl_comment}'
,
'#'
,
$content
);
// Fix socket path on PHP 7 systems
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.2-fpm.sock'
))
$content
=
str_replace
(
'/var/run/php5-fpm.sock'
,
'/var/run/php/php7.2-fpm.sock'
,
$content
);
wf
(
$vhost_conf_dir
.
'/apps.vhost'
,
$content
);
...
...
server/plugins-available/apps_vhost_plugin.inc.php
View file @
67d81d3f
...
...
@@ -183,6 +183,11 @@ class apps_vhost_plugin {
}
$content
=
str_replace
(
'{use_tcp}'
,
$use_tcp
,
$content
);
$content
=
str_replace
(
'{use_socket}'
,
$use_socket
,
$content
);
// Fix socket path on PHP 7 systems
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.2-fpm.sock'
))
$content
=
str_replace
(
'/var/run/php5-fpm.sock'
,
'/var/run/php/php7.2-fpm.sock'
,
$content
);
// PHP-FPM
// Dont just copy over the php-fpm pool template but add some custom settings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment