Template .htaccess file not copying to the created website
short description
The .htaccess file template from either the server/conf or server/conf-custom folders does not seem to get written to the created site's /web folder, even though the index.html file does.
correct behaviour
The default or custom .htaccess file should be copied correctly.
environment
- Server OS: (debian/ubuntu/centos/...) Ubuntu
- Server OS version: (wheezy/trusty/centos6/...) Ubuntu 14.04.5 LTS, Ubuntu 16.04.3 LTS
- ISPConfig version: (3.0.5.4/3.1.5/3.1dev/...) 3.1.5, 3.1.7
- PHP version(s): 5.6, 7.0
- you can use
grep 'ISPC_APP_VERSION' /usr/local/ispconfig/server/lib/config.inc.php
to get it from the command line
Issue location
- Lines 843-845 in commit 55c54a85 has those lines commented out:
//if(is_file($conf['rootpath'] . '/conf-custom/index/.htaccess')) {
// exec('cp ' . $conf['rootpath'] . '/conf-custom/index/.htaccess '.escapeshellcmd($data['new']['document_root']).'/' . $web_folder . '/');
//}