By bsxiong on
I was able to install durpal 6+ successfully.
But a friend of mine has given me a his drupal website. I don't know how to make it work in my localhost.
So basically i want to know is, Can i run two drupal site on my computer? OR how can i import his drupal site?
I tried installing his site new by dropping my drupal DB. I install drupal from his drupal folder. I keep getting a 500 error.
how can i run an existing drupal site?
Thanks in advance everyone
Comments
_
I varies based on your os, but the basic steps are described at http://drupal.org/node/53479 in the Admin Guide.
hi WorldFallz, thanks for
hi WorldFallz,
thanks for getting to my reply.
Thanks for the page.
so this is that i did.
1. Create new DB
2. import sql
3. Copy the Drupal folder in my localhost
4. Edit .../Drupal/sites/[site name]/setting.php and change the mysql database connection
5. run localhost/Drupal
and i get this error:
Unsupported database type
The database type is unsupported. Please use either mysql for MySQL 3.x & 4.0.x databases, mysqli for MySQL 4.1.x+ databases, or pgsql for PostgreSQL databases. The database information is in your settings.php file.
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
-------
any idea?
=-=
so check the $db_url line in settings.php does it match what you are using?
If usuing MySQL 3.x or 4.x it should be mysql if using 4.1 or higher it should be mysqli if not using mysql at all the you need to mention what you are using.
importing someone elses Drupal into localhost
Generally you should in theory be able to accomplish what you describe. I do this all the time and have many separate Drupal installations running in my Wampserver localhost.
In practice there can be many variables to the process that may not allow it to work. How the database was saved, PHP version issues, Apache quirkiness, and so on can be very confusing and not allow this to work.
The assumption since you loaded Drupal 6 is that you have a LAMP or WAMP stack.
This means that you have phpMyAdmin and should be able to go in and create as many databases as you want.
Do you have your friends files (Drupal installation) along with is database? I'm assuming you do.
Following are the normal steps:
1. Create a folder in the same general area that your Drupal 6+ installation is.
2. Drop his Drupal installation into that folder.
3. Create a new database in phpMyAdmin
4. Import his database (hopefully he saved it with drop down tables) into that new database.
5. Find his settings.php file and change the pointer from his database to the one you just created and imported into. Use your existing settings.php file as a guideline as to what and where you make the database pointer change.
Good Luck
Hi John, Would it matter if i
Hi John,
Would it matter if i have a MAMP server?
=-=
not really unelss your MAMP is completely different than the hosting OS environment.
Hello, Okay so I got the
Hello,
Okay so I got the error to go away. You guys have been very help in confirming my steps. I really appreciate it. I will let you guys know if I need further help.
thanks
PROFILE?
Hello again Everyone,
So here i am again. I got all errors to go away but then my website doesn't look like the original website. It seems like the template isn't setting correctly.
All that is coming out from the main page is just the content, no side bar, no top, no links at all. Alhtought i can still access /Admin by typing it in my address manually.
Please help.
I also have an " Array (missing ) problem. I know that this is related to version 6, but i downoad version 5 and it is still showing it.
Please help. Can the array cause the template issue? I check the theme and it's setup to the right one though. mmmmmm
=-=
um, you downloaded version 5 and did what with it? A D6 database and D5 files won't work.
clear your cache tables in the database, to ensure it isn't holding cache from when it was in your mamp. Usually I empty the cache tables before the backup is taken to make the DB size smaller.
Hi VM, Okay so I did some
Hi VM,
Okay so I did some researching and found out that the MISSING ARRAY is a version issue.
So i use version 5.1x of Drupal.
I guess i just don't know what do do with the ARRAY MISSING issue when using Drupal6. How do i fix that? I followed some directions that said to delete the VIEW MODULE and use the Drupal 5 MODULE instead.
is this correct?
=-=
you don't use drupal 5.x modules on drupal 6.x.
I have no idea how adding a 5.x module to an existing site that originally had a 6.x module running affects things in your environment. When reading forum threads or issues check the tag for the version number and make sure you are following advice for your specific version of drupal.
did you clear your cache tables as previously asked?
ensure all modules, not just the views modules, are Drupal 6.x versions if that is the version of core in use.
_
you'll also want to be sure that the website your friend gave you is d6 as well. You can't just use d6 core code on a d5 website export. You need to match versions all the way across. If the site was originally d5 you'll need to get it up and running in d5 before upgrading to d6.