8

I have cloned a git repository containing a magento site in the same way as I normally do when joining a project. I went through the usual process of setting up database and setting everything up on my local.

This time for some reason everytime I try to view the site through my browser it redirects to the magento install page. I have only set up a few magento sites in the past and none were from scratch but I assume due to not having to install it before, I shouldn't have to this time. Any ideas what may be wrong or what file I need to modify to get this to work?

12

The chief cause of this is a missing or misnamed local.xml file in app/etc/ - this file is responsible for database connection details and cache settings. If it is missing it is assumed that it is a new installation and prompts you through the installation routine.

|improve this answer|||||
  • Hey, thanks very much for the answer. What you suggested definitely fixed one problem but for some reason now every page says - There has been an error processing your request. If you could point me in the right direction it would be a great help. Thanks again.. – develophper Oct 14 '13 at 14:17
  • In many cases this is because the defined database user does not have permission to read/update the database as configured. There is likely an error # issued on that screen, there should be a corresponding log # in your mage install var/report/ folder or check in the general php error log. Best of luck. – philwinkle Oct 14 '13 at 14:31
  • @ThomasRyan The "There has been an error processing your request." error page usually contains a reference number. This reference points you to a text file under var/reports with more information on the error. It is likely unrelated to this question so if you can't resolve it yourself please create a new question. – Kristof at Fooman Oct 14 '13 at 14:31
  • @philwinkle sounds good thank you very much. – develophper Oct 14 '13 at 14:33
  • 1
    even if app/etc/local.xml is present, the content may be wrong or corrupt in some way. make sure all the node contents look correct and the document is valid xml. – Ariel Allon Feb 24 '15 at 6:18
1

Mainly there are two reasons if you are getting installation page:

app/etc/local.xml file is missing or this file has wrong or unfinished syntax.

|improve this answer|||||
0

wrong permissions. i had this problem when updated core files under root. fixed the problem by running in magento folder:

chown -R www-data:www-data ./*
|improve this answer|||||
0

Addition to above answers there is a possibility of missing file while doing migration. Rename your downloader directory to something else and refresh the page it will start showing the missing file.

|improve this answer|||||
0

If you are using Linux servers and fresh installation of Magento just change ownership of folder. Sudo chown -R www-data:www-data /{Dir}

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.