Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Jozef Sroka
ISPConfig 3
Commits
a8279baa
Commit
a8279baa
authored
Sep 28, 2016
by
Till Brehm
Browse files
Write hhvm custom php.ini only when /etc/hhvm exists.
parent
ce685056
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
a8279baa
...
...
@@ -3062,7 +3062,7 @@ class apache2_plugin {
// Make sure we only have Unix linebreaks
$custom_php_ini_settings
=
str_replace
(
"
\r\n
"
,
"
\n
"
,
$custom_php_ini_settings
);
$custom_php_ini_settings
=
str_replace
(
"
\r
"
,
"
\n
"
,
$custom_php_ini_settings
);
file_put_contents
(
'/etc/hhvm/'
.
$data
[
'new'
][
'system_user'
]
.
'.ini'
,
$custom_php_ini_settings
);
if
(
@
is_dir
(
'/etc/hhvm'
))
file_put_contents
(
'/etc/hhvm/'
.
$data
[
'new'
][
'system_user'
]
.
'.ini'
,
$custom_php_ini_settings
);
}
else
{
if
(
$data
[
'old'
][
'system_user'
]
!=
''
&&
is_file
(
'/etc/hhvm/'
.
$data
[
'old'
][
'system_user'
]
.
'.ini'
))
unlink
(
'/etc/hhvm/'
.
$data
[
'old'
][
'system_user'
]
.
'.ini'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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