| | |
| | | exec('mv '.$data['old']['document_root'].' '.$new_dir); |
| | | $app->log('Moving site to new document root: mv '.$data['old']['document_root'].' '.$new_dir,LOGLEVEL_DEBUG); |
| | | |
| | | // Handle the change in php_open_basedir |
| | | $data['new']['php_open_basedir'] = str_replace($data['old']['document_root'],$data['new']['document_root'],$data['old']['php_open_basedir']); |
| | | |
| | | //* Change the owner of the website files to the new website owner |
| | | exec('chown --recursive --from='.escapeshellcmd($data['old']['system_user']).':'.escapeshellcmd($data['old']['system_group']).' '.escapeshellcmd($data['new']['system_user']).':'.escapeshellcmd($data['new']['system_group']).' '.$new_dir); |
| | | |
| | |
| | | */ |
| | | $fn = substr($file, 0, strlen($file) - strlen('.htdigest')); |
| | | $output .= "\n"; |
| | | <<<<<<< .working |
| | | $output .= " Alias /" . $fn . ' ' . $webdavRoot . '/' . $fn . "\n"; |
| | | $output .= " <Location /" . $fn . ">\n"; |
| | | ======= |
| | | // $output .= " Alias /" . $fn . ' ' . $webdavRoot . '/' . $fn . "\n"; |
| | | // $output .= " <Location /" . $fn . ">\n"; |
| | | $output .= " Alias /webdav/" . $fn . ' ' . $webdavRoot . '/' . $fn . "\n"; |
| | | $output .= " <Location /webdav/" . $fn . ">\n"; |
| | | >>>>>>> .merge-right.r2129 |
| | | $output .= " DAV On\n"; |
| | | $output .= " AuthType Digest\n"; |
| | | $output .= " AuthName \"" . $fn . "\"\n"; |