while installing drupal in my machine i faced some unexpected permission problem something like below:
OK
|
Web server | Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7 |
OK
|
PHP | 5.4.7 |
OK
|
PHP register globals | Disabled |
OK
|
PHP extensions | Enabled |
OK
|
Database support | Enabled |
OK
|
PHP memory limit | 128M |
Error
|
File system | |
The directory sites/default/files is not writable. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see INSTALL.txt or the online handbook. | ||
OK
|
Unicode library | PHP Mbstring Extension |
OK
|
Settings file | The ./sites/default/settings.php file exists. |
Error
|
Settings file | The settings file is not writable. |
The Drupal installer requires write permissions to ./sites/default/settings.php during the installation process. If you are unsure how to grant file permissions, consult the online handbook. |
Check the error messages and proceed with the installation.
- create a folder named “files” in /opt/lampp/htdocs/drupal/sites/default/
- enter this command in the terminal sudo chmod 777 -R /opt/lampp/htdocs/drupal/sites/default/files
- rename the default.settings.php to settings.php inside /opt/lampp/htdocs/drupal/sites/default/default.settings.php
- sudo chmod 777 -R /opt/lampp/htdocs/drupal/sites/default/settings.php
you are now all ready to go now.
Cheers
</ niroze >
refernces: