Uploaded the drupal directory to my website in the public dir.
Navigated to http://www.mysite.com/drupal/
Received error page, 404 Not Found
Address bar references http://www.mysite.com/bin/install.php
I don't even have a bin directory. Why is it trying to go there?


VMII’s picture

Can you access yoursite.com/drupal/install.php directly ?

zenpawn’s picture

Yes, though with the same result.

cog.rusty’s picture

So drupal is in a "public_html/drupal" directory?
And there is no "public_html/bin" directory at all?
Did you make any changes to the drupal/.htaccess file or to the drupal/sites/default/settings.php file?

Also check if you have an .htaccess file in public_html which contain the word "bin" somewhere.

Until you solve the mystery, try renaming the "drupal" directory to something else ("cms" or "site" or "drupal5") to see what happens.

zenpawn’s picture

Correct, the drupal dir is in public_html and there is no public_html/bin directory.
I made no changes to drupal/.htaccess nor any of the .php files.
No .htaccess file in public_html
A mystery indeed! What would a rename accomplish?

cog.rusty’s picture

A rename of "drupal" would avoid some Apache directive which redirects or rewrites "drupal" to "bin/install.php".

Such a directive could be in an .htaccess file somewhere, or in an Apache configuration file (although I can't imagine why anyone would do such a thing)

If you rename "drupal" to "cms" and it still takes you to "bin/install.php", then also check for any small "index.html" file in your drupal directory which contains a redirect (although again I can't imagine why anyone would do such a thing)

Or simply ask your host: "I go to /drupal and it takes me to a non-existent /bin/install.php. What gives?"

VMII’s picture

A rename would exclude the drupal .htaccess to see if there is something in there that may need to be changed.

give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime

zenpawn’s picture

Hmmm... nothing's working. I know the documentation says it's a feature of the latest version that we needn't modify any of the scripts prior to executing install.php, but might there be a workaround by doing so?

VMII’s picture

no there is no way to override that I know of. However, have your tried installing Drupal inside the public root ? rather then in a subdirectory ? worth a shot to help diagnose and be able to give your host something to go on as I believe at this stage you should contact your host and discuss what is happening with them.

cog.rusty’s picture

Theoretically speaking, there could be a solution by modifying settings.php or .htaccess or somethings else, but not without having any idea what the problem is.

majorrobot’s picture

I had a similar problem, except that the address bar was referencing something like cgi-system/install.php. Never figured out why.

But I was able to go into settings.php and uncomment $base_url, which I then set to my drupal directory.

Worked like a charm.

manusevil’s picture

I was facing a similar problem and made this simple fix. Now drupal is up and running properly, thank you for the advice.

jyanko’s picture

Yup, this was exactly the fix I needed tonight..

I was also getting the cgi-system/install.php error dialog along with a 404 for the expected error page.
Seems that if you're not installing to the root of webdocs then you still need to modify the base_url var in that settings file.

Thanks funkminster for posting. Now if only this was mentioned in the basic setup instructions :-)

Eluzion’s picture

Where is the settings.php file in Drupal 6? All I see is the default.settings.php in sites/default which seems to be just the default template file for a settings.php.

RobertNelsonVance’s picture

I had this same issue a couple times on earlier Drupal 5x releases, but the later 5x release installs went fine. Now, again having this same issue with Drupal 6.

My work around for this same issue on the early 5x installations was to manually edit the base url and the sql configuration in the settings file. For those early 5x installs that I was having this problem with, this worked fine.

For the Drupal 6 install however, I have read everything above and done exactly what people suggested and am still receiving the following when I load my root directory (such as http://example.com/)... It redirects me to /cgi-system/install.php with the following 404:

Not Found
The requested URL /cgi-system/install.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Then I try just hitting /install.php and it redirects me to /cgi-system/install.php?profile=default with the following 404:

Not Found
The requested URL /cgi-system/install.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Help please. Any other suggestions?

rayshi02’s picture

I am a first timer to Drupal. I got a 404 accessing index.php (or install.php) when I tried to install 6.0 . The access log shows that the request was rewritten to


as supposed to be


It is actually a forwarding not a redirection since the URL in the browser did not change.

I have PHPCounter installed on the save Apache and it works just fine. It seems a problem from Drupal itself.

Any advice will be greatly appreciated.



kbaldauf’s picture

I had this exact issue on Dreamhost. Uncommenting the $base_url line and changing the $base_url to the URL of my drupal install in the file sites/default/default.settings.php did the trick.

schwachs’s picture

this worked for me, thank you.

trevorleenc’s picture

When the Dreamhost account got setup, apparently it was set to use php4, simply going into the panel and changing it to php5 fixed whatever problem was there...

honestly, I dont even know if drupal will run under 4, but I try to put all new sites on php5 regardless..

VMII’s picture

The first version of Drupal that is slated to drop support for PHP 4 is Drupal 7.

kodytucker’s picture

This happened to me too.

For some reason on of my domains at dreamhost.com was started with PHP 4.x by default. After reading this page I went to edit it, and was able to change it to PHP 5. Interestingly the option disappeared after that and didn't exist for my other websites, which I presume are using PHP 5.

wwwoliondorcom’s picture

Same problem !

I don't know why but Dreamhost panel had set PHP to PHP 4 when it usually set it to PHP 5, so I had to change that (when the panel was working...) to be able to install a new website.

admin_hari’s picture

i got this error message in browser:
The requested URL /drupal/admin/dashboard was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

working at localhost:
recently error occured when I want to update a page Title and save the action. I observed it so many times.

on viewing again by closing the window and passig the URL i found that the title saved, ok.

but how to control it. I can't publish the site and presnt this to the client.


VMII’s picture

is the dashboard module enabled?