View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000335 | bareos-core | webui | public | 2014-09-10 11:49 | 2015-01-26 16:21 |
Reporter | suschman | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Debian 7 32bit | OS Version | latest |
Summary | 0000335: bareos-webui not working out of the box on debian 7 | ||||
Description | Installing bareos-webui from the repo on debian 7 does not work out of the box. The zendframework (1.11.13-1.1) in debian 7 misses the autoloaderfactory.php file (created some warning before the main error below). Installing zendframework (1.12.7-0.1) from debian jessie repo fixed it. Main staying error file got included but class cannot be loaded. Fatal error: Class 'Zend\Loader\AutoloaderFactory' not found in /usr/share/bareos-webui/init_autoloader.php on line 39 | ||||
Tags | No tags attached. | ||||
The Bareos WebUI is based on Zend Framework 2, which is also available for Debian 6 and 7 from our repository ( http://download.bareos.org/bareos/contrib/ ). I'm wondering how you stumbled into this issue, there are dependencies defined in the package, which should avoid this. Have you installed from our Github repo or from the package repo, mentioned above? |
|
A while ago I installed (from package repo) webacula which uses zendframework (V1 ?). Later, Installing bareos-webui pulled in php5-zendframework2. Im not very familiar with deb-dependencies, hope you get a clue. For me it looks like you specified multiple zend frameworks which satisfy the dependency, but the V1 takes presedence over the V2 version/location if allready installed (by webacula). ------------------ Package: webacula (installed) Version: 5.5.2.2.git.1396961886-21.1 Maintainer: Bareos Packager <packager@bareos.org> Depends: apache2 | httpd, libapache2-mod-php5 | php5 | php5-cgi, php5-cli, php5-gd, php5-json, php5-mysql | php5-pgsql | php5-sqlite3, zendframework | zend-framework ------------------ Package: bareos-webui (uninstalled, to be installed) Version: 0.1.git.1410258895-33.1 Maintainer: Bareos Packager <packager@bareos.org> Depends: apache2 | httpd, libapache2-mod-php5 | php5 | php5-cgi, php5-cli, php5-gd, php5-json, php5-mysql, php5-pgsql, php5-sqlite | php5-sqlite3, zendframework (>= 2.2.0) | zend-framework (>= 2.2.0) | php5-zendframework2 (>= 2.2.0) ------------------ $ aptitude install bareos-webui (with allready installed webacula) The following NEW packages will be installed: bareos-webui libmcrypt4{a} php5-mcrypt{a} php5-zendframework2{a} ------------------ $ aptitude search zend p php5-zendframework2 i A zendframework p zendframework-bin p zendframework-resources ------------------ |
|
Ok, I was able to reproduce the issue. Here is the solution, which should solve the problem. Open the file /etc/apache2/conf.d/bareos-webui.conf and setup the ZF2_PATH Environment Variable correctly and restart your Apache with the new settings. # Environment Variable for Zend Framwework 2 SetEnv "ZF2_PATH" "/usr/share/php5" This is already set to "/usr/share/php5" in the latest version of the package. Sorry it is not being documented, yet. |
|
So is there now a general solution? Will it work on a fresh install out-of-the-box? | |
Hi, Yes uncommenting the SetEnv (both options were commented in my version) got it running, without breaking webacula. If i find time i will do a clean-install test, but i think its fixed. |
|
Currently, uncommenting the SetEnv Variable is the way to go, but this should and will be improved in future, so it's running out of the box whatever distribution you have in use. | |
Made a note on this, see: https://github.com/bareos/bareos-webui/blob/master/doc/install/INSTALL.md | |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-09-10 11:49 | suschman | New Issue | |
2014-09-10 15:07 | joergs | Assigned To | => frank |
2014-09-10 15:07 | joergs | Status | new => assigned |
2014-09-11 15:47 | frank | Note Added: 0000976 | |
2014-09-11 16:00 | frank | Note Edited: 0000976 | |
2014-09-12 14:03 | suschman | Note Added: 0000978 | |
2014-09-12 14:06 | suschman | Note Edited: 0000978 | |
2014-09-12 14:08 | suschman | Note Edited: 0000978 | |
2014-09-12 14:08 | suschman | Note Edited: 0000978 | |
2014-09-12 14:12 | suschman | Note Edited: 0000978 | |
2014-09-12 18:26 | frank | Note Added: 0000979 | |
2014-09-29 22:49 | joergs | Note Added: 0000991 | |
2014-10-02 13:55 | suschman | Note Added: 0000992 | |
2014-10-02 14:45 | suschman | Note Edited: 0000992 | |
2014-10-07 12:01 | frank | Note Added: 0000994 | |
2014-10-10 12:13 | frank | Note Added: 0001002 | |
2014-10-10 12:15 | frank | Status | assigned => closed |
2014-10-10 12:15 | frank | Resolution | open => fixed |
2015-01-26 16:21 |
|
Assigned To | frank => |