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
Zvonimir
ISPConfig 3
Commits
0731a3df
Commit
0731a3df
authored
Jan 27, 2009
by
tbrehm
Browse files
Fixed FCGI starter script for ispconfig interface.
parent
24ed48ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
0731a3df
...
...
@@ -991,6 +991,12 @@ class installer_base {
if
(
!@
is_link
(
"
$vhost_conf_enabled_dir
/000-ispconfig.vhost"
))
{
exec
(
"ln -s
$vhost_conf_dir
/ispconfig.vhost
$vhost_conf_enabled_dir
/000-ispconfig.vhost"
);
}
exec
(
'mkdir -p /var/www/php-fcgi-scripts/ispconfig'
);
exec
(
'cp tpl/apache_ispconfig_fcgi_starter.master /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter'
);
exec
(
'chmod +x /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter'
);
exec
(
'ln -s /usr/local/ispconfig/interface/web /var/www/ispconfig'
);
}
// Make the Clamav log files readable by ISPConfig
...
...
@@ -1002,9 +1008,6 @@ class installer_base {
exec
(
'chown root /usr/local/bin/ispconfig_update_from_svn.sh'
);
exec
(
'chmod 700 /usr/local/bin/ispconfig_update_from_svn.sh'
);
//set the fast cgi starter script to executable
exec
(
'chmod 755 '
.
$install_dir
.
'/interface/bin/php-fcgi'
);
//* Make the logs readable for the ispconfig user
if
(
@
is_file
(
'/var/log/mail.log'
))
exec
(
'chmod +r /var/log/mail.log'
);
if
(
@
is_file
(
'/var/log/mail.warn'
))
exec
(
'chmod +r /var/log/mail.warn'
);
...
...
install/tpl/apache_ispconfig.vhost.master
View file @
0731a3df
...
...
@@ -12,13 +12,13 @@ NameVirtualHost *:{vhost_port}
DocumentRoot /usr/local/ispconfig/interface/web/
<IfModule mod_fastcgi.c>
DocumentRoot /
usr/local
/ispconfig/
interface/web/
DocumentRoot /
var/www
/ispconfig/
SuexecUserGroup ispconfig ispconfig
<Directory /
usr/local
/ispconfig/
interface/web/
>
<Directory /
var/www
/ispconfig/>
Options Indexes FollowSymLinks MultiViews +ExecCGI
AllowOverride AuthConfig Indexes Limit Options FileInfo
AddHandler fcgid-script .php
FCGIWrapper /
usr/local/ispconfig/interface/bin/php-fcgi
.php
FCGIWrapper /
var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter
.php
Order allow,deny
Allow from all
</Directory>
...
...
install/tpl/apache_ispconfig_fcgi_starter.master
0 → 100644
View file @
0731a3df
#!/bin/sh
PHPRC
=
/etc/php5/cgi/
export
PHPRC
exec
/usr/lib/cgi-bin/php
PHP_FCGI_MAX_REQUESTS
=
5000
export
PHP_FCGI_MAX_REQUESTS
export
PHP_FCGI_CHILDREN
=
8
export
PHP_FCGI_MAX_REQUESTS
=
500
\ No newline at end of file
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