dat’s diary

Just another WordPress.com weblog

How to copy a django site and run it on the same hosting provider

leave a comment »

After you set up a site on your beloved host, and it s working fine, you may get ambitious and create another site. But you don’t want to buy another vps. Here is what you do to copy clone a working site to a new site:
1. Ssh to your vps and configure your virtual host. http://library.linode.com/lamp-guides/ubuntu-10.04-lucid
2. cd /etc/apache2/sites-available/ and cp oldsite.com newsite.com. Edit newsite.com accordingly
3. cd /srv/www/ and cp -r oldsite.com/ newsite.com
4. cd newsite.com and edit it accordingly (settings.py, urls.py,django.wsgi)
5. a2ensite newsite.com
6. /etc/init.d/apache2 reload
7. visit newsite.com. It should work.

Advertisement

Written by bluekite2000

May 18, 2011 at 9:18 pm

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.