Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Manoa Ratefiarison
ISPConfig 3
Commits
2d86e113
Commit
2d86e113
authored
13 years ago
by
Falko Timme
Browse files
Options
Downloads
Patches
Plain Diff
- Added nginx support to the OpenSUSE installer.
parent
f8cd03b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
install/dist/conf/opensuse110.conf.php
+1
-1
1 addition, 1 deletion
install/dist/conf/opensuse110.conf.php
install/dist/conf/opensuse112.conf.php
+1
-1
1 addition, 1 deletion
install/dist/conf/opensuse112.conf.php
install/dist/lib/opensuse.lib.php
+48
-0
48 additions, 0 deletions
install/dist/lib/opensuse.lib.php
with
50 additions
and
2 deletions
install/dist/conf/opensuse110.conf.php
+
1
−
1
View file @
2d86e113
...
...
@@ -200,7 +200,7 @@ $conf['nginx']['vhost_port'] = '8080';
$conf
[
'nginx'
][
'cgi_socket'
]
=
'/var/run/fcgiwrap.socket'
;
$conf
[
'nginx'
][
'php_fpm_init_script'
]
=
'php-fpm'
;
$conf
[
'nginx'
][
'php_fpm_ini_path'
]
=
'/etc/php5/fpm/php.ini'
;
$conf
[
'nginx'
][
'php_fpm_pool_dir'
]
=
'/etc/php5/fpm'
;
$conf
[
'nginx'
][
'php_fpm_pool_dir'
]
=
'/etc/php5/fpm
/pool.d
'
;
$conf
[
'nginx'
][
'php_fpm_start_port'
]
=
9010
;
$conf
[
'nginx'
][
'php_fpm_socket_dir'
]
=
'/var/lib/php5-fpm'
;
...
...
This diff is collapsed.
Click to expand it.
install/dist/conf/opensuse112.conf.php
+
1
−
1
View file @
2d86e113
...
...
@@ -200,7 +200,7 @@ $conf['nginx']['vhost_port'] = '8080';
$conf
[
'nginx'
][
'cgi_socket'
]
=
'/var/run/fcgiwrap.socket'
;
$conf
[
'nginx'
][
'php_fpm_init_script'
]
=
'php-fpm'
;
$conf
[
'nginx'
][
'php_fpm_ini_path'
]
=
'/etc/php5/fpm/php.ini'
;
$conf
[
'nginx'
][
'php_fpm_pool_dir'
]
=
'/etc/php5/fpm'
;
$conf
[
'nginx'
][
'php_fpm_pool_dir'
]
=
'/etc/php5/fpm
/pool.d
'
;
$conf
[
'nginx'
][
'php_fpm_start_port'
]
=
9010
;
$conf
[
'nginx'
][
'php_fpm_socket_dir'
]
=
'/var/lib/php5-fpm'
;
...
...
This diff is collapsed.
Click to expand it.
install/dist/lib/opensuse.lib.php
+
48
−
0
View file @
2d86e113
...
...
@@ -584,6 +584,54 @@ class installer_dist extends installer_base {
}
public
function
configure_nginx
(){
global
$conf
;
if
(
$conf
[
'nginx'
][
'installed'
]
==
false
)
return
;
//* Create the logging directory for the vhost logfiles
if
(
!@
is_dir
(
$conf
[
'ispconfig_log_dir'
]
.
'/httpd'
))
mkdir
(
$conf
[
'ispconfig_log_dir'
]
.
'/httpd'
,
0755
,
true
);
// Sites enabled and avaulable dirs
exec
(
'mkdir -p '
.
$conf
[
'nginx'
][
'vhost_conf_enabled_dir'
]);
exec
(
'mkdir -p '
.
$conf
[
'nginx'
][
'vhost_conf_dir'
]);
$content
=
trim
(
rf
(
'/etc/nginx/nginx.conf'
));
$content
=
substr
(
$content
,
0
,
-
1
)
.
"
\n
include /etc/nginx/sites-enabled/*.vhost;
\n
}"
;
wf
(
'/etc/nginx/nginx.conf'
,
$content
);
unset
(
$content
);
// create PHP-FPM pool dir
exec
(
'mkdir -p '
.
$conf
[
'nginx'
][
'php_fpm_pool_dir'
]);
$content
=
rf
(
'/etc/php5/fpm/php-fpm.conf'
);
if
(
stripos
(
$content
,
'include=/etc/php5/fpm/pool.d/*.conf'
)
===
false
){
af
(
'/etc/php5/fpm/php-fpm.conf'
,
"
\n
include=/etc/php5/fpm/pool.d/*.conf"
);
}
unset
(
$content
);
//* make sure that webalizer finds its config file when it is directly in /etc
if
(
@
is_file
(
'/etc/webalizer.conf'
)
&&
!@
is_dir
(
'/etc/webalizer'
))
{
mkdir
(
'/etc/webalizer'
);
symlink
(
'/etc/webalizer.conf'
,
'/etc/webalizer/webalizer.conf'
);
}
if
(
is_file
(
'/etc/webalizer/webalizer.conf'
))
{
// Change webalizer mode to incremental
replaceLine
(
'/etc/webalizer/webalizer.conf'
,
'#IncrementalName'
,
'IncrementalName webalizer.current'
,
0
,
0
);
replaceLine
(
'/etc/webalizer/webalizer.conf'
,
'#Incremental'
,
'Incremental yes'
,
0
,
0
);
replaceLine
(
'/etc/webalizer/webalizer.conf'
,
'#HistoryName'
,
'HistoryName webalizer.hist'
,
0
,
0
);
}
// Check the awsatst script
if
(
!
is_dir
(
'/usr/share/awstats/tools'
))
exec
(
'mkdir -p /usr/share/awstats/tools'
);
if
(
!
file_exists
(
'/usr/share/awstats/tools/awstats_buildstaticpages.pl'
)
&&
file_exists
(
'/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl'
))
symlink
(
'/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl'
,
'/usr/share/awstats/tools/awstats_buildstaticpages.pl'
);
if
(
file_exists
(
'/etc/awstats/awstats.conf.local'
))
replaceLine
(
'/etc/awstats/awstats.conf.local'
,
'LogFormat=4'
,
'LogFormat=1'
,
0
,
1
);
//* add a sshusers group
$command
=
'groupadd sshusers'
;
if
(
!
is_group
(
'sshusers'
))
caselog
(
$command
.
' &> /dev/null 2> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
public
function
configure_firewall
()
{
global
$conf
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment