I am very new to Drupal. I'm working on migrating a client site to new hosting. I am trying to get the site setup locally on my machine and I'm running into some strange issues.

I cannot login to the backend with the same credentials I use on the live site, even after I reset the password in the db.

All pages are 404. If I go to a URL of a page that I know exists, the value of the search box on the 404 page says node ###, which I'm assuming is the ID of the page in the database. But if I go to a page I know to actually be a 404, the value of the textbox on the search form is simply the term/url I tried accessing like it should be.
Also on the sidebar of the 404 page is a list of pages of the site. I can click any of them but, again they're all 404.

And I know I'm connected to the database because if I remove the connection string in settings, I get forwarded to the install page.

Is there another configuration setting I'm missing?

Comments

sprite’s picture

first ...

Describe the hosting setup in detail ...

Explain where and how you "reset the password in the db" ...

Is your production website still working properly, and do you have an appropriate backup of its php code files and its SQL database?

More information is needed before you can be properly assisted.

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

pinksharpii’s picture

I don't have a hosting setup - I mentioned this is all on my local machine. I'm using AMPPS.

I changed the pw with a SQL command in phpmyadmin.

This is completely separate from the production environment, yes it works. Everything is backed up. This is how I created the local version of the site.

sprite’s picture

Check vhosts settings.
Check operating system DNS management (What OS are your using?)

After creating an Apache vhost, it is useful to test that regular html pages can be served from the vhost before adding Drupal to the vhost.

Another don't try to use an auto-installer (if you have). Instead just place the Drupal code in the vhost root directory and run {site}/install.php

-

When running local, I prefer XAMPP. But take note that nearly every local *AMP stack needs a LOT of httpd-vhosts.conf, php.ini, and my.ini tweaking in order to run properly on a local machine.

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

pinksharpii’s picture

HTML pages work fine.

My hosts file looks as it should.

I did not run install.php. It's simply bringing down the live site to my local setup. Navigating to /install.php brings up the "Drupal is already installed" message. /update.php is fine too.

sprite’s picture

Possibly a problem in your vhosts settings or in your .htaccess settings then ...

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

sprite’s picture

Are you really running Drupal 6.x (which is an outdated and long ago unsupported version of Drupal)?

Also, check the versions of: Apache, SQL, and PHP, that were running on the server where the website was working, and check potential AMP stack compatibility version problems/conflicts.

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

pinksharpii’s picture

Yes. We inherited the client site recently and that's what they have been using. They have an issue we are working on fixing before upgrading their CMS.