Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
bde98e02
Commit
bde98e02
authored
Feb 27, 2009
by
tbrehm
Browse files
add code to modify suphp.conf in fedora nd centos installations.
parent
b7bf0cc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
bde98e02
...
...
@@ -404,6 +404,11 @@ class installer_dist extends installer_base {
{
global
$conf
;
if
(
is_file
(
'/etc/suphp.conf'
))
{
replaceLine
(
'/etc/suphp.conf'
,
'php=php:/usr/bin'
,
'x-httpd-suphp=php:/usr/bin/php-cgi'
,
0
);
replaceLine
(
'/etc/suphp.conf'
,
'docroot='
,
'docroot=/var/clients'
,
0
);
}
//* Create the logging directory for the vhost logfiles
exec
(
'mkdir -p /var/log/ispconfig/httpd'
);
...
...
install/lib/installer_base.lib.php
View file @
bde98e02
...
...
@@ -702,8 +702,8 @@ class installer_base {
}
if
(
is_file
(
'/etc/apache2/sites-enabled/000-default'
))
{
replaceLine
(
'/etc/apache2/sites-available/000-default'
,
'NameVirtualHost *'
,
'NameVirtualHost *:80'
,
1
);
replaceLine
(
'/etc/apache2/sites-available/000-default'
,
'<VirtualHost *>'
,
'<VirtualHost *:80>'
,
1
);
replaceLine
(
'/etc/apache2/sites-available/000-default'
,
'NameVirtualHost *'
,
'NameVirtualHost *:80'
,
1
,
0
);
replaceLine
(
'/etc/apache2/sites-available/000-default'
,
'<VirtualHost *>'
,
'<VirtualHost *:80>'
,
1
,
0
);
}
if
(
is_file
(
'/etc/apache2/ports.conf'
))
{
...
...
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