LINUX.ORG.RU
ФорумAdmin

Webacula Class 'Zend_Acl_Role' not found

 ,


0

1

поставил webacula на свежий сервер

# uname -a
Linux mail 2.6.18-308.11.1.el5 #1 SMP Tue Jul 10 08:49:28 EDT 2012 i686 i686 i386 GNU/Linux

после установки нахожу по адресу http://server/webacula/ вижу приглашение ввести логин/пароль, пробую ввести root и...

в лог и на страницу вываливается ошибка:

[Thu Sep 13 17:33:05 2012] [error] [client 192.168.0.191] PHP Fatal error:  Class 'Zend_Acl_Role' not found in /var/www/html/webacula/library/MyClass/WebaculaAcl.php on line 43

# php -v
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP 5.3.16 (cli) (built: Aug 20 2012 11:11:41)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

еще

# rpm -qa | grep -i zend
php-ZendFramework-1.12.0-1.el5.remi
php-zend-guard-loader-5.5.0-3.el5.art

# ls -l
итого 4
drwxrwxr-x 5 apache apache 4096 Сен 13 17:29 MyClass
lrwxrwxrwx 1 apache apache   20 Сен 13 17:14 Zend -> /usr/share/php/Zend/

уже не знаю и куда смотреть...

Ответ на: комментарий от zgen
]# grep Zend /etc/php.ini
; dynamically loaded extension (either a PHP extension or a Zend extension),
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
; unsupported in future versions of PHP/Zend.  The encouraged method of
include_path = ".:/usr/share/php/Zend"
openmsk
() автор топика
Ответ на: комментарий от zgen
<?php
/**
 * Zend Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_Acl
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @version    $Id: Role.php 16199 2009-06-21 18:42:43Z thomas $
 */


/**
 * @see Zend_Acl_Role_Interface
 */
require_once 'Zend/Acl/Role/Interface.php';


/**
 * @category   Zend
 * @package    Zend_Acl
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */
class Zend_Acl_Role implements Zend_Acl_Role_Interface
{
    /**
     * Unique id of Role
     *
     * @var string
     */
    protected $_roleId;

    /**
     * Sets the Role identifier

     *
     * @param  string $id
     * @return void
     */
    public function __construct($roleId)
    {
        $this->_roleId = (string) $roleId;
    }

    /**
     * Defined by Zend_Acl_Role_Interface; returns the Role identifier
     *
     * @return string
     */
    public function getRoleId()
    {
        return $this->_roleId;
    }

}
openmsk
() автор топика
Ответ на: комментарий от zgen

поменял. результат 0

удалил нафиг bacula* почистил остатки поставил вновь, настроил конфиги поправил конфиг webacula

заметил что после старта bacula-dir он падает

# service bacula-dir status bacula-dir неживой, но подсистема заблокирована

в логах: 13-Сен 23:05 bacula-dir JobId 0: Fatal error: Version error for database «bacula». Wanted 10, got 12

Ага, уже ученый, есть пара скриптов взятых из соседних веток upgrade-v10-to-v11.sh и upgrade-v11-to-v12.sh ( http://blog.mansonthomas.com/2010/05/bacula-upgrade-while-updating-ubuntu-to.... )

после применения этих скриптов

Fatal error: Uncaught exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'bacula.webacula_php_session' doesn't exist' in /usr/share/php/Zend/Db/Statement/Pdo.php:238 Stack trace: #0 /usr/share/php/Zend/Db/Statement.php(284): Zend_Db_Statement_Pdo->_execute(Array) #1 /usr/share/php/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array) #2 /usr/share/php/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DESCRIBE webacu...', Array) #3 /usr/share/php/Zend/Db/Adapter/Pdo/Mysql.php(156): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE webacu...') #4 /usr/share/php/Zend/Db/Table/Abstract.php(814): Zend_Db_Adapter_Pdo_Mysql->describeTable('webacula_php_se...', NULL) #5 /usr/share/php/Zend/Db/Table/Abstract.php(840): Zend_Db_Table_Abstract->_setupMetadata() #6 /usr/share/php/Zend/Db/Table/Abstract.php(880): Zend_Db_Table_Abstract->_getCols() #7 /usr/share/php/Zend/Session/SaveHandler/DbTable.php(519): Zend_Db_Table_Abstract->_setupPrimar in /usr/share/php/Zend/Db/Statement/Pdo.php on line 238

Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Session must be started before any output has been sent to the browser; output started in /0' in /usr/share/php/Zend/Session.php:453 Stack trace: #0 /usr/share/php/Zend/Session/Namespace.php(143): Zend_Session::start(true) #1 /usr/share/php/Zend/Auth/Storage/Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth') #2 /usr/share/php/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct() #3 /usr/share/php/Zend/Auth.php(133): Zend_Auth->getStorage() #4 /var/www/html/webacula/library/MyClass/Session/SaveHandler/DbTable.php(46): Zend_Auth->hasIdentity() #5 [internal function]: MyClass_Session_SaveHandler_DbTable->write('pgl0evtvg3ks31q...', '') #6 {main} thrown in /usr/share/php/Zend/Session.php on line 453

Мне кажется что именно с этим фреймворком у меня проблемы...

openmsk
() автор топика
Ответ на: комментарий от zgen

спасибо за вашу активность.

но на чистую систему всё завелось как в манах, без одиной ошибки.

Теперь не могу подобрать пароль к веб морде :) т.е. к webacula системного root не пускает, и все остальные которые где-либо в системе присутствуют.

где опять напортачил? :)

openmsk
() автор топика
Ответ на: комментарий от zgen
[root@localhost ~]# cat /usr/share/webacula/application/config.ini | grep db
db.adapter = PDO_MYSQL
db.config.host = localhost
db.config.username = bacula
db.config.password = password
db.config.dbname = bacula
;; for Sqlite db.config.dbname = "/full patch/bacula.db"

[root@localhost ~]# ls -l /usr/sbin/bconsole
-rwxr-x---. 1 root bacula 302024 Sep 24  2011 /usr/sbin/bconsole
[root@localhost ~]# ls -l /etc/bacula/bconsole.conf
-rw-r-----. 1 root bacula 161 Sep 16 04:40 /etc/bacula/bconsole.conf

[root@localhost ~]# mysql -ubacula -ppassword
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 5.1.61 Source distribution

# ls -la /usr/share/webacula/
total 100
drwxrwxr-x.   9 apache bacula  4096 Sep 16 04:46 .
drwxr-xr-x. 112 root   root    4096 Sep 16 04:51 ..
drwxrwxr-x.   8 apache bacula  4096 Sep 18 18:56 application
drwxrwxr-x.   3 apache bacula  4096 Sep 11  2011 data
drwxrwxr-x.   6 apache bacula  4096 Sep 11  2011 docs
drwxrwxr-x.   6 apache bacula  4096 Sep 11  2011 html
drwxrwxr-x.   6 apache bacula  4096 Sep 17 03:18 install
drwxrwxr-x.  10 apache bacula  4096 Sep 11  2011 languages
drwxrwxr-x.   3 apache bacula  4096 Sep 11  2011 library

[root@localhost share]# cat /etc/selinux/config | grep disa
#     disabled - No SELinux policy is loaded.
SELINUX=disabled


Апач работает от имени apache.

Однако при таких настройках зайти в веб-интерфейс не могу, «Имя или пароль неверны», хоть ты тресни..

openmsk
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.