Good afternoon and TGIF!!
I have a complicated or simple issue. I want to copy my companies main site to my development domain however I have been having troubles with the transition.
Here are the following steps I took to duplicate:
MAIN SITE:
1. Exported the database through Backup and Migrate
2. Copied the main directory (/images/ /pdf/ etc.)
DUPLICATE SITE:
1. Installed Drupal 6.28
2. Created a database for the installation process
--Drupal Install Complete--
3. Went to Backup Wizard in cPanel and restored from Main Site backup (didn't notice any changes other than the database name being there, no tables or prefixes)
4. Moved the copied main directory to the duplicate main directory.
5. Activated Backup and Migrate module and attempted a restore (still didn't see any previous information from the main site)
6. Activated the site theme (received an error on line 378 in template.php which looks like "cma_modalframe_parent_js();}")
7. Renamed template.php to something else and bits and pieces started to show up but it still remains broken
8. I'm stumped at the moment
Note: I have not touched the .htaccess or settings.php, should I be pointing one of these to the exported backup?
Am I walking in the right direction or should I be trying something completely different?
Comments
=-=
you should copy the entire file/folder structure of the main drupal install
into an empty database import the export of the main drupal install
empty all cache tables
empty the sessions table
empthy the watchdog table
edit settings.php $base_url to point to the dev database
upload all files and folders
ensure there are no main site specific rewrites in .htaccess
test
Hey thanks for the helpful
Hey thanks for the helpful reply. I'm stuck right on emptying the cache and other tables. After importing the database, when checking phpadmin to delete the tables, no tables show up under the structure. I checked the MySQL database and it shows up 0.00MB although the backup is 136MB uncompressed.
I edited the settings.php to point to the new database and when loading the new page these are the errors:
Warning: Table 'twosev5_cma_dev.access' doesn't exist query: SELECT 1 FROM access WHERE type = 'host' AND '38.122.144.245' LIKE mask AND status = 0 LIMIT 0, 1 in /home/twosev5/public_html/cme/includes/database.mysql.inc on line 149
Warning: Table 'twosev5_cma_dev.cache' doesn't exist query: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'variables' in /home/twosev5/public_html/cme/includes/database.mysql.inc on line 149
Warning: Table 'twosev5_cma_dev.semaphore' doesn't exist query: SELECT expire, value FROM semaphore WHERE name = 'variable_cache_regenerate' in /home/twosev5/public_html/cme/includes/database.mysql.inc on line 149
I'm sure this goes hand and hand with clearing the tables as you said, but at this moment I'm pretty stuck. Any suggestions?