help-apache.htaccess error ipbx

Incredible PBX 12.0.74 for Raspberry Pi2 + FOP 2.27 for Raspberry PI/Debian
Asterisk: UP Apache: UP MySQL: UP
SendMail: UP IPtables: UP SSH: UP
LAN port: UP Fail2Ban: UP Webmin: UP
RAM:73172 Raspbian (wheezy) Disk:51G
Asterisk 11.20.0 Incredible GUI 12.0.30 ; update-guiU18.
Private IP: 192.168.1.252 . Public IP: xx.xx.xx.xx

The fpbx GUI all works ok but not FOP2.

FOP2 - Not getting the extension login/pass screen just the Internal Server Error message
http://pi2/fop2
Also
http://pi2/fop2/admin
Gives:-
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contactserver administrator, webmaster@localhost and ...
More information ..... available in the server error log.
Apache/2.2.22 (Debian) Server at pi2 Port 80

Originally FOP2 was ok but FPBX modules updated, and latest modules may have broken FOP2
I have tried reinstall of FOP2, and re-config as FOP2 installation guidance.

I need some clue where to look to fix this. I attach 2 files extracts from /var/log/apache2/access.log and /var/log/apache2/error.log
FOP2 startup is slow; FOP2(demo mode) Connection test to asterisk manager works ok so the admin and amp111 pass are ok.
Where do I go from here?
I am about to hit the pillow now I look fwd to your response in late morning.
Regards

Comments

  • Just remove the .htaccess file in /var/www/html/fop2 and see if that works... perhaps you are missing some apache modules after that update (mod_headers?).
  • edited December 2015
    I renamed the /var/www/html/fop2/.htaccess to rem.htaccess and that allowed the login to come up and that works - thanks. - BUT after enabling headers as below I renamed back to .htaccess and all was well.

    Mmmm now where do I find mod_headers ? Oh I get it:
    enable headers by
    a2enmod headers
    service apache2 restart
    

    you can see the enabled mods- symlinks in /etc/apache2/mods-enabled
    Regards

  • edited December 2015
    I have no idea about your apache install and modules, google might help, I found this (although not very promising):

    http://serverfault.com/questions/464319/enabling-mod-headers-on-apache2

    In any case, .htaccess file is not a requirement, headers are there to prevent caching files, and that is important only when you upgrade FOP2 versions for now.. so you can get it working with no issues without that .htaccess file.
Sign In or Register to comment.