I tried to download my working website to local xampp configuration. I exported database,used ftp and configured settings.php. Now, it says "page not found!". Where did I err possibly?

Comments

cog.rusty’s picture

Which URL gives you a "page not found"? The home page?

Is that a Drupal themed error page or a server error page?

Describe your setup, URL, directory etc.

riwaj’s picture

Yeah, the index.php page(home page,right?).

It is a server error page saying "page not found".

Previously, it was drupal themed error saying it couldn't connect to the database(authentication protocol) but

I fixed it with changes in settings.php. After that, I got this "page not found" error.

I have put my content in "c:/xampp/htdoc/cms/" as I did it initially on the public webserver. URL I type to access is "http://localhost/cms", there is index.php inside cms but it is not loading even when I call it by name too.

Thanks for taking interest in helping!
Regards

cog.rusty’s picture

Strange. So, http://localhost/cms/index.php is giving you a "Page not found" server error... And even stranger, it used to work before you made a change in settings.php...

Is index.php readable by the server? (permissions at least 644)

Does the URL which you typed change when you get the error? Have you tried disabling (renaming) your .htaccess file to see if anything changes?

Does an index.html file work? What about http://localhost ? Does that one work?

riwaj’s picture

I found that .htaccess file has no name when i download it to my local computer.

Is it that my .htaccess file got corrupted?

No redirection problem and index.php is fine i guess.

I could clean install drupal in another folder and I can use it smoothly. .htaccess seems fine there.

Any suggestions?

Regards

cog.rusty’s picture

I still don't have a clue about what is happening.

Since .htaccess is not entirely necessary (except for clean urls and for some corrections to the server settings),
- Try to move it out to your desktop temporarily, to see if it affected anything
- Also try to copy a fresh unmodified .htaccess file from a Drupal installation package, your version.

Have you put anything related to your cms site in your apache httpd.conf file? (You shouldn't need to).

Is your site's settings.php file under sites/default or under a sites/localhost.cms directory?
Try to replace it with a fresh one from a Drupal installation package of your version, changing only the $db_url and nothing else.

riwaj’s picture

-haven't changed httpd.conf
-did try replacing of settings.php, it is under sites/default
-changed $db_url

What I tried extra is inserted echo command to output string in the index.php and it did display the text,

that infers that index.php is loaded, may be something wrong with the bootstrap.inc,right?

or is it something else?

cog.rusty’s picture

So, you are saying that index.php runs and then somehow sends you to an apache 404 error "Page not Found"?

riwaj’s picture

yeah. How can I find out, what is wrong?

khan2ims’s picture

I copied my site to local server made changes to settings.php granted priveleges to the user .

Now the home page is showing up, but other links don't work, its giving url not found error.

Plz helpe out

Imran Khan
Project Manager
New Earth Marketing

cog.rusty’s picture

Are you using clean URLs? Are the links accessible if you type, for example, http://example.com/?q=node/5 instead of http://example.com/node/5 ?

If not, do the menu links look correct? Do your site's URLs contain a path like http://example.com/site (or did they before) ?

defunctcitizen’s picture

Try visiting http://yoursite.com/?q=node/5. If the page loads or you get a Drupal 404 (opposed to an Apache 404) it means you have clean URLs enabled but they're not working for some reason.

The problem is usually the result of a missing .htaccess file that contains the mod_rewrite rules. Double-check that when you copied the files from the original server, you also brought the .htaccess file over. It lives in the site's root directory. Depending on your operating system, this file may be hidden. Set your OS's view options to show hidden files.