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
Guilherme Filippo
ISPConfig 3
Commits
63b36943
Commit
63b36943
authored
Sep 25, 2011
by
Falko Timme
Browse files
- Make sure the installer adds the nginx user to the ispconfig group (if nginx is installed).
parent
d083f222
Changes
5
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
63b36943
...
...
@@ -581,7 +581,7 @@ class installer_dist extends installer_base {
exec
(
'mkdir -p '
.
$conf
[
'nginx'
][
'vhost_conf_enabled_dir'
]);
exec
(
'mkdir -p '
.
$conf
[
'nginx'
][
'vhost_conf_dir'
]);
wf
(
'/etc/nginx/conf.d/ispconfig_vhosts.conf'
,
"include /etc/nginx/sites-enabled/*
.conf
;"
);
wf
(
'/etc/nginx/conf.d/ispconfig_vhosts.conf'
,
"include /etc/nginx/sites-enabled/*;"
);
//* make sure that webalizer finds its config file when it is directly in /etc
if
(
@
is_file
(
'/etc/webalizer.conf'
)
&&
!@
is_dir
(
'/etc/webalizer'
))
{
...
...
@@ -854,8 +854,14 @@ class installer_dist extends installer_base {
// TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
// and must be fixed as this will allow the apache user to read the ispconfig files.
// Later this must run as own apache server or via suexec!
$command
=
'usermod -a -G ispconfig '
.
$conf
[
'apache'
][
'user'
];
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
$command
=
'usermod -a -G ispconfig '
.
$conf
[
'apache'
][
'user'
];
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
$command
=
'usermod -a -G ispconfig '
.
$conf
[
'nginx'
][
'user'
];
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
//* Make the shell scripts executable
$command
=
"chmod +x
$install_dir
/server/scripts/*.sh"
;
...
...
install/dist/lib/gentoo.lib.php
View file @
63b36943
...
...
@@ -854,8 +854,14 @@ class installer extends installer_base
// TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
// and must be fixed as this will allow the apache user to read the ispconfig files.
// Later this must run as own apache server or via suexec!
$command
=
'usermod -a -G ispconfig '
.
$conf
[
'apache'
][
'user'
];
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
$command
=
'usermod -a -G ispconfig '
.
$conf
[
'apache'
][
'user'
];
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
$command
=
'usermod -a -G ispconfig '
.
$conf
[
'nginx'
][
'user'
];
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
//* Make the shell scripts executable
$command
=
"chmod +x
$install_dir
/server/scripts/*.sh"
;
...
...
install/dist/lib/opensuse.lib.php
View file @
63b36943
...
...
@@ -831,8 +831,14 @@ class installer_dist extends installer_base {
// TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
// and must be fixed as this will allow the apache user to read the ispconfig files.
// Later this must run as own apache server or via suexec!
$command
=
'groupmod --add-user wwwrun ispconfig'
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
$command
=
'groupmod --add-user '
.
$conf
[
'apache'
][
'user'
]
.
' ispconfig'
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
$command
=
'groupmod --add-user '
.
$conf
[
'nginx'
][
'user'
]
.
' ispconfig'
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
//* Make the shell scripts executable
$command
=
"chmod +x
$install_dir
/server/scripts/*.sh"
;
...
...
install/lib/installer_base.lib.php
View file @
63b36943
...
...
@@ -1732,8 +1732,14 @@ class installer_base {
// TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
// and must be fixed as this will allow the apache user to read the ispconfig files.
// Later this must run as own apache server or via suexec!
$command
=
'adduser www-data ispconfig'
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
$conf
[
'apache'
][
'installed'
]
==
true
){
$command
=
'adduser '
.
$conf
[
'apache'
][
'user'
]
.
' ispconfig'
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
if
(
$conf
[
'nginx'
][
'installed'
]
==
true
){
$command
=
'adduser '
.
$conf
[
'nginx'
][
'user'
]
.
' ispconfig'
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
//* Make the shell scripts executable
$command
=
"chmod +x
$install_dir
/server/scripts/*.sh"
;
...
...
install/tpl/nginx_ispconfig.vhost.master
View file @
63b36943
...
...
@@ -55,7 +55,7 @@ server {
location ~ ^/squirrelmail/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass 127.0.0.1:
9000
;
fastcgi_pass 127.0.0.1:
{fpm_port}
;
{ssl_comment}fastcgi_param HTTPS {fastcgi_ssl};
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
...
...
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