View Full Version : failed to open stream
gipmds
07-12-2007, 11:13 AM
Bonjour,
J'installe Oreon 1.4 sur Fedora Core 6, en suivant exactament la procédure dans oreon-project.
En fase 10 d'installation d'Oreon j'obtiens l'erreur:
10. Oreon Configuration File
Component Status
Writable Oreon Configuration File (oreon.conf.php) OK
/usr/local/oreon/www/
Writable ODS Configuration File (oreon.pm) OK
/usr/local/oreon/www/
Generate Oreon configuration file Critical: Can't create file
/usr/local/oreon/www/oreon.conf.php failed to open stream: Permission denied
Generate ODS configuration file Critical: Can't create file for ODS
/usr/local/oreon/ODS/etc/oreon.pm failed to open stream: Permission denied
J'ai modifié les droits sur les repertoires en quesqtion, mais rien ne se passe
Alors j'ai installé les 5 patchs publiés dans oreon-projet
Et maintenant je n'ai même pas accès à Oreon:
You don't have permission to access /oreon/ on this server
Même si je mets droits 777 sur /usr/local/oreon!!
Avez-vous une idée?
Merci d'avance!
gipmds
07-12-2007, 11:18 AM
Pour info, dans le log Oreon je trouve le message suivant, et le fichier /usr/local/oreon/ODS/etc/conf.pm n'existe pas:
Can't locate /usr/local/oreon/ODS/etc/conf.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/oreon/cron/parsing_log.pl line 34.
tux64
01-06-2008, 09:07 PM
sous /usr/local/centreon/ODS, créer un repertoire etc
chmod 775 etc chown apache:apache etc
faire ensuite un recheck sur la page html d'installation
la version 1.4.2 semble ne pas créer ce répertoire lors du lancement pas ./install.sh
j'ai eu le même pb
salut,
j'ai eu le même problème avec centreon-1.4.2.4 sous fedora 8 (utilisant httpd 2.2.8 et Nagios 2.10).
par contre, la modification des droits d'accès sur le répertoire /usr/local/centreon/ODS/etc sont inutiles; je m'explique par défaut les droits sont :
[root@fedora ODS]# ls -l
total 48
drwxrwxr-x 2 apache apache 4096 mar 6 17:48 etc
drwxrwxr-x 2 apache apache 4096 mar 6 17:48 lib
-rwsr-sr-t 1 nagios nagios 20127 mar 6 18:30 ods
drwxrwxr-x 2 nagios nagios 4096 mar 6 17:48 var
ceux pour le répertoire /usr/local/centreon/www/ sont par défaut :
[root@fedora www]# ls -l
total 220
-rwxrwxr-x 1 apache apache 899 mar 6 18:30 alt_error.php
-rwxrwxr-x 1 apache apache 5596 mar 6 18:30 alt_main.php
drwxrwxr-x 2 apache apache 4096 mar 6 17:48 class
-rwxrwxr-x 1 apache apache 1516 mar 6 18:30 DBconnect.php
-rwxrwxr-x 1 apache apache 1554 mar 6 18:30 DBOdsConnect.php
drwxrwxr-x 2 apache apache 4096 mar 6 17:48 doc
drwxrwxr-x 3 apache apache 4096 mar 6 17:48 ext
-rwxrwxr-x 1 apache apache 2495 mar 6 18:30 footer.php
-rwxrwxr-x 1 apache apache 2447 mar 6 18:30 func.php
-rwxrwxr-x 1 apache apache 7924 mar 6 18:30 header.php
-rwxrwxr-x 1 apache apache 3804 mar 6 18:30 htmlHeader.php
drwxrwxr-x 4 apache apache 4096 mar 6 17:48 img
drwxrwxr-x 12 apache apache 4096 mar 6 17:48 include
-rwxrwxr-x 1 apache apache 9847 mar 6 18:30 index.php
drwxrwxr-x 6 apache apache 4096 mar 6 18:30 install
drwxrwxr-x 2 apache apache 4096 mar 6 17:48 lang
-rwxrwxr-x 1 apache apache 2730 mar 6 18:30 login.php
drwxrwxr-x 2 apache apache 4096 mar 6 17:48 menu
drwxrwxr-x 2 apache apache 4096 mar 6 17:48 modules
-rwxrwxr-x 1 apache apache 5553 mar 6 18:30 oreon.php
-rwxrwxr-x 1 apache apache 4683 mar 6 18:30 pathWay.php
-rwxrwxr-x 1 apache apache 28 mar 6 18:30 robots.txt
-rwxrwxr-x 1 apache apache 6397 mar 6 18:30 stat.php
drwxrwxr-x 3 apache apache 4096 mar 6 17:48 Themes
Je pense qu'ils sont corrects, je ne vois pas non plus la source du problème :!:
Generate Centreon configuration file Critical: Can't create file
/usr/local/centreon/www/oreon.conf.php fopen(/usr/local/centreon/www/oreon.conf.php) [function.fopen]: failed to open stream: Permission denied
Generate ODS configuration file Critical: Can't create file for ODS
/usr/local/centreon/ODS/etc/oreon.pm fopen(/usr/local/centreon/ODS/etc/conf.pm) [function.fopen]: failed to open stream: Permission denied
si quelqu'un trouve une solution à ces permissions denied, help us please ;) :( :)
voilà la solution se trouve sur le forum.
# cd
/etc/selinux
[root@]# cat config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
il suffit de modifier SELINUX à DISABLED et faire un "reboot".
++ ;)