<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 23 May 2011, at 12:00 AM, Lloyd Lowe wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi There,<br><br>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 :<br> <br>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 :<br> <br>in the sites-availabe and sites-enables folders I have websites that look like this : &nbsp; <a href="http://www.x.org.za">www.x.org.za</a> (path = /var/www/drupal/home/<a href="http://www.x.org.za">www.x.org.za</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.y.org.za">www.y.org.za</a> (path = /var/www/drupal/home/<a href="http://www.y.org.za">www.y.org.za</a>)<br> <br>I have logged into phpmyadmin and imported the database.<br><br>I have untarred the download file into /var/www creating the paths specified above.<br><br>Now, here are my questions : <br><br>1 . How do i change the names of the websites so i can browse them as <a href="http://localhost/x">http://localhost/x</a> etc....... ?</blockquote><div><br></div><div>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 <a href="http://www.x.org.za">www.x.org.za</a>" and then restart apache.</div><div><br></div><div>For local access (on your development PC) you want to edit the localhost entry in /etc/hosts file, like this:</div><div><br></div><div>127.0.0.1<span class="Apple-tab-span" style="white-space: pre; ">        </span>localhost&nbsp;<a href="http://www.x.org">www.x.org</a> x&nbsp;<a href="http://www.y.org">www.y.org</a>&nbsp;y whatever-x&nbsp;whatever-y</div><div><br></div><div>. . . But I wouldn't use actual domain names. Rather add a ServerAlias directive below the ServerName in /etc/apache2/sites-available/<a href="http://www.x.org.za">www.x.org.za</a>, like this:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>ServerName x.org.za</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>ServerAlias <a href="http://www.x.org.za">www.x.org.za</a> x whatever-x</div><div><br></div><div><br></div></div><div>Remember, no changes take effect until you&nbsp;restart apache ("service apache restart" or "/etc/init.d/apache2 restart").</div><div><br></div><div>These are not Drupal issues, though, so feel free to email me for more help or info if you need.</div><div><br></div><div><br></div><blockquote type="cite">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?<br></blockquote></div><br><div>Check /var/www/x/sites/default/settings.php for the database settings in use.</div><div><br class="webkit-block-placeholder"></div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><font class="Apple-style-span" face="Courier">--</font></div><div><font class="Apple-style-span" face="Courier">Jeff Brown</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">Tel:+27-74-101 5170</font></div><div><font class="Apple-style-span" face="Courier">Fax:+27-86-532 3508</font></div><div><font class="Apple-style-span" face="Courier"><a href="http://www.wildcoast.co.za/">www.wildcoast.co.za</a></font></div><div><font class="Apple-style-span" face="Courier"><br></font></div></div></div></div></span></div></span><br class="Apple-interchange-newline"> </div><br></body></html>