ASTPP Admin Webpage not Loading

313 views
Skip to first unread message

Elkin D.

unread,
Oct 10, 2018, 7:22:40 PM10/10/18
to ASTPP
Dear Group,

On a clean installation of ASTPP with:

  • CentOS v7 minimal install
  • Freeswitch v1.6
  • ASTPP v3.6
  • Apache v2.4
  • PHP v7.1
  • MariaDB v5.5
Available here:

After installing, I have no access to the admin page in my browser, however, when I try netcat and check the available port publised in apache for this site, I found the following:

nc -z SERVER_IP 8081

Connection to SERVER_IP port 8081 [tcp/sunproxyadmin] succeeded!



HTTP/1.1 400 Bad Request

Date: Wed, 10 Oct 2018 22:54:33 GMT

Server: Apache/2.4.6 (CentOS) PHP/7.1.22

Content-Length: 226

Connection: close

Content-Type: text/html; charset=iso-8859-1


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>400 Bad Request</title>

</head><body>

<h1>Bad Request</h1>

<p>Your browser sent a request that this server could not understand.<br />

</p>

</body></html>



As you can see, this indicates something is not working properly on the install.
I have already checked the ports, virtual hosts creation, permissions and everything seems to be fine.

Do you have a suggestion on what can I check to troubleshoot this install?

Thanks a lot for your help!

Elkin D.

unread,
Oct 10, 2018, 7:56:59 PM10/10/18
to as...@googlegroups.com
Some additional info:

Contents of /etc/httpd/conf.d/astpp.conf:




Listen 8081

NameVirtualHost *:8081

<VirtualHost *:8081>

      servername  localhost

      ServerAlias localhost

      DocumentRoot /var/www/html/astpp

      DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl


      <IfModule mod_suphp.c>

              AddType application/x-httpd-php .php

              RemoveHandler .php

              <FilesMatch "\.php$" >

                      SetHandler x-httpd-php

              </FilesMatch>

              <Location />

                      suPHP_AddHandler x-httpd-php

              </Location>

      </IfModule>

      CustomLog /var/log/httpd/astpp_access_log combined

      ErrorLog /var/log/httpd/astpp_error_log


      Alias /astpp/ "/var/www/html/astpp/"

      <Directory "/var/www/html/astpp/">

              AllowOverride All

      </Directory>

      Options +Includes +FollowSymlinks

      <Location /stats>

              Options +Indexes

      </Location>

</VirtualHost>



And firewall status:

firewall-cmd --permanent --zone=public --add-port={5060,5061,5080,5081,8081}/tcp

Warning: ALREADY_ENABLED: 5060:tcp

Warning: ALREADY_ENABLED: 5061:tcp

Warning: ALREADY_ENABLED: 5080:tcp

Warning: ALREADY_ENABLED: 5081:tcp

Warning: ALREADY_ENABLED: 8081:tcp

success


And /var/log/httpd/astpp_access_log
cat /var/log/httpd/astpp_access_log

10.0.10.25 - - [10/Oct/2018:16:44:24 -0500] "\x16\x03\x01\x02" 400 226 "-" "-"

10.0.10.25 - - [10/Oct/2018:16:44:24 -0500] "\x16\x03\x01\x02" 400 226 "-" "-"

10.0.10.25 - - [10/Oct/2018:16:44:24 -0500] "\x16\x03\x01" 400 226 "-" "-"

10.0.10.25 - - [10/Oct/2018:16:45:33 -0500] "-" 408 - "-" "-"

10.0.10.25 - - [10/Oct/2018:17:06:23 -0500] "-" 408 - "-" "-"

10.0.10.25 - - [10/Oct/2018:17:52:40 -0500] "" 400 226 "-" "-"

10.0.10.25 - - [10/Oct/2018:17:54:33 -0500] "" 400 226 "-" "-"

::1 - - [10/Oct/2018:18:11:36 -0500] "\xff\xf4\xff\xfd\x06" 400 226 "-" "-"

::1 - - [10/Oct/2018:18:12:12 -0500] "" 400 226 "-" "-"

::1 - - [10/Oct/2018:18:13:36 -0500] "" 400 226 "-" "-"

10.0.10.25 - - [10/Oct/2018:18:39:37 -0500] "" 400 226 "-" "-"

10.0.10.25 - - [10/Oct/2018:18:52:34 -0500] "-" 408 - "-" "-"



Any ideas?


Kavin Chauhan

unread,
Oct 10, 2018, 10:50:22 PM10/10/18
to as...@googlegroups.com
Please reboot server after 1st installation. 

Any ideas?

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/7ba5dd72-a6aa-428b-b2ab-04ef18142bca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Elkin D. Gonzalez

unread,
Oct 10, 2018, 11:01:29 PM10/10/18
to as...@googlegroups.com
Already rebooted and even MySQL is not working. 

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/7ba5dd72-a6aa-428b-b2ab-04ef18142bca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

Devang Nathwani

unread,
Oct 11, 2018, 12:20:58 AM10/11/18
to as...@googlegroups.com
Why don’t you try from official link here 


For more options, visit https://groups.google.com/d/optout.
--
Thanks,
Devang Nathwani

Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

luigi

unread,
Oct 23, 2018, 5:51:21 PM10/23/18
to ASTPP
try 

systemctl restart php-fpm
systemctl enable php-fpm

worked for me. also make sure firewallD and fail2ban is stop for testing purpose.

cheers

Luigi

Kavin Chauhan

unread,
Oct 24, 2018, 12:12:29 AM10/24/18
to as...@googlegroups.com
This is very common issue in centos7 as it has its own firewall. So we always recommend to reboot server after first installation.

Reply all
Reply to author
Forward
0 new messages