When I get to the stage where I enter the databse details, I hit "save and continue". Then I get the following errors:


Warning: fopen(./sites/default/settings.php) [function.fopen]: failed to open stream: Permission denied in D:\hshome\brasstacks\cityofwaterfordbrass.com\includes\install.inc on line 236

Warning: Cannot modify header information - headers already sent by (output started at D:\hshome\brasstacks\cityofwaterfordbrass.com\includes\install.inc:236) in D:\hshome\brasstacks\cityofwaterfordbrass.com\includes\install.inc on line 618

Warning: Cannot modify header information - headers already sent by (output started at D:\hshome\brasstacks\cityofwaterfordbrass.com\includes\install.inc:236) in D:\hshome\brasstacks\cityofwaterfordbrass.com\includes\install.inc on line 619

any ideas?

GF

Comments

Ole Martin’s picture

Have you right permissions (cmod) in your directory and files?

Drupal i Norge - (DiN)
Ole Martin
http://www.drupal.no

grungefreak1’s picture

Can you please expand on this? I am pretty new to drupal.

GF

Shelhezan’s picture

Hi, grungefreak1,

chmod is a command in a bash or shell to grant write/read-permissions for any programm so they can change the content of folders.

First of all, you grant permissions to the settings.php and the default folder. They have to be in ./drupal-x.x/sites/default/settings.php where the to x's stand for your drupal release.

Do you know how to do that?

Greets,

Shel

P.S.: Read the Install.txt in the parent directory of drupal. There you find some hints.

Shelhezan’s picture

Hi, Ole,

actually grungefreak1 had permitted the permissions. Otherwise he shouldn't get so far to see that the error message or am I wrong?

Greet,

Shel

lenkkivihko’s picture

Had a same issue and this helped (from INSTALL.txt)

Especially this. Do not do mv but cp. I got the impression from the installation text that the settings file should be renamed but it should be copied...

cp sites/default/default.settings.php sites/default/settings.php

===============
2. CREATE THE CONFIGURATION FILE AND GRANT WRITE PERMISSIONS

Drupal comes with a default.settings.php file in the sites/default
directory. The installer uses this file as a template to create your
settings file using the details you provide through the install process.
To avoid problems when upgrading, Drupal is not packaged with an actual
settings file. You must create a file named settings.php. You may do so
by making a copy of default.settings.php (or create an empty file with
this name in the same directory). For example, (from the installation
directory) make a copy of the default.settings.php file with the command:

cp sites/default/default.settings.php sites/default/settings.php

Next, give the web server write privileges to the sites/default/settings.php
file with the command (from the installation directory):

chmod o+w sites/default/settings.php

So that the files directory can be created automatically, give the web server
write privileges to the sites/default directory with the command (from the
installation directory):

chmod o+w sites/default
====================

Harjoituspäiväkirja - www.lenkkivihko.fi

Shelhezan’s picture

That's the riddle's solution.

cp and not mv it.

cius’s picture

This has not worked for me. I'm installing drupal on windows. I copied the file so that now I have both default.settings.php and settings.php in the ./sites/default directory. I've tried giving both the IIS_IUSR and NETWORK SERVICE users full control over the entire directory. I still receive Permission Denied on line 236 of the install.inc file.

Any advice?

cius’s picture

On Vista (and I presume Windows 7/Server 2008) they changed the IIS account and group to IUSR and IIS_IUSRS. I have previously granted permissions tot he group IIS_IUSRS, but not to the IUSR account specifically. Apparently, IUSR needs permissions as well. If you have this same problem and are running drupal via IIS, try granting permissions to IUSR.

francewhoa’s picture

@grungefreak1: Same here. The following worked for me http://drupal.org/node/735642

Loving back your Drupal community result in multiple benefits for you