
7th August 2005, 19:51
|
|
Member
|
|
Join Date: Aug 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Change default web-template
Exactly which directory is used when creating new websites? I'd like to alter the default index.html which appears in newly created websites.
Cheers
|

7th August 2005, 21:28
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,894
Thanks: 693
Thanked 4,189 Times in 3,206 Posts
|
|
Quote:
|
Originally Posted by hagel
Exactly which directory is used when creating new websites? I'd like to alter the default index.html which appears in newly created websites.
Cheers
|
The standard index pages are in the directory:
Code:
/root/ispconfig/isp/
|

7th August 2005, 23:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
|
Originally Posted by till
The standard index pages are in the directory:
Code:
/root/ispconfig/isp/
|
That's where all the template files are, you can modify them. But you can also use the ISPConfig web interface to create individual index pages: Management -> Server -> Settings -> Other.
Also each reseller can define individual index pages: ISP Manager -> [a reseller] -> Other.
|

16th August 2005, 17:04
|
|
Junior Member
|
|
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How about adding extra files?
We want to offer some PHP scripts pre-installed for selected customers, how do we have them get added when a new client is installed?
for example, I want to install a directory called admin somewhere /root/ispconfig/isp/admin ??? and have it's contents copied to the web/admin folder of a new site.
kinda like /etc/skel gets copied for new users in a standard debian system...
hrm - could we use /etc/skel? will that work for the web#_username users?
|

16th August 2005, 17:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
|
Originally Posted by ajajaj
We want to offer some PHP scripts pre-installed for selected customers, how do we have them get added when a new client is installed?
for example, I want to install a directory called admin somewhere /root/ispconfig/isp/admin ??? and have it's contents copied to the web/admin folder of a new site.
kinda like /etc/skel gets copied for new users in a standard debian system...
hrm - could we use /etc/skel? will that work for the web#_username users?
|
You can customize /root/ispconfig/scripts/lib/config.lib.php (function web_insert()) to achieve this.
|

31st July 2006, 17:52
|
|
Member
|
|
Join Date: Feb 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Copy default index.php and folder
Hi,
I would like to copy a default index.php and image folder to the new created website.
I would like to edit config.lib.php something like:
exec("cp -R /var/www/template/* /var/www/$wichvar");
Now, as you can guess i would like to know the exact var for $wichvar 
Also any suggestions where (line) to put it?
Regards,
Tim
|

1st August 2006, 07:55
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,894
Thanks: 693
Thanked 4,189 Times in 3,206 Posts
|
|
Insert this at line 72:
Quote:
|
exec("cp -R /var/www/template/* /var/www/$web_path");
|
|

2nd August 2006, 11:49
|
|
Member
|
|
Join Date: Feb 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No success
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");
|

2nd August 2006, 12:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
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?
|

2nd August 2006, 14:07
|
|
Member
|
|
Join Date: Feb 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
config.lib.php default web template
Hello Falko,
Killed the deamon, started the script and this is all i see:
ispconfig:~/root/ispconfig/php/php /root/ispconfig/scripts/writeconf.php
start
ende
ispconfig:~/ispconfig/scripts/lib #
No errors what so ever. But also no default template copied from /var/www/template to /var/www/$web_path
This is where the copy command is now~:
959 function make_docroot($doc_id,$hostname,$domainname,$web_qu ota,$update) {
960 global $go_info, $mod;
961 exec("cp -R /var/www/template/* /var/www/$web_path");
962
Quote:
|
Originally Posted by falko
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?
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 13:09.
|
|
Recent comments
3 hours 58 min ago
13 hours 25 min ago
14 hours 15 min ago
17 hours 48 min ago
22 hours 12 min ago
22 hours 34 min ago
1 day 44 min ago
1 day 10 hours ago
1 day 15 hours ago
1 day 17 hours ago