Manual Installation Failure
-
- Posts: 7
- Joined: Tue Aug 10, 2010 11:38 am
Manual Installation Failure
No matter what I try (Fedora 12, 13 or CentOS 5.4, 5.5) I get the following errors while following the manual installation instructions. I have tried both the stable and devel on all of the platforms with the same results. I'm using the images provided by Rackspacecloud since I am unable to host it myself at this time. Is there any better / more through installation instructions / requirements that I can follow to get this installed?
[root@nagios1 nagiosxi]# ./3-dbservers
Initializing PostgresQL...
postgresql: unrecognized service
Starting PostgresQL...
postgresql: unrecognized service
cp: cannot create regular file `/var/lib/pgsql/data/pg_hba.conf': No such file or directory
Restarting PostgresQL...
postgresql: unrecognized service
Starting MySQL...
mysqld: unrecognized service
Setting MySQL root password...
./3-dbservers: line 36: mysqladmin: command not found
MySQL root password set to: nagiosxi
[root@nagios1 nagiosxi]#
[root@nagios1 nagiosxi]# ./3-dbservers
Initializing PostgresQL...
postgresql: unrecognized service
Starting PostgresQL...
postgresql: unrecognized service
cp: cannot create regular file `/var/lib/pgsql/data/pg_hba.conf': No such file or directory
Restarting PostgresQL...
postgresql: unrecognized service
Starting MySQL...
mysqld: unrecognized service
Setting MySQL root password...
./3-dbservers: line 36: mysqladmin: command not found
MySQL root password set to: nagiosxi
[root@nagios1 nagiosxi]#
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Manual Installation Failure
Sounds like you haven't yet installed PostgreSQL and MySQL, which is done by the -prereqs script. The scripts needs to all be executed in numerical order, and if an error occurred during a step that needs to be addressed before going on. So, you'll need to find out why the database servers were not installed first.
Re: Manual Installation Failure
This is typical of an install on 64bit. Make sure to use 32bit operating system, as many of the nessisary packages do not get built on 64bit platforms.
-
- Posts: 7
- Joined: Tue Aug 10, 2010 11:38 am
Re: Manual Installation Failure
I managed to make it past this step. I had to first update fedora 13 using 'yum update' before running the installation process.
Now I get to the final Access Nagios XI screen and when clicked it goes to a blank page.
HTTPD error log shows the following.
[Wed Aug 11 17:58:59 2010] [error] [client XX.XX.XX.XX] PHP Parse error: syntax error, unexpected $end in /usr/local/nagiosxi/html/includes/errors.inc.php on line 39, referer: http://XXX.XXX.XXX.XXX/
Thoughts or other data to gather to assist with troubleshooting?
Now I get to the final Access Nagios XI screen and when clicked it goes to a blank page.
HTTPD error log shows the following.
[Wed Aug 11 17:58:59 2010] [error] [client XX.XX.XX.XX] PHP Parse error: syntax error, unexpected $end in /usr/local/nagiosxi/html/includes/errors.inc.php on line 39, referer: http://XXX.XXX.XXX.XXX/
Thoughts or other data to gather to assist with troubleshooting?
Re: Manual Installation Failure
What browser? Try using FireFox.
Never seen that error b4.
Never seen that error b4.
-
- Posts: 7
- Joined: Tue Aug 10, 2010 11:38 am
Re: Manual Installation Failure
It's not a browser specific error. That's server side PHP rendering issue. Tried alternative browsers with no luck.
Re: Manual Installation Failure
I pointed our developers at the error and they will try and identify the issue... If it's not a bug in the code we would be running out of debugging options.
I'd just rather believe that $end was some JavaScript that was not run, then the alternative that you have file-system corruption. I wonder how many others have the same errors.inc.php as you.
I'd just rather believe that $end was some JavaScript that was not run, then the alternative that you have file-system corruption. I wonder how many others have the same errors.inc.php as you.
-
- Posts: 7
- Joined: Tue Aug 10, 2010 11:38 am
Re: Manual Installation Failure
The short version of the php tags in the errors.inc.php once the <? tags were replaced with <?php this particular error went away. Apparently the php.ini that I was using had short_open_tag=Off, which is preferable for production
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Manual Installation Failure
Which file(s) were using short tags? All of them?
-
- Posts: 7
- Joined: Tue Aug 10, 2010 11:38 am
Re: Manual Installation Failure
Not all of them, but I stopped at fixing 2 of them. As I fixed one, I was able to login and then another one popped up with the same issue. I realized that I had probably missed something in the php.ini when I checked that earlier.
I went back and combed the php.ini for that setting, as I had missed it the first time and sure enough it was set to off. Might be a good thing to check for / set in the installation scripts.
I went back and combed the php.ini for that setting, as I had missed it the first time and sure enough it was set to off. Might be a good thing to check for / set in the installation scripts.