| | |
| | | wf($full_file_name, $content); |
| | | } |
| | | |
| | | |
| | | public function configure_jailkit() |
| | | { |
| | | $cf = $this->conf['jailkit']; |
| | | $config_dir = $cf['config_dir']; |
| | | $jk_init = $cf['jk_init']; |
| | | $jk_chrootsh = $cf['jk_chrootsh']; |
| | | |
| | | if (!is_dir($config_dir)) |
| | | { |
| | | copy($config_dir.'/'.$jk_init, $config_dir.'/'.$jk_init.'~'); |
| | | copy($config_dir.'/'.$jk_chrootsh.".master", $config_dir.'/'.$jk_chrootsh.'~'); |
| | | |
| | | copy('tpl/'.$jk_init.".master", $config_dir.'/'.$jk_init); |
| | | copy('tpl/'.$jk_chrootsh.".master", $config_dir.'/'.$jk_chrootsh); |
| | | } |
| | | |
| | | } |
| | | |
| | | public function configure_postfix($options = '') |
| | | { |
| | | $cf = $this->conf['postfix']; |
| | |
| | | |
| | | $content = rf("tpl/apache_ispconfig.vhost.master"); |
| | | $content = str_replace('{vhost_port}', $this->conf['apache']['vhost_port'], $content); |
| | | $content = str_replace('{vhost_cgi_alias}', $this->conf['apache']['vhost_cgi_alias'], $content); |
| | | |
| | | wf("$vhost_conf_dir/ispconfig.vhost", $content); |
| | | |
| | | //copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost"); |
| | |
| | | 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'); |
| | | } |
| | | |
| | | public function install_crontab() |