CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • CiviCRM 4.5.5 "The CiviCRM debug log should not be downloadable."
Pages: [1]

Author Topic: CiviCRM 4.5.5 "The CiviCRM debug log should not be downloadable."  (Read 447 times)

dvhirst

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.5
  • CMS version: WordPress
  • MySQL version: 5.6
  • PHP version: 5.4
CiviCRM 4.5.5 "The CiviCRM debug log should not be downloadable."
February 02, 2015, 01:35:25 pm
Hi,

I know there is an extensive post for this topic at CiviCRM 4.4.4 -- and I've read it, and checked my installation, and read / checked a bunch of other posts ...

Anyhow, in a bare browser (Firefox and MS IE in this case), with no logon, I can browse to the log directory and pull up the log, no problem. 

But I should not be able to do this, so please help me figure out why I can. 

Configuration:

AWS EC2 micro instance, LAMP installed, Elastic IP enabled, access locked down to TLS https://,  VirtualHost set with:
        <Directory /var/www/wordpress/*>
                AllowOverride All
                Order Deny,Allow
                Allow from all
        </Directory>
for both port 80 and port  443, and .htaccess in the log directory:
<user>@ip-<Elastic IP>:/var/www/wordpress/wp-content/plugins/files/civicrm/ConfigAndLog$ ls -al
total 16
drwxr-xr-x 2 www-data www-data 4096 Feb  2 00:09 .
drwxr-xr-x 7 www-data www-data 4096 Feb  2 00:09 ..
-rw-r--r-- 1 www-data www-data 1309 Feb  2 00:09 CiviCRM.<ID obscured>.log
-rw-r--r-- 1 www-data www-data   56 Feb  2 00:09 .htaccess

and

<user>@ip-<Elastic IP>:/var/www/wordpress$ sudo cat /var/www/wordpress/wp-content/plugins/files/civicrm/ConfigAndLog/.htaccess
<Files "*">
  Order allow,deny
  Deny from all
</Files>

But the log shows up anyhow.

Ideas?

Thanks,

DVHirst

dvhirst

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.5
  • CMS version: WordPress
  • MySQL version: 5.6
  • PHP version: 5.4
Re: CiviCRM 4.5.5 "The CiviCRM debug log should not be downloadable."
February 02, 2015, 02:28:02 pm
Oops, should have looked that one more place.  In the AWS (and perhaps other recent) LAMP implementations, the Apache 2 configuration data is not in httpd.conf; rather it is in apache2.conf. 

Editing that file to replace

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

with

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

fixed my problem.

DVHirst

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • CiviCRM 4.5.5 "The CiviCRM debug log should not be downloadable."

This forum was archived on 2017-11-26.