PDA

View Full Version : Problem during oreon setup


Thoorleif
8th May 2006, 19:47
Hello :)

This is the first time i am setting up Oreon. We are running Red Hat, RHEL3 server with Apache2, Nagios 2.x, PHP 5.x, and mySQL 4.x, this software is installed under /usr/local/<correct folder>.

First question:
What could be the problem when i get this error message?
Component Status
Configuration file
Warning: fopen(../oreon.conf.php) [function.fopen]: failed to open stream: Permission denied in /usr/local/oreon/www/install/setup.php on line 728 CRITICAL
oreon.conf.php Can't open file
It ask for the file oreon.conf.php but that file dosent eaven exist. Only file I can find is installoreon.conf.php

Second question:
So when i install Oreon should i first create a folder called oreon like this /usr/local/oreon or could i just unpack the tar.gz anywhere and run install.sh and it copy the needed files into /usr/local/oreon?

Third question:
Becuse Apache 2 is installed by compiling it its config file is located at /usr/local/apache/conf/apache.conf not at /etc/httpd/conf or /etc/httpd/conf.d can i just copy the "directory instructions" from oreon.conf and put em in the correct apache.conf file?

Is there anyone who made a more comprehensive install instruction? In that case i would be really greatful :D

wistof
8th May 2006, 21:12
your apache user don't have right to write in /usr/local/oreon/www/

LoPo
16th May 2006, 21:45
I'm having the same issue with oreon.conf.php.

I searched my machine and the file doesn't exist. I checked the apache users rights to the /oreon/www/ and it has write permissions.

**EDIT I should clarify, I get the error on Step 9. - Creating Database. "Configuraion file status= critical

oreon.conf.php status=can't open file.

wistof
16th May 2006, 23:32
oreon.conf.php is created during step 9

LoPo
16th May 2006, 23:56
Not sure what to do then...

the apache user and group that the apache user belongs to both have read/write/execute permissions to the /www/ folder.

Suggestions?

wistof
17th May 2006, 00:10
PHP5 ?

LoPo
17th May 2006, 00:25
PHP 4.something

I'm a nix n00b. I created a phpinfo() .php file, but I didn't see anything for version info. I tried phpversion() also, no dice.


Are you suggesting to install PHP5?


Thanks,
John

LoPo
17th May 2006, 00:29
Ok, I'm an idiot, it was right in the top title:
PHP Version 4.3.9

LoPo
17th May 2006, 01:51
I granted Owner,group, and others all read/write/execute permissions for testing to see if it resolved my problem. No go.

Suggestions?

sgrynd
17th May 2006, 16:11
Lopo can you do a ls -l of your oreon dir and post it?

LoPo
17th May 2006, 18:37
[root@centos1 ~]# ls -l /usr/local/oreon/
total 48
drwxrwxr-x 5 apache apache 4096 May 5 12:00 filesGeneration
drwxrwxr-x 5 apache apache 4096 May 5 12:00 filesUpload
drwxrwxr-x 7 apache apache 4096 May 5 12:00 GPL_LIB
drwxrwxr-x 2 apache apache 4096 May 5 12:00 log
drwxrwxr-x 2 nagios nagcmd 4096 May 5 12:00 rrd
drwxrwxr-x 11 apache apache 4096 May 16 16:26 www


I've also included two screen shots of steps 4 & 9. Step 4 says everything is good to go and in step 9 it states the failure.

Thanks.

sgrynd
17th May 2006, 18:46
Is there a oreon.conf.php file in the www directory?

LoPo
17th May 2006, 18:48
Nope.

sgrynd
17th May 2006, 18:56
You could try to blow it wide open chmod 777 on the dir and see if that works or have you tried that?

LoPo
17th May 2006, 18:58
Tried that too. :(


I confused.

If it creates/writes this file during step 9 and fails, why is it confirming that the location is 'OK' in step 4??

sgrynd
17th May 2006, 19:08
Very strange indeed, does the install stop at that point? or does it continue on? I can't remember anymore. If it creates the database and all then you can manualy create the file.

<?
/**
Oreon is developped with GPL Licence 2.0 :
http://www.gnu.org/licenses/gpl.txt
Developped by : Julien Mathis - Romain Le Merlus - Christophe Courabeuf

The Software is provided to you AS IS and WITH ALL FAULTS.
OREON makes no representation and gives no warranty whatsoever,
whether express or implied, and without limitation, with regard to the quality,
safety, contents, performance, merchantability, non-infringement or suitability for
any particular or intended purpose of the Software found on the OREON web site.
In no event will OREON be liable for any direct, indirect, punitive, special,
incidental or consequential damages however they may arise and even if OREON has
been previously advised of the possibility of such damages.

For information : contact@oreon.org
*/


// database
$conf_oreon['host'] = "localhost";
$conf_oreon['user'] = "username";
$conf_oreon['password'] = "password";
$conf_oreon['db'] = "oreon";


// path to classes
$classdir='./class';

LoPo
17th May 2006, 21:39
Thanks.

No workie still.

What's funny is I can alter the file with the appropriate credentials and if I hit /oreon/index.php I can get a DB Connection: Permissions error, but yet I can't get past this issue during step 9.

I receive a blank white page on index.php or if I login via login.php.

The database is being created, but it seems this file isn't being written to via the setup. I checked httpd is running as user: apache and group:apache. Both of which have read/write/exec permissions to the www directory within the oreon installation.

sgrynd
17th May 2006, 22:18
Check your error.log file from apache and see what errors it is throwing when it tries to bring up index.php. I am thinking a php package might be missing.

LoPo
17th May 2006, 23:20
[client 192.168.52.107] PHP Warning: fopen(../oreon.conf.php): failed to open stream: Permission denied in /usr/local/oreon/www/install/setup.php on line 728, referer: http://192.168.52.107/oreon/install/setup.php
[client 192.168.52.107] PHP Notice: Undefined index: current_pwd in /usr/local/oreon/www/install/setup.php on line 737, referer: http://192.168.52.107/oreon/install/setup.php
[Wed May 17 14:14:44 2006] [error] [client 192.168.52.107] File does not exist: /usr/local/oreon/www/include/javascript, referer: http://192.168.52.107/oreon/install/setup.php
[Wed May 17 14:14:44 2006] [error] [client 192.168.52.107] File does not exist: /var/www/html/favicon.ico
[client 192.168.52.107] PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/oreon/www/oreon.conf.php on line 6
[Wed May 17 15:51:26 2006] [error] [client 192.168.52.107] File does not exist: /var/www/html/favicon.ico
[client 192.168.52.107] PHP Notice: Undefined variable: file_install_acces in /usr/local/oreon/www/login.php on line 31
[client 192.168.52.107] PHP Notice: Undefined variable: file_install_acces in /usr/local/oreon/www/login.php on line 56
[Wed May 17 15:52:04 2006] [error] [client 192.168.52.107] File does not exist: /var/www/html/favicon.ico
[client 192.168.52.107] PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/oreon/www/oreon.conf.php on line 6, referer: http://192.168.52.107/oreon/login.php
[Wed May 17 15:52:14 2006] [error] [client 192.168.52.107] File does not exist: /var/www/html/favicon.ico

wistof
17th May 2006, 23:29
try with this one ;

LoPo
17th May 2006, 23:34
Thanks wistof.

When I use the attached setup.php and I get to step5 - PEAR extensions, 90% of the show failed. If I use the original, it shows a status of 'ok'

LoPo
17th May 2006, 23:42
I was able to bypass the check by changing $return_false = 1 to a 0.

Still hit the same problem on step 9. This time it displayed the entire file path.

:cry:

wistof
18th May 2006, 01:05
Thanks wistof.

When I use the attached setup.php and I get to step5 - PEAR extensions, 90% of the show failed. If I use the original, it shows a status of 'ok'

:?

$pear_path = $conf_installoreon['pear_dir'];

if (file_exists($pear_path. '/'.$module["path"])) {
echo '<span class="go">OK</font>';
} else {
echo '<span class="stop">Failed</font>';
$msg ="Need " . $module["name"] . "-" . $module["version"];
$return_false = 1;
}

strange... could you check $conf_installoreon['pear_dir'] in www/install/installoreon.conf.php ?

soumna
22nd June 2006, 16:11
How was this problem resolved. I am also getting stuck after step 9. All permissions are supposed to be what they are

LoPo
22nd June 2006, 18:09
I never resolved the issue. This project was backburnered for the time being while I get our Citrix PS 4.0 Farm in place.

soumna
22nd June 2006, 20:22
i have been using oreon-1.23 for more than 6 months with nagios 1.2 Just wanted to try out the newer version so that it is compatible with nagios 2.4.. Hope someone has found a solution to this yet......

soumna
24th June 2006, 10:31
My problem was solved when i did a reinstallation of my operating system (white box 4). Guess some packages were missing which were causing these problems.Hope this helps.........

makan
1st July 2006, 07:33
strange... could you check $conf_installoreon['pear_dir'] in www/install/installoreon.conf.php ?


where i could find "installoreon.conf.php" ?
i could not find it in oreon-1.3-RC1.tar.gz

thx

wistof
1st July 2006, 14:55
'installoreon.conf.php' is create by php setup