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
Zvonimir
ISPConfig 3
Commits
418b41f7
Commit
418b41f7
authored
Aug 20, 2012
by
mcramer
Browse files
Fixed error in path comparison (error.log part missing in path)
parent
6ebdab96
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
418b41f7
...
...
@@ -651,7 +651,7 @@ class apache2_plugin {
$app
->
system
->
chmod
(
$data
[
'new'
][
'document_root'
]
.
'/tmp'
,
0777
);
// Set Log directory to 755 to make the logs accessible by the FTP user
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
.
'/error.log'
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
$app
->
system
->
chmod
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
,
0755
);
}
...
...
@@ -682,7 +682,7 @@ class apache2_plugin {
$app
->
system
->
chgrp
(
$data
[
'new'
][
'document_root'
],
'root'
);
$app
->
system
->
chown
(
$data
[
'new'
][
'document_root'
]
.
'/cgi-bin'
,
$username
);
$app
->
system
->
chgrp
(
$data
[
'new'
][
'document_root'
]
.
'/cgi-bin'
,
$groupname
);
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
.
'/error.log'
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
$app
->
system
->
chown
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
,
'root'
,
false
);
$app
->
system
->
chgrp
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
,
$groupname
,
false
);
}
...
...
@@ -714,7 +714,7 @@ class apache2_plugin {
$app
->
system
->
chmod
(
$data
[
'new'
][
'document_root'
]
.
'/tmp'
,
0777
);
// Set Log directory to 755 to make the logs accessible by the FTP user
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
.
'/error.log'
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
$app
->
system
->
chmod
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
,
0755
);
}
...
...
@@ -722,7 +722,7 @@ class apache2_plugin {
$app
->
system
->
chgrp
(
$data
[
'new'
][
'document_root'
],
'root'
);
$app
->
system
->
chown
(
$data
[
'new'
][
'document_root'
]
.
'/cgi-bin'
,
$username
);
$app
->
system
->
chgrp
(
$data
[
'new'
][
'document_root'
]
.
'/cgi-bin'
,
$groupname
);
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
.
'/error.log'
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
$app
->
system
->
chown
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
,
'root'
,
false
);
$app
->
system
->
chgrp
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
,
$groupname
,
false
);
}
...
...
server/plugins-available/nginx_plugin.inc.php
View file @
418b41f7
...
...
@@ -634,7 +634,7 @@ class nginx_plugin {
$app
->
system
->
chmod
(
$data
[
'new'
][
'document_root'
]
.
'/tmp'
,
0777
);
// Set Log directory to 755 to make the logs accessible by the FTP user
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
if
(
realpath
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
.
'/error.log'
)
==
'/var/log/ispconfig/httpd/'
.
$data
[
'new'
][
'domain'
]
.
'/error.log'
)
{
$app
->
system
->
chmod
(
$data
[
'new'
][
'document_root'
]
.
'/'
.
$log_folder
,
0755
);
}
...
...
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