I'm taking over support of a drupal site where the development instance of drupal was on a laptop the other engineer took with him. I'm trying to clone the prodution instance so I can have a development system.

I copied (rsync) the files from the production system to mine. RH8 to SUSE 9.3. I then dumped the mysql database and reloaded using the same user/pw that the original system used. After messing around with ReWrite for a bit, I was able to get the first page working via http://localhost/index.php.

No one knew the admin password so I went it and changed it via instructions found in this forum and attemped to log in. It brought me back to the same home page. Complete with login block. I attempted to log in with a bogus user/pw same thing. In fact most of the links that look like http://localhost/taxonomy/term/7 or http://localhost/node/10910 display exacly the same thing as the first page. It looks like the rewrite is failing silently since if I add the !q= to pages I seem to find some of them, however if I do a ?q=admin/settings, it asks me to login via the user login on the left colum. But that doesn't seem to work. When I do that I get referred to a login of http://localhost/user/login?destination=user%2Flogin and when I translate that to http://localhost/?q=user/login&destination=user%2Flogin, I just get a login page, ad nauseum.

My session table is full of uid=0 entries, session ="messages:a:0:{}"

My watchdog table has nothing new in it. It's data left over from production.

So Is there a way I can install a clean version of drupal on this system, get it to working and then merge the data onto it?

Or any other suggestions as to how I might go about troubleshooting this?

Thanks,
Jim.

Comments

criznach’s picture

I was just able to turn off clean urls without logging in on one of my dev sites with the following piece of SQL. Backup the database first. Run this query...

UPDATE `variable` SET `value` = 's:1:"0";' WHERE `name` = 'clean_url' LIMIT 1 ;

Then this one...

TRUNCATE TABLE `cache`;

Chris.

Jim44’s picture

That didn't work, however I finally got the rewrite configured correctly and I think it's working with a few gotchas yet.

Thanks,
Jim.

garym’s picture

I cloned my production site which is on linux to my local windows machine. I'm running WAMP5. I installed drupal, exported database, reimported into new database locally, change settings.php base url to http://localhost/drupal, etc. I try it and get to the login page. I login and get in, seeing the admin menu, etc.. I try to do something, anything, and I'm automatically in a logged out state and cannot access the desired page.

I tried a fresh install of Drupal 4.7.3. Created new database, loaded schema, etc. Same issue -- I create first user, I login, I see the logged in page, I do anything and then it assumes I'm not logged in.

Any ideas? I've seen similar postings and have changed my settings.php file, cleared cookies, etc. to no avail.

Thanks!

vm’s picture

running php 5.2 ? if so you need to patch drupal. sessions.inc needed a patch or it would constantly log you out. The most recent 4.7.x-dev tarball shoudl have the fixes. if you prefer to pacth on your own, use the search here are drupal.org with php 5.2 as your search term. the issue thread will pop up and within it you will find the patch.

garym’s picture

Thank you Very... I'd be wandering around lost without hope without this excellent community!