Page 1 of 1

Webinterface shows empty page

Posted: Wed Aug 09, 2017 12:32 pm
by TeutonCandombero
Hi people,
I'm no linux newbie and no newbie to elastix. But it is my very first time with SecAst. It seems to me I've done something wrong while setting up the whole thing and I get only an empty page when I get on my browser and write
Could it be because I work with elastix and httpd is so configured that it automatically redirects http to https? Or is it a misconfiguration while setting SecAst up? I followed the Detailed Installation Guide. Have checked it already twice, and it seems I followed all steps without leaving one out...

Any ideas?


Re: Webinterface shows empty page

Posted: Wed Aug 09, 2017 10:05 pm
by Telium Support
You didn't post quite enough detail to give a definite answer, but I'll offer some suggestions:
  1. You didn't mentioned which option you chose for installing the web interface, so I'll assume option 1 (create a directory alias). Check the file /etc/httpd/conf.d/secast.conf and ensure the directory matches where you have installed SecAst web files.
  2. You didn't post any log files, but since you are running Elastix which is based on CentOS, your Apache error log file is most likely located in /var/log/httpd/error_log. Check the log file for errors (or post the relevant section so we can offer some suggestions).

Re: Webinterface shows empty page

Posted: Thu Aug 10, 2017 5:51 pm
by TeutonCandombero
I kee getting an empty page and this shows in the error_log:
[Thu Aug 10 14:40:12.709832 2017] [:error] [pid 4237] [client] PHP Warning: require_once(/var/www/html/settings.php): failed to open stream: No such file or directory in /usr/local/secast/web_interface/index.php on line 19
[Thu Aug 10 14:40:12.709882 2017] [:error] [pid 4237] [client] PHP Fatal error: require_once(): Failed opening required '/var/www/html/settings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/secast/web_interface/index.php on line 19
Somehow it keeps wanting to search for settings.php in /var/www/html but it is in /var/www/html/secast.
I've taken a look to index.php I could get most those ifs leaving only if (file_exists('/var/www/html/secast/settings.php')) $SOURCE_ROOT='/var/www/html/secast/ but I'm not quite sure it will solve the problem.

I have been reading, and it seems with the free edition I can do very little, but banning ips is something I could, if I had a file or a database where such IPs are kept. I have whether a database nor a file... SO how do I proceed?

Re: Webinterface shows empty page

Posted: Fri Aug 11, 2017 6:01 pm
by Telium Support
It sounds like your document root (set by PHP) is not pointing to the right place - but that's ok. (We'll try to recreate your problem on a future release so we can properly detect and override the document root for your distro.) A simple workaround is to create a symlink for settings.php to the correct document; for example:

Code: Select all

ln -s /usr/local/secast/web_interface/settings.php /var/www/html/settings.php
The GUI is useful for analysis of historical data, sources of attack, graphs, etc. but is not necessary for the operation of SecAst. Most of the reporting in the GUI is based on the MySQL database feature (which is not included in the free edition).

However, SecAst will still detect and block attackers in the Free Edition. All attack data is kept in an internal database (not MySQL) so it operates with all editions of SecAst.