[support] How to duplicate a Drupal Setup.
Jeff
jeff at wildcoast.com
Mon May 23 09:50:39 UTC 2011
On 23 May 2011, at 12:00 AM, Lloyd Lowe wrote:
> Hi There,
>
> I have inherited a Drupal 5 setup which our Organization uses on a
> daily basis. We have a machine hosted in the UK that supplies our
> website to all our visitors and sponsors. This website has been
> build on Drupal and I have recently upgraded it to Drupal 6.20. We
> are planning on revamping this website completely but cant afford to
> do this on the live site for obvious reasons so i have done the
> following :
>
> I have installed a Debian 6.0.1a machine with Apache2, PHP5 and
> mysql-server. I have tarred the /var/www folder and the /etc/apache
> folder and downloaded them to my local machine. I have backed up my
> database to a .sql file using phpmyadmin and downloaded that as
> well. Let me tell you what i have done so far :
>
> in the sites-availabe and sites-enables folders I have websites that
> look like this : www.x.org.za (path = /var/www/drupal/home/www.x.org.za
> )
> www
> .y.org.za (path = /var/www/drupal/home/www.y.org.za)
>
> I have logged into phpmyadmin and imported the database.
>
> I have untarred the download file into /var/www creating the paths
> specified above.
>
> Now, here are my questions :
>
> 1 . How do i change the names of the websites so i can browse them
> as http://localhost/x etc....... ?
You should not have copied over the entire apache folder. All that is
necessary is to copy the /etc/apache2/sites-available/* virtualhost
files. Then you would use "a2ensite www.x.org.za" and then restart
apache.
For local access (on your development PC) you want to edit the
localhost entry in /etc/hosts file, like this:
127.0.0.1 localhost www.x.org x www.y.org y whatever-x whatever-y
. . . But I wouldn't use actual domain names. Rather add a ServerAlias
directive below the ServerName in /etc/apache2/sites-available/www.x.org.za
, like this:
ServerName x.org.za
ServerAlias www.x.org.za x whatever-x
Remember, no changes take effect until you restart apache ("service
apache restart" or "/etc/init.d/apache2 restart").
These are not Drupal issues, though, so feel free to email me for more
help or info if you need.
> 2 . How do i make sure that Drupal is using the data I imported in
> the step above - Was I supposed to import the data into the database
> i pointed Drupal to or does the website have seperate database
> references?
Check /var/www/x/sites/default/settings.php for the database settings
in use.
--
Jeff Brown
Tel:+27-74-101 5170
Fax:+27-86-532 3508
www.wildcoast.co.za
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110523/8f30fb89/attachment-0001.html
More information about the support
mailing list