Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
b5b86263
Commit
b5b86263
authored
Jul 27, 2014
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#3504 - Switching between FastCGI and any other and VHost website issue
parent
02797b78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
server/plugins-available/apache2_plugin.inc.php
server/plugins-available/apache2_plugin.inc.php
+4
-7
No files found.
server/plugins-available/apache2_plugin.inc.php
View file @
b5b86263
...
...
@@ -1205,18 +1205,15 @@ class apache2_plugin {
}
else
{
//remove the php fastgi starter script if available
$fastcgi_starter_script
=
$fastcgi_config
[
'fastcgi_starter_script'
]
.
(
$data
[
'old'
][
'type'
]
==
'vhostsubdomain'
?
'_web'
.
$data
[
'old'
][
'domain_id'
]
:
''
);
if
(
$data
[
'old'
][
'php'
]
==
'fast-cgi'
)
{
$fastcgi_starter_path
=
str_replace
(
'[system_user]'
,
$data
[
'old'
][
'system_user'
],
$fastcgi_config
[
'fastcgi_starter_path'
]);
$fastcgi_starter_path
=
str_replace
(
'[client_id]'
,
$client_id
,
$fastcgi_starter_path
);
if
(
$data
[
'old'
][
'type'
]
==
'vhost'
)
{
if
(
is_dir
(
$fastcgi_starter_path
))
{
exec
(
'rm -rf '
.
$fastcgi_starter_path
);
}
if
(
is_file
(
$fastcgi_starter_script
))
@
unlink
(
$fastcgi_starter_script
);
if
(
is_dir
(
$fastcgi_starter_path
))
@
rmdir
(
$fastcgi_starter_path
);
}
else
{
$fcgi_starter_script
=
$fastcgi_starter_path
.
$fastcgi_config
[
'fastcgi_starter_script'
]
.
'_web'
.
$data
[
'old'
][
'domain_id'
];
if
(
file_exists
(
$fcgi_starter_script
))
{
exec
(
'rm -f '
.
$fcgi_starter_script
);
}
if
(
is_file
(
$fastcgi_starter_script
))
@
unlink
(
$fastcgi_starter_script
);
}
}
}
...
...
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