Quote:
|
Originally Posted by t.roijers
Hello Falko,
Inserted this in the script, created a new website, but the copy command below doesn't copy the files from /var/www/template to the new website.
any suggestions?
Thanx,
Tim
Quote:
Insert this at line 72:
exec("cp -R /var/www/template/* /var/www/$web_path");
|
Maybe it's a better idea to insert that line in the make_docroot() function. For debugging purposes, you can kill the ispconfig_wconf daemon, create a web site, and then you run
Code:
/root/ispconfig/php/php /root/ispconfig/scripts/writeconf.php
on the shell. Any errors?