Page 2 of 3
Re: Cannot start configure RHEL7
Posted: Fri Dec 30, 2016 1:34 pm
by dwhitfield
TEWLS wrote:The issue with using 5.3 is that it is incredibly out of data and no longer supported as stated
here.
In addition to what
@mcapra said, and just for clarity, RHEL/CentOS backport security fixes rather than upgrading. Each RHEL release is supported for 10 years, and they've even extended support for RHEL 5.
You can read more about their support at
https://access.redhat.com/support/polic ... es/errata/
Re: Cannot start configure RHEL7
Posted: Fri Dec 30, 2016 1:57 pm
by rkennedy
I also ran through a minimal install just now and it worked without a problem.
Downloaded
http://distro.ibiblio.org/centos/7/isos ... l-1611.iso
Installed wget, and net-tools
Ran ./fullinstall and it worked without a hiccup.
See attached for install.log - if you're still having issues I'd be interested to see what differentiating factors you had.
install.log
Re: Cannot start configure RHEL7
Posted: Fri Dec 30, 2016 2:25 pm
by TEWLS
@mcapra I just blew out the test machines I was working to install CentOS6 so I only have the original machine that has been STIGd.
@dwhitfield I was talking about PHP 5.3 as it went EoL mid 2013 and security fixes stopped in mid 2014. PHP 5.6.29 was just released and goes EoL on the 1st but the security vulnerabilities are covered until 2019. As described by RedHat
here they will release security patches for deprecated code but sometimes that fix will be to update the product to a covered release.
@rkennedy I am going to take a clean laptop home with me over the three-day weekend and install nagios logserver on CentOS 6 and 7 in a totally clean and fresh environment again and see what package issues I can find. I don't see how you got around the issues with it serving up a webpage without changing permissions or the issue with sourceguardian not being installed.
Re: Cannot start configure RHEL7
Posted: Fri Dec 30, 2016 3:00 pm
by mcapra
All the cron jobs seem to be running ok and there doesn't appear to be any missing or incorrect PHP bits. My suspicion is that there's some sort of Javascript blocking happening that's messing with the front-end.
Definitely let us know if anything interesting happens during your testing!
Re: Cannot start configure RHEL7
Posted: Tue Jan 03, 2017 9:20 am
by TEWLS
I attached what I have for java right now. I made a VM on my personal laptop and over New Years I built a brand new nothing changed added or modified version of CentOS7 using a minimal install and it worked once I updated SourceGuardian and changed the permissions on the nagioslogserver directory to apache. I am still in the same boat on the systems here and the only thing I am disabling is ipv6. The things I am doing to disable ipv6 are:
Removed ipv6 routes from hosts
staticed the machine with ipv6init=no
set /etc/sysconfig/network to NETWORKING_IPV6=no
blacklisting ipv6 in modprobe
set options in /etc/sysctl.d to show the below on boot
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
Re: Cannot start configure RHEL7
Posted: Tue Jan 03, 2017 12:45 pm
by mcapra
Is NodeJS installed on your NagiosLogServer machine by chance? I figured it was worth asking since it appears to exist on your test machine. We don't use NodeJS for anything on the backend.
Could you run through these steps to verify that jQuery and Javascript are both executing as expected?
Code: Select all
# put this html in /var/www/html/test.php
<!DOCTYPE html><html class="no-js"><head><script type="text/javascript" src="/nagioslogserver/media/js/jquery-1.10.1.min.js?ver=1.4.4"></script><script type="text/javascript">function setText() {$("body").text("jQuery is working!");alert("Javascript is working!");}</script></head><body onload="setText();">jQuery doesn't seem to be working...</body></html>
chmod 777 /var/www/html/test.php
# On your machine, visit the following page: http://<your_nls_host>/test.php
When visiting http://<your_nls_host>/test.php, you should see body text displaying "jQuery is working!" and an alert saying "Javascript is working!". If you don't see both of those things, either Javascript or jQuery is being blocked by something.
Afterwards, be sure to remove the test page:
Re: Cannot start configure RHEL7
Posted: Tue Jan 03, 2017 3:43 pm
by TEWLS
I removed nodejs as I really have no need for it. JQuery and Javascript both were responding. I will PM you the complete steps I was using on a fresh minimal install; where noted as admin version or whatever that was the php56 and disabling SELinux stuff.
Re: Cannot start configure RHEL7
Posted: Tue Jan 03, 2017 4:49 pm
by mcapra
Since we've ruled out any JQuery weirdness on the non-functional machine, my next suspicion is something with the PHP setup. Does your functional machine include all the PHP modules listed on your previously provided (non-functional machine's)
phpinfo(); output? That's an awful lot of modules i'm seeing:
Code: Select all
Additional .ini files parsed => /etc/php.d/apcu.ini,
/etc/php.d/bcmath.ini,
/etc/php.d/bz2.ini,
/etc/php.d/calendar.ini,
/etc/php.d/ctype.ini,
/etc/php.d/curl.ini,
/etc/php.d/dba.ini,
/etc/php.d/dom.ini,
/etc/php.d/enchant.ini,
/etc/php.d/exif.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/ftp.ini,
/etc/php.d/gd.ini,
/etc/php.d/gearman.ini,
/etc/php.d/geoip.ini,
/etc/php.d/gettext.ini,
/etc/php.d/gmp.ini,
/etc/php.d/iconv.ini,
/etc/php.d/igbinary.ini,
/etc/php.d/imagick.ini,
/etc/php.d/imap.ini,
/etc/php.d/interbase.ini,
/etc/php.d/intl.ini,
/etc/php.d/json.ini,
/etc/php.d/ldap.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mcrypt.ini,
/etc/php.d/memcache.ini,
/etc/php.d/mongodb.ini,
/etc/php.d/mssql.ini,
/etc/php.d/mysqlnd.ini,
/etc/php.d/mysqlnd_mysql.ini,
/etc/php.d/mysqlnd_mysqli.ini,
/etc/php.d/odbc.ini,
/etc/php.d/opcache.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_dblib.ini,
/etc/php.d/pdo_firebird.ini,
/etc/php.d/pdo_mysqlnd.ini,
/etc/php.d/pdo_odbc.ini,
/etc/php.d/pdo_pgsql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/pgsql.ini,
/etc/php.d/phar.ini,
/etc/php.d/posix.ini,
/etc/php.d/pspell.ini,
/etc/php.d/recode.ini,
/etc/php.d/redis.ini,
/etc/php.d/shmop.ini,
/etc/php.d/simplexml.ini,
/etc/php.d/snmp.ini,
/etc/php.d/soap.ini,
/etc/php.d/sockets.ini,
/etc/php.d/sourceguardian.ini,
/etc/php.d/sqlite3.ini,
/etc/php.d/sysvmsg.ini,
/etc/php.d/sysvsem.ini,
/etc/php.d/sysvshm.ini,
/etc/php.d/tidy.ini,
/etc/php.d/tokenizer.ini,
/etc/php.d/xdebug.ini,
/etc/php.d/xml.ini,
/etc/php.d/xml_wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlrpc.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/z-memcached.ini,
/etc/php.d/zip.ini
For comparison, here's what's loaded on my functional machine:
Code: Select all
Additional .ini files parsed => /etc/php.d/curl.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/json.ini,
/etc/php.d/ldap.ini,
/etc/php.d/phar.ini,
/etc/php.d/sourceguardian.ini,
/etc/php.d/zip.ini
Re: Cannot start configure RHEL7
Posted: Wed Jan 04, 2017 8:40 am
by TEWLS
Yes, the machine I am currently using for testing Nagios Log Server has every single possible php package and dependency because, like you guys, I thought it was a php issue. When the unit was first built and tested the only rpms on the machine came from the initial build and your install script. Logserver was not working on initial setup with just those packages. As this unit will not be able to exist with anything older than php 5.6 I updated to this version since this is a test and it was not working to begin with. Are you guys sure there is no mention of ::1 rather than localhost or 127.0.0.1 are do you think it would be worthwhile to change all mentions of localhost to the loopback address?
Re: Cannot start configure RHEL7
Posted: Wed Jan 04, 2017 1:53 pm
by rkennedy
Got it, based on the testing I've done, I've been unable to re-create it in house.
I don't believe we make any internal calls using ipv6, there may be to localhost though. If anything, I would disable ipv6, and/or modify the /etc/hosts file to remove any resolution to ipv6, if it exists.