Need the internet to confirm my sanity. On a Drupal 7 site it's saying "The directory sites/default/files is not writable." So I checked every permission but I don't see the issue. Since this isn't a public server, I temporarily turned off SELinux. Another Drupal 8 site is running on the same server with the exact same permissions. What am I missing?
getenforce
output:
Permissive
ps aux | grep httpd
output:
root 29064 0.0 0.1 262224 6492 ? Ss 18:26 0:00 /usr/sbin/httpd -DFOREGROUND
apache 29065 0.0 0.0 261884 3672 ? S 18:26 0:00 /usr/sbin/httpd -DFOREGROUND
apache 29066 0.0 0.2 1188648 10040 ? Sl 18:26 0:00 /usr/sbin/httpd -DFOREGROUND
apache 29067 0.0 0.2 1778408 8000 ? Sl 18:26 0:00 /usr/sbin/httpd -DFOREGROUND
/sites/default/files
is a symlink and the permission should be ignored
lrwxrwxrwx 1 root root 31 Mar 18 18:14 files -> /mnt/efs/website/publicfiles/
So let's go down the tree
drwxr-xr-x 12 root root 6144 Feb 17 23:27 efs
drwxr-xr-x 4 root root 6144 Feb 17 23:28 website
drwxrwxr-x 110 apache web 141312 Mar 18 18:16 publicfiles
EDIT (from comment below):
/etc/httpd/conf/httpd.conf
:
<Directory "/var/www/html">
Options Indexes FollowSymLinks
</Directory>
<VirtualHost *:80>
... server info ...
<Directory "/var/www/html/website/public_html">
AllowOverride All
Require all granted
Options -Indexes +FollowSymLinks
</Directory>
</VirtualHost>
.htaccess:
# Follow symbolic links in this directory.
Options +FollowSymLinks
$ [sudo] chmod u+w /sites/default/
help? – 100pic Mar 19 '19 at 3:55