Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 12th May 2008, 17:17
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 424
Thanks: 33
Thanked 50 Times in 35 Posts
Send a message via Skype™ to SamTzu
Arrow

Blip.
Time to wake this thread...
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
Sponsored Links
  #12  
Old 29th November 2008, 16:07
geareddesign geareddesign is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Question Can this be done with Apache Directives + Hostingplan?

I am attempting to set up an automated creation of sites from an existing install of Drupal. Would this work?

1) Make a directory /etc/apache/vhost_includes/
2) Make a text file cms.conf inside this directory which contains the rewrite rules you want to add to the vhost.
3) In the apache directives field in ISPConfig you insert: Include /etc/apache/vhost_includes/drupal.conf
4) Save as a Hostingplan Drupal

Code:
# web-N is the actual website

# Enable .htaccess on the website

<Directory "/var/www/web-N/web/">
    Options FollowSymLinks
    AllowOverride All
</Directory>

# set up the site directory
# copy needed files from ~/drupal/base)

cp /var/drupal/base/* /var/www/web-N/web/

# make the file directory

mkdir /var/drupal/files/web-N
chmod ug+w /var/drupal/files/web-N

# set up some symlinks

ln -s /var/drupal/includes /var/www/web-N/web/includes
ln -s /var/drupal/misc /var/www/web-N/web/misc

ln -s /var/drupal/modules /var/www/web-N/web/modules
ln -s /var/drupal/profiles /var/www/web-N/web/profiles

ln -s /var/drupal/themes /var/www/web-N/web/themes
ln -s /var/drupal/sites /var/www/web-N/web/sites
ln -s /var/drupal/sites/all /var/www/web-N/web/sites/all
ln -s /var/drupal/files/web-N /var/www/web-N/web/files

# make the site file and edit it

mkdir /var/drupal/sites/web-N
cp -r /var/drupal/sites/default/* /var/www/web-N/web/sites/web-N/

# append some stuff to the end of the new settings file
echo "\$conf = array('file_directory_path' => 'files/web-N', 'file_directory_temp' => 'tmp');" >> /var/www/web-N/web/sites/web-N /settings.php
References:
http://www.howtoforge.com/forums/showthread.php?t=907
http://justinhileman.info/blog/2007/...tisite-install
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared IP error when adding new site amoswright Installation/Configuration 15 15th June 2006 15:04
host site at same domain as ISPConfig server? amoswright Installation/Configuration 2 13th January 2006 22:43
Removed site, but it is still there mromer General 2 21st December 2005 17:46
mx record not set up for new site + misc jmroth Installation/Configuration 8 25th September 2005 15:35
can't delete a site KenMcGinnis Installation/Configuration 2 14th August 2005 15:02


All times are GMT +2. The time now is 21:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.