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
ISPConfig
ISPConfig 3
Commits
a8279baa
Commit
a8279baa
authored
Sep 28, 2016
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write hhvm custom php.ini only when /etc/hhvm exists.
parent
ce685056
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/plugins-available/apache2_plugin.inc.php
server/plugins-available/apache2_plugin.inc.php
+1
-1
No files found.
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
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