TUTORIAL .htaccess files are disable on this webserver. Please enable

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,618
Reaction score
517
IncrediblePBX 11-12-1 for RPi2 64GB sdxc

Asterisk 11.18 ; Incred GUI 12.0.30
Hi all, I'm getting the following sysinfo alert

"Security Issue

.htaccess files are disable on this webserver. Please enable them

This is a critical issue and should be resolved urgently"

The Alert points to http://wiki.freepbx.org/display/F2/Webserver Overrides
refers to (ubunto) apache2.conf or (redhat) httpd.conf
and Look for the context "<Directory "/var/www/html">" or "<Directory "/var/www">"

but the info there doesnot apply to Debian setup of apache2 v2.2.22
The file setup is not the similar. It requires to set .htaccess
AllowOverride All (uncommented and set to "All")

I noticed a file 'security' at /etc/apache2/conf.d/security
I was about to add:
#<Directory "/var/www/html"> # was going to enable this overide but message went away by itself ??? :-o
# AllowOverride All
# Order Deny,Allow
# Deny from all
#</Directory>
Uncommented the above then tried to restart apache with
# service httpd restart
but got "httpd: unrecognized service"
Using Webmin GUI:
Webmin /Servers/Apache Webserver
Stop Apache
Start Apache
Still gettng this error
For completeness see also /etc/apache2/conf.d/local-error-pages it has commented out stuff that perhaps needs reading.

I think I have been chasing my tail:-
In System Overview make sure that "SHOW NEW" gets clicked and becomes "SHOW ALL" obviously show all includes historic alerts no longer relevant.
So I conclude this as SOLVED

Bye
 

omunni

Guru
Joined
Feb 12, 2010
Messages
27
Reaction score
7
Hello......... I just could not help myself posting the right fix on the topic posted. You never know when someone is asking my friend Google for answers and gets sent to this forum je je je.
Specs: Incredible PBX 11-12.1 for raspberry pi2

You can fix this manually by editing the file
/etc/apache2/sites-available/default
Change the section
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>


to
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>


Then restart the web server with
service apache2 restart

****In System Overview click "SHOW ALL" and notice warning is gone ! ! !
 

Dean Penderghast

New Member
Joined
May 3, 2016
Messages
14
Reaction score
0
Hello......... I just could not help myself posting the right fix on the topic posted. You never know when someone is asking my friend Google for answers and gets sent to this forum je je je.
Specs: Incredible PBX 11-12.1 for raspberry pi2


You can fix this manually by editing the file
/etc/apache2/sites-available/default
Change the section
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>


to
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>


Then restart the web server with
service apache2 restart

****In System Overview click "SHOW ALL" and notice warning is gone ! ! !
The above fix does not work for CentOS based installations. Since the Getting Started tutorial on this site suggests using CentOS as the main OS, can you explain where this file is located so users on CentOS can fix this issue please?
 
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top