Hi.
I installed drupal 5 and after the installation (which didn't pose any problems, and didn't give any error messages), I was happy to check my new drupal site, only to find that it redirected me to the install.php file, and got the following message:
Drupal already installed

* To start over, you must empty your existing database.
* To install to a different database, edit the appropriate settings.php file in the sites folder.
* To upgrade an existing installation, proceed to the update script.

I thought to myself that I might as well delete the install.php, since it is no longer needed, but wow, what a surprize it was when I was again redirected to install.php, but this time it didn't exist, so I got a 404 error that the file install.php could not be found.

I cleaned my database, deleted my site, and started over, but it didn't work. I get the same page.
To better explain: when I type http://www.mysite.com it takes me to http://www.mysite.com/install.php

Any sugestions? I am really getting frustrated because I can't publish anything on my site, since it gets redirected to install.php, unless I type a direct address to the file (like http://www.mysite.com/index.php)
My browser cache has been deleted, tried it on 3 computers, but a guy at my hosting company says it works for him (I doubt it).

Comments

edandrews’s picture

I had a similar issue. MySQL is set up correctly, and PHP is working fine, and I've made all of the PHP directive changes on the php.ini file. I'm using IIS 6 on Windows Server 2003. This is the last holdup, so if anyone can help, I'd appreciate it. Thanks.

Ed

hexer4u’s picture

It has been more than a week since my post.
Doesn't anyone have any ideas?
This will only be a downside for drupal, if this issue is not resolved.
I am very angry at you guys.

osvaldopt’s picture

Hi.

My website is also doing the same. However this behavior is not constant.

I've tried to clean up the browser cache, but it doesn't solve the problem.

Then the problem solves itself, then it returns later, then solves,

I spent 30 minutes trying to figure out a reason, but I can't. I've cleaned the cache, cokies, but the problem returns.

The problem only appears only if I try to get to the main page of the site " / ".

I'm using Drupal 5.1 with PHP 4.4.6.

The browser is Firefox 2.0.0.3 on Ubuntu.

Best regards

Osvaldo

lopolencastredealmeida’s picture

I already sent you several hints by email and since I could test your URI I found an interesting error.

If you go to http://www.mysite.com/ everything goes ok
If you go to http://mysite.com/ you are redirected to http://mysite.com/install.php

SUGGESTION:

Open Drupal .htaccess and search for ...

# If you want the site to be accessed WITH the www. only, adapt and
# uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]

... and make it look like...

# If you want the site to be accessed WITH the www. only, adapt and
# uncomment the following:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule .* http://www.example.com/ [L,R=301]

It may work :)

Lopo
Humaneasy Consulting
www.humaneasy.com

Humaneasy Consulting
iPublicis!COM
www.humaneasy.com
www.ipublicis.com

CSM & CSPO

lopolencastredealmeida’s picture

Any sugestions? I am really getting frustrated because I can't publish anything on my site, since it gets redirected to install.php, unless I type a direct address to the file (like http://www.mysite.com/index.php)

This seems to be a misconfiguration in your webserver that is not reconizing index.php as a default page (maybe only index.html and others) OR something with the .htaccess file.

Humaneasy Consulting
iPublicis!COM
www.humaneasy.com
www.ipublicis.com

CSM & CSPO

jim2161’s picture

.

jim2161’s picture

Have you tried adding "DirectoryIndex index.php index.html" (without the quotes) to your .htaccess file ?

JS

camypaj’s picture

Hello all,

I've found this thread about the same problem, and the solution worked for me.

http://drupal.org/node/127843

just set the base_url in settings.php according to your setup.

Regards,
Milan

Harry Slaughter’s picture

this can also happen if you have removed install.php from the docroot

--
Devbee - http://devbee.net/

philsward’s picture

If you did an upgrade from say... D6 -> D7, make sure you check the permission of the /sites/default Correct me if I'm wrong, but this directory should be a chmod 700.

I've had all sorts of problems when the permission is anything different...

Ashok Gj’s picture

I was working on a git project. Everything was working fine till I took a pull from the repository. The settings.php got updated. All the configuration changes I'd made earlier were lost. Fixing the "settings.php" file fixed everything for me.

ricky93’s picture

What did you fix within settings.php that prevented you from seeing the installation page again?

sai_drupal’s picture

I found the solution to this issue.
See the solution given by bryancasler on the page https://www.drupal.org/node/984112

How to fix this problem

Go to xampp\mysql\bin
Open my.ini
Change "max_allowed_packet" from "1m" to "16m"
Save my.ini
Now restart MySql through the XAMPP control panel.

Thanks.

cquence’s picture

Thanks dude, this solution helped me on drupal 8.5.3. 
I have no idea what happened but all of a sudden started to redirect me to /core/install.php ... after I've changed settings in my.ini site started to work normally again. So again, thanks!

dwainash’s picture

This worked for me. Thank you.