PDA

View Full Version : setup centreon-1.4.2.3 on opensuse 10.3


meinereinerseiner
01-17-2008, 02:03 PM
Hello,

I try to setup centreon-1.4.2.3 on my opensuse 10.3.

the post-install script from the commandline finished without errors, but the inital browser based setup (Verifying Configuration) failed with pear dependecies:

the failed pear check::

PEAR Warning: PHP Pear not found
/PEAR.php

but pear is installed and included in the path in the php.ini:
the reponse from the install script:
Where is PEAR Path ?
default to [/usr/share/pear]:
/usr/share/pear/PEAR.php not found CRITICAL
Where is PEAR Path ?
default to [/usr/share/pear]:/usr/share/php5/PEAR
PEAR Path /usr/share/php5/PEAR OK

# PATH:
/etc/php5/cli/php.ini:include_path = ".:/usr/share/php5:/usr/share/php5/PEAR"

# /usr/local/centreon/www/install/installoreon.conf.php:
$conf_installoreon['pear_dir'] = "/usr/share/php5/PEAR";


# ls -al /usr/share/php5/PEAR
total 316
drwxr-xr-x 20 root root 4096 Jan 17 12:45 .
drwxr-xr-x 4 root root 4096 Dec 12 05:01 ..
drwxr-xr-x 3 root root 4096 Jan 17 09:06 .channels
-rw-r--r-- 1 root root 2459 Dec 12 05:01 .depdb
-rw-r--r-- 1 root root 0 Dec 12 05:01 .depdblock
-rw-r--r-- 1 root root 6902 Dec 12 05:01 .filemap
-rw-r--r-- 1 root root 0 Dec 12 05:01 .lock
drwxr-xr-x 4 root root 4096 Jan 17 09:06 .registry
drwxr-xr-x 2 root root 4096 Jan 17 09:06 Archive
drwxr-xr-x 3 root root 4096 Jan 2 14:21 Auth
drwxr-xr-x 2 root root 4096 Jan 17 09:06 Console
drwxr-xr-x 2 root root 4096 Jan 2 14:21 DB
-rw-r--r-- 1 root root 42796 Sep 23 16:30 DB.php
drwxr-xr-x 2 root root 4096 Jan 2 14:21 Date
-rw-r--r-- 1 root root 42351 Sep 23 16:31 Date.php
drwxr-xr-x 2 root root 4096 Jan 2 14:21 File
-rw-r--r-- 1 root root 16516 Sep 23 16:30 File.php
drwxr-xr-x 3 root root 4096 Jan 17 12:45 Image
drwxr-xr-x 2 root root 4096 Jan 2 14:21 Log
-rw-r--r-- 1 root root 25202 Sep 23 16:31 Log.php
drwxr-xr-x 2 root root 4096 Jan 2 14:21 Mail
-rw-r--r-- 1 root root 8934 Sep 23 16:30 Mail.php
drwxr-xr-x 2 root root 4096 Jan 17 09:06 OS
drwxr-xr-x 11 root root 4096 Jan 17 09:06 PEAR
-rw-r--r-- 1 root root 34557 Dec 12 05:01 PEAR.php
drwxr-xr-x 3 root root 4096 Jan 17 09:06 Structures
-rw-r--r-- 1 root root 19723 Dec 12 05:01 System.php
drwxr-xr-x 6 root root 4096 Dec 12 05:01 data
drwxr-xr-x 5 root root 4096 Dec 12 05:01 doc
-rw-r--r-- 1 root root 15414 Dec 12 05:01 pearcmd.php
-rw-r--r-- 1 root root 1810 Dec 12 05:01 peclcmd.php
drwxr-xr-x 4 root root 4096 Dec 12 05:01 test
drwxr-xr-x 6 root root 4096 Jan 2 14:21 tests




I put "echo $pear_path;" in www/install/steps/step4.php and the output is empty, so it looks like, that the pear_path is not set and thats why the check failel.


any ideas?

regards
Thomas

meinereinerseiner
01-17-2008, 03:14 PM
I found the problem:

php.ini:
short_open_tag = On

...and everything works!

thomas