Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
I am assuming that I need to put a .htaccess file in a directory such as mysite/sites/default/files/civicrm/ConfigAndLog/Is that correct?
Can someone suggest a suitable such file, please?
<Directory /var/www/sites/default/files/civicrm/ConfigAndLog> Order allow,deny Deny from all</Directory>
'/etc/apache2/apache2.conf'; // Debian'/etc/apache2/conf.d'; // Debian'/etc/apache2/sites-available'; // Debian'/etc/apache2/httpd.conf'; // OS X'/etc/httpd/conf/httpd.conf'; // RedHat (Googled, untested)'/opt/local/apache2/conf/httpd.conf'; // MacPorts (Googled, untested)'/Applications/MAMP/conf/apache/httpd.conf'; // MAMP'/Applications/XAMPP/etc/httpd.conf'; // XAMPP OS X (Googled, untested)'/usr/local/etc/apache2x/httpd.conf'; // FreeBSD (Googled, untested)'/usr/local/etc/apache22/httpd.conf'; // FreeBSD (Googled, untested)
location ~ ^/sites/.*/files/civicrm/(ConfigAndLog|upload|templates_c) { deny all; }
'/etc/nginx/nginx.conf'; // Debian, RedHat'/etc/nginx/sites-available'; // Debian'/opt/local/etc/nginx/nginx.conf'; // MacPorts (Googled, untested)'/usr/local/etc/nginx/nginx.conf '; // FreeBSD (Googled, untested)
What I actually did was to change the file permissions on the two directories concerned as per this screenshot...This means that the permissions are set such that User and Group can Read but World cannot.It also means that only User can Write.Actually I set it so that User and Group could Execute but World could not, so the Permissions are actually 0750 (not 0751).Would that accomplish the same thing as setting a .htaccess file?
For me, 4.44 is a dead duck - I am an implementer, not a Linux guru. How on earth am I supposed to get this working? Contrary to the documentation, regular users get these messages not just administrators (depending on what you mean by administrators). Is there some way that I can choose to accept the risk of these folders being readable and suppress these messages? Especially since they don't seem to be readable anyway... And get on with 4.44?