hi, I am trying to install Drupal, but when I click next after entering my database information I get the following errors, any idea as to how I correct this?

TIA

Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in /home/andrewsblog/public_html/home/includes/install.inc on line 188

Warning: Cannot modify header information - headers already sent by (output started at /home/andrewsblog/public_html/home/includes/install.inc:188) in /home/andrewsblog/public_html/home/includes/install.inc on line 618

Warning: Cannot modify header information - headers already sent by (output started at /home/andrewsblog/public_html/home/includes/install.inc:188) in /home/andrewsblog/public_html/home/includes/install.inc on line 619

Comments

peterx’s picture

Forget about:
Warning: Cannot modify header information - headers already sent by (output started at /home/andrewsblog/public_html/home/includes/install.inc:188) in /home/andrewsblog/public_html/home/includes/install.inc on line 619
The message always appears when any error occurs before the stage where Drupal starts sessions.

fopen(./sites/default/default.settings.php is relative to the current directory and /home/andrewsblog/public_html/home/includes/install.inc suggests the current directory is /home/andrewsblog/public_html/home/. You probably installed sites/default/default.settings.php as /home/andrewsblog/public_html/sites/default/default.settings.php instead of /home/andrewsblog/public_html/home/sites/default/default.settings.php.

If you can start again, drop the /home after /public_html so you have:
/home/andrewsblog/public_html/includes/install.inc
/home/andrewsblog/public_html/sites/default/default.settings.php

petermoulding.com/web_architect

anwoke8204’s picture

I moved everything to the root directory of public_html and am still getting the following when trying to install after entering in the database information:

Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in /home/andrewsblog/public_html/includes/install.inc on line 188

Warning: Cannot modify header information - headers already sent by (output started at /home/andrewsblog/public_html/includes/install.inc:188) in /home/andrewsblog/public_html/includes/install.inc on line 618

Warning: Cannot modify header information - headers already sent by (output started at /home/andrewsblog/public_html/includes/install.inc:188) in /home/andrewsblog/public_html/includes/install.inc on line 619

could it be a problem with my server?
TIA

peterx’s picture

That include is:

function drupal_rewrite_settings($settings = array(), $prefix = '') {
  $default_settings = './sites/default/default.settings.php';

Your root directory is:
/home/andrewsblog/public_html/
Drupal should redirect to:
http://andrewsblog/install.php
install.php includes /includes/install.php

If you set up example.com as an add on domain at http://andrewsblog/example/, the install process might run as http://andrewsblog/example/install.php and start from the wrong directory. Is install running in the Web root directory, http://andrewsblog/install.php? If install runs in a different directory then the relative path, ./sites/default/default.settings.php, will be wrong.

petermoulding.com/web_architect

anwoke8204’s picture

yes install is running at the root of the website directory, I moved it after the first failed attempt to the root directory as per guidelines and attempted isntall again, but still got the same issue

web_newbie’s picture

Hi anwoke8204,
I received the same error message. As I solved it, I understood that I did a mistake during installation.

During Drupal installation, the system asks me to "move" the file "default.settings.php" to "default.php".
I renamed it, instead copying. That was my mistake :-(
You have to let in the "sites" folder BOTH files.

Go to your drupal folder (i.e. C:\xampp\htdocs\drupal-6.9\sites\default) and check if you have the following files:
default.settings.php
default.php

If you deleted one (or renamed, like me), please do a copy of the file and rename it.

Sorry for for my english.
Hope it helps and good luck.

Bye

Wildman’s picture

Yes, this solved my problem too: copied sites/default/default.settings.php to sites/default/settings.php

wmerydith’s picture

I just spent 3 days trying to figure why on earth my drupal install was bombing. The solution was:

"During Drupal installation, the system asks me to "move" the file "default.settings.php" to "default.php". I renamed it, instead copying. That was my mistake :-(
You have to let in the "sites" folder BOTH files."

The install documentation should really stress this point. It's not obvious that there's any reason not to rename.

fitzternet’s picture

I just ran into the same problem... And this is the correct fix. Updating the documentation would probably help some people out.

Although in my case, the two files were default.settings.php and settings.php (not default.php). Not sure why that is the case - but I'm installing Drupal 6 on Media Temple servers.

Marco Palmero’s picture

I was trying to install Drupal in my XAMPP installation and I got a similar error.

Installation wanted both the files to be present:
default.settings.php
settings.php

and not this (I did a copy and paste in Windows):
default.settings - Copy.php
settings.php

2dareis2do’s picture

Yes, this solved my problem too. Many thanks.

rosivaldon’s picture

Hi everyone,

I'm in Los Angeles and I'm looking for some help creating a database and granting privileges, I'll compensate you for your time, please call me at 323.841.4443.

Thanks,

Rosivaldo

scoutbaker’s picture

Please don't try to hijack another issue. If you really need such assistance with Drupal there's a Paid Drupal services forum.

---
"Nice to meet you Rose...run for your life." - The Doctor
My first public Drupal site - EyeOnThe503