
13th April 2006, 15:50
|
|
Member
|
|
Join Date: Apr 2006
Posts: 79
Thanks: 9
Thanked 6 Times in 5 Posts
|
|
Site Skeletons
How about programming in the site creation script that would look for a directory in /root that could contain a "user-defined" site skeleton, and copy them onto each new site. A "site skeleton" would be defined as an optional set of files created by the host admin according to his idea of the standard site that wouldn't be overwritten by an ispConfig update.
When a site was setup, the script would look for the site skeleton directory, say /root/skeleton/ and if there were any directories or files there, it would copy them all into the new site with the same permissions and then chown them appropriately. If no directory existed, the script would just go on.
As little as a custom index.html page could be done, or cgi scripts, php info scripts, host policy and use pages, images.... as much or as little as the host admin wanted could be added on setup.
Richard
|

13th April 2006, 23:26
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
Quote:
|
Originally Posted by rbartz
As little as a custom index.html page could be done
|
You can create custom standard indexpages using the ISPConfig web interface.
You can put standard CGI scripts into /root/ispconfig/standard_cgis, and when you enable "Standard CGIs" for a web site, these CGI scripts will be copied to the cgi-bin folder of the new web site.
|

14th April 2006, 04:00
|
|
Member
|
|
Join Date: Apr 2006
Posts: 79
Thanks: 9
Thanked 6 Times in 5 Posts
|
|
Thanks for that information Falko.  That does take care of the usual standard index page and the cgi scripts.
We install some other things on our "other server" like links to realaudio folders and phpmyadmin and httpd logs, a PHP info page, the always missing favicon.ico, images, a standard robots.txt page and so on. I guess I was thinking in terms of these kind of things.
Another way to do that might be a choice in the site setups to install custom content by running a user-defined script that could be configured in server settings. That would make it optional and entirely up to the server admin what, where, and if his content was added to a site... and give him total control over and responsibility for how it installed. And it could allow him to use the site setup vars such as user name, root directory and so on.
What do you think?
Richard
|

14th April 2006, 14:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
Sounds interesting. We can put it on our To-Do list, but don't expect it to come soon - we're always short of time...
|

15th June 2006, 13:17
|
|
Senior Member
|
|
Join Date: Dec 2005
Location: Chile
Posts: 245
Thanks: 4
Thanked 3 Times in 2 Posts
|
|
Quote:
|
Another way to do that might be a choice in the site setups to install custom content by running a user-defined script
|
Thumbs up! Yeap, been able to use a custom script for setting up a new website would be really awsome...
|

17th July 2006, 21:04
|
|
Member
|
|
Join Date: Nov 2005
Location: Uffing am Staffelsee
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
This would be a very nice option.
|

29th November 2006, 13:32
|
|
Junior Member
|
|
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I need symlinks instead of dirs
Because I run my sites off a single codebase, I don't want to create the ./web dirs for certain users/a certin hosting plan.
Now, I run a commandline script that moves the dir away, and places a symlink instead. But it sounds a proper skeleton will solve my case too.
|

9th May 2007, 10:10
|
|
HowtoForge Supporter
|
|
Join Date: Apr 2007
Location: Helsinki
Posts: 380
Thanks: 25
Thanked 40 Times in 27 Posts
|
|
Web Skeletons
I like the idea of having different skeleton directories for different CMS.
I would name them like this...
./web/guppy
./web/joomla
./web/drupal
etc.
This would really speed things up.
Of cource most CMS would still need a way to clone the database somehow.
I'd also like a way to copy the hostingplans & invoices from client to client.
That is making too much manual work. Is there a way to manually copy them in the OS level? I tried to locate those files but failed.
Sam
|

9th May 2007, 10:22
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,071
Thanks: 697
Thanked 4,251 Times in 3,263 Posts
|
|
Quote:
|
I tried to locate those files but failed.
|
Hosting plans and invoices are not files, they are records in the database. If you want to copy them, you will have to copy the corresponding permission records in isp_nodes too and you might have to adjust some values.
|

9th May 2007, 13:50
|
|
HowtoForge Supporter
|
|
Join Date: Apr 2007
Location: Helsinki
Posts: 380
Thanks: 25
Thanked 40 Times in 27 Posts
|
|
Copy stuff
Ok, makes sense.
Thats why there is no such feature
Sam
|
| 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 10:54.
|
|
Recent comments
4 hours 44 min ago
9 hours 37 min ago
18 hours 29 min ago
19 hours 29 min ago
23 hours 16 min ago
1 day 30 min ago
1 day 4 hours ago
1 day 11 hours ago
1 day 20 hours ago
1 day 21 hours ago