Drupal Installation seltsame Erlaubnis.

480
Nitish

Ich versuche, Drupal 7 in meiner Linux-Maschine (Fedora 17) zu installieren. Ich habe die chmod -R 755Berechtigung zum Verzeichnis /var/www/html/drupalzusätzlich go+wzum gleichen Verzeichnis rekursiv erteilt . Aber als ich versuche, das Drupal 7 zu installieren, heißt es

File system  The directory sites/default/files does not exist. 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. 

Ich habe aber das /sites/default/filesVerzeichnis, das ich manuell angelegt habe. ls -lfür die Verzeichnisse sind:

[root@localhost drupal]# ls -l total 240 -rw-rw-rw-. 1 root root 6553 Mar 31 06:43 authorize.php -rw-rw-rw-. 1 root root 75229 Mar 31 06:43 CHANGELOG.txt -rw-rw-rw-. 1 root root 1481 Mar 31 06:43 COPYRIGHT.txt -rw-rw-rw-. 1 root root 720 Mar 31 06:43 cron.php drwxrwxrwx. 4 root root 4096 Mar 31 06:43 includes -rw-rw-rw-. 1 root root 529 Mar 31 06:43 index.php -rw-rw-rw-. 1 root root 1451 Mar 31 06:43 INSTALL.mysql.txt -rw-rw-rw-. 1 root root 1874 Mar 31 06:43 INSTALL.pgsql.txt -rw-rw-rw-. 1 root root 688 Mar 31 06:43 install.php -rw-rw-rw-. 1 root root 1298 Mar 31 06:43 INSTALL.sqlite.txt -rw-rw-rw-. 1 root root 17861 Mar 31 06:43 INSTALL.txt -rw-rw-rw-. 1 root root 18092 Mar 31 06:43 LICENSE.txt -rw-rw-rw-. 1 root root 8191 Mar 31 06:43 MAINTAINERS.txt drwxrwxrwx. 4 root root 4096 Mar 31 06:43 misc drwxrwxrwx. 42 root root 4096 Mar 31 06:43 modules drwxrwxrwx. 5 root root 4096 Mar 31 06:43 profiles -rw-rw-rw-. 1 root root 5376 Mar 31 06:43 README.txt -rw-rw-rw-. 1 root root 1561 Mar 31 06:43 robots.txt drwxrwxrwx. 2 root root 4096 Mar 31 06:43 scripts drwxrw-rw-. 4 root root 4096 Mar 31 06:43 sites drwxrwxrwx. 7 root root 4096 Mar 31 06:43 themes -rw-rw-rw-. 1 root root 19416 Mar 31 06:43 update.php -rw-rw-rw-. 1 root root 9642 Mar 31 06:43 UPGRADE.txt -rw-rw-rw-. 1 root root 2051 Mar 31 06:43 web.config -rw-rw-rw-. 1 root root 417 Mar 31 06:43 xmlrpc.php 

und ls -lfür sites/default/filesist

[root@localhost default]# pwd /var/www/html/drupal/sites/default [root@localhost default]# ls -l total 28 -rwxrw-rw-. 1 root root 23197 Mar 31 06:43 default.settings.php drwxrwxrwx. 2 root root 4096 Mar 31 06:48 files 
0

1 Antwort auf die Frage

0
Hakim

Fedora verwendet SELinux für die Zugriffskontrolle. Möglicherweise müssen Sie setsebool& den chconBefehl verwenden, um den Verzeichniskontext für SELinux wie folgt zu ändern:

http://www.if-not-true-then-false.com/2010/enable-apache-userdir-with-selinux-on-fedora-centos-red-hat-rhel/