hzyla
June 18, 2013, 6:17pm
1
I have followed this article for setting up with CentOS 6.3.
Was not able to find 6.3 so I am using 6.4 Webserver - Server
Everything went smooth until I tried to connect to the website.
error_log and access_log have nothing useful I think
selinux is turned off, port 80 is fine.
telnet localhost 80
"Connected to localhost."
How do I troubleshoot this?
etc/httpd/conf/httpd.conf
User asterisk
Group asterisk
I changed LogLevel to emerg and the error log has no more information then it did originally.
LogLevel emerg
I was following this tutorial:
http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+on+Centos+6.3
[Tue Jun 18 10:19:00 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 18 10:19:00 2013] [notice] Digest: generating secret for digest authentication …
[Tue Jun 18 10:19:00 2013] [notice] Digest: done
[Tue Jun 18 10:19:01 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured – resuming normal operations
[Tue Jun 18 10:19:00 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jun 18 10:19:01 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
I am installing on CentOS VirtualBox, and the network is configured as a bridge. This has worked with AsteriskNow / FreePBX / A2billing, but trying to compile from source, the web server does not work.
TLDR: Just need some way to troubleshoot what is wrong, port, firewall, invalid configuration?..
hzyla
June 18, 2013, 6:23pm
2
[Tue Jun 18 10:19:00 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 18 10:19:00 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 18 10:19:00 2013] [notice] Digest: done
[Tue Jun 18 10:19:01 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Jun 18 11:18:13 2013] [notice] caught SIGTERM, shutting down
[Tue Jun 18 11:18:46 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 18 11:18:46 2013] [info] Init: Seeding PRNG with 256 bytes of entropy
[Tue Jun 18 11:18:46 2013] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue Jun 18 11:18:46 2013] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue Jun 18 11:18:46 2013] [info] Init: Initializing (virtual) servers for SSL
[Tue Jun 18 11:18:46 2013] [info] mod_ssl/2.2.15 compiled against Server: Apache/2.2.15, Library: OpenSSL/1.0.0-fips
[Tue Jun 18 11:18:46 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 18 11:18:46 2013] [notice] Digest: done
[Tue Jun 18 11:18:46 2013] [debug] util_ldap.c(2089): LDAP merging Shared Cache conf: shm=0x7fac9504e728 rmm=0x7fac9504e780 for VHOST: localhost.localdomain
[Tue Jun 18 11:18:46 2013] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Tue Jun 18 11:18:46 2013] [info] LDAP: SSL support available
[Tue Jun 18 11:18:47 2013] [info] Init: Seeding PRNG with 256 bytes of entropy
[Tue Jun 18 11:18:47 2013] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue Jun 18 11:18:47 2013] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue Jun 18 11:18:47 2013] [debug] ssl_scache_shmcb.c(253): shmcb_init allocated 512000 bytes of shared memory
[Tue Jun 18 11:18:47 2013] [debug] ssl_scache_shmcb.c(272): for 511920 bytes (512000 including header), recommending 32 subcaches, 133 indexes each
[Tue Jun 18 11:18:47 2013] [debug] ssl_scache_shmcb.c(306): shmcb_init_memory choices follow
[Tue Jun 18 11:18:47 2013] [debug] ssl_scache_shmcb.c(308): subcache_num = 32
[Tue Jun 18 11:18:47 2013] [debug] ssl_scache_shmcb.c(310): subcache_size = 15992
[Tue Jun 18 11:18:47 2013] [debug] ssl_scache_shmcb.c(312): subcache_data_offset = 3208
[Tue Jun 18 11:18:47 2013] [debug] ssl_scache_shmcb.c(314): subcache_data_size = 12784
[Tue Jun 18 11:18:47 2013] [debug] ssl_scache_shmcb.c(316): index_num = 133
[Tue Jun 18 11:18:47 2013] [info] Shared memory session cache initialised
[Tue Jun 18 11:18:47 2013] [info] Init: Initializing (virtual) servers for SSL
[Tue Jun 18 11:18:47 2013] [info] mod_ssl/2.2.15 compiled against Server: Apache/2.2.15, Library: OpenSSL/1.0.0-fips
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1833): proxy: grabbed scoreboard slot 0 in child 1509 for worker proxy:reverse
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1949): proxy: initialized single connection worker 0 in child 1509 for (*)
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1509): Initializing Python.
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1833): proxy: grabbed scoreboard slot 0 in child 1508 for worker proxy:reverse
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1852): proxy: worker proxy:reverse already initialized
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1949): proxy: initialized single connection worker 0 in child 1508 for (*)
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1508): Initializing Python.
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1833): proxy: grabbed scoreboard slot 0 in child 1507 for worker proxy:reverse
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1852): proxy: worker proxy:reverse already initialized
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1949): proxy: initialized single connection worker 0 in child 1507 for (*)
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1507): Initializing Python.
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1833): proxy: grabbed scoreboard slot 0 in child 1512 for worker proxy:reverse
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1852): proxy: worker proxy:reverse already initialized
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1949): proxy: initialized single connection worker 0 in child 1512 for (*)
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1512): Initializing Python.
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1833): proxy: grabbed scoreboard slot 0 in child 1513 for worker proxy:reverse
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1852): proxy: worker proxy:reverse already initialized
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1949): proxy: initialized single connection worker 0 in child 1513 for (*)
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1513): Initializing Python.
[Tue Jun 18 11:18:47 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Jun 18 11:18:47 2013] [info] Server built: May 13 2013 22:11:16
[Tue Jun 18 11:18:47 2013] [debug] prefork.c(1018): AcceptMutex: sysvsem (default: sysvsem)
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1833): proxy: grabbed scoreboard slot 0 in child 1516 for worker proxy:reverse
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1852): proxy: worker proxy:reverse already initialized
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1949): proxy: initialized single connection worker 0 in child 1516 for (*)
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1516): Initializing Python.
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1833): proxy: grabbed scoreboard slot 0 in child 1517 for worker proxy:reverse
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1852): proxy: worker proxy:reverse already initialized
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1949): proxy: initialized single connection worker 0 in child 1517 for (*)
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1517): Initializing Python.
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1833): proxy: grabbed scoreboard slot 0 in child 1518 for worker proxy:reverse
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1852): proxy: worker proxy:reverse already initialized
[Tue Jun 18 11:18:47 2013] [debug] proxy_util.c(1949): proxy: initialized single connection worker 0 in child 1518 for (*)
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1518): Initializing Python.
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1517): Attach interpreter ''.
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1512): Attach interpreter ''.
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1508): Attach interpreter ''.
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1509): Attach interpreter ''.
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1516): Attach interpreter ''.
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1507): Attach interpreter ''.
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1513): Attach interpreter ''.
[Tue Jun 18 11:18:47 2013] [info] mod_wsgi (pid=1518): Attach interpreter ''.
hzyla
June 19, 2013, 4:16pm
3
I am just looking for some help on how to troubleshoot this.
hzyla
June 20, 2013, 4:58pm
4
My problem was because I had asterisk as user instead of apache as well as -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
on ip tables.
but mysqld fails to start now.