webacula的安装

1 在http://framework.zend.com/download/latest 下载 ZendFramework-1.11.12-minimal.tar.gz
2 linux-liangfuming:/home/ZendFrame # tar -zvxf ZendFramework-1.11.12-minimal.tar.gz
3 linux-liangfuming:/home/webacula # tar -zvxf webacula-5.5.1.tar.gz
4 将ZendFrame下的lib包全部拷贝到webacula的library下面
# cp -R /home/ZendFrame/ZendFramework-1.11.12-minimal/library/* /home/webacula/webacula-5.5.1/library/
5 将webacula拷贝到发布路径
linux-liangfuming:/var/www/html # cp -R /home/webacula/webacula-5.5.1 /var/www/html
6 配置apache的httpd.conf 所有的配置文件参考文档
7 配置完成后就可以启动了,启动后出现错误
[Sat Jun 23 09:26:13.623666 2012] [:error] [pid 30463:tid 2970991472] [client 192.168.0.14:1466] PHP Fatal error: Uncaught exception 'Zend_Exception' with message 'Bacula version mismatch for the Catalog database. Wanted 19, got 14. ' in /var/www/html/webacula-5.5.1/html/index.php:186\nStack trace:\n#0 {main}\n thrown in /var/www/html/webacula-5.5.1/html/index.php on line 186, referer: http://192.168.0.25/webacula/html/
提示版本错误,google后,通过修改/var/www/html/webacula-5.5.1/html/index.php 中的 define('BACULA_VERSION', 12); 将12改为14,重启就可以进入访问页面了。
中间还有一个问题,就是报500错后apache日志并没有写入错误日志,后面发现apache日志文件为只读的


8 在执行webacula环境测试的时候出以下错
linux-liangfuming:/var/www/html/webacula-5.5.1/install # ./check_system_requirements.php
-bash: ./check_system_requirements.php: /usr/bin/php: bad interpreter: No such file or directory
这个只需要建立软连接即可
linux-liangfuming:/var/www/html/webacula-5.5.1/install # ln -s /home/php/php-home/bin/php /usr/bin

9 在执行index.php的过程中出现问题 sudo: no tty present and no askpass program specified 这个应该也是执行权限的问题
后来根据http://www.java-tutorial.ch/ubuntu/webacula-installation-on-ubuntu 的安装说明,3.Remove the sudo command in bacula.sudo (not needed thanks to the configuration below) 把config.ini中的 bacula.sudo = "/usr/bin/sudo" 改为 bacula.sudo = ""即可
后面又出现 sh: /etc/bacula/bconsole: Permission denied 没有权限执行的错误
执行
linux-liangfuming:/etc/bacula # chown daemon:daemon /etc/bacula/bconsole
linux-liangfuming:/etc/bacula # chown daemon:daemon /etc/bacula/bconsole.conf
就可解决此问题,daemon是apache中配置的用户和用户组 要给这个用户组授予访问权限
接着访问index.php又报/etc/bacula/bconsole: line 22: /sbin/bconsole: Permission denied 同样是用户权限问题

9 注意:要把webacula.conf中的内容拷贝到httpd.conf中去

10 访问php工程的时候,js,css,image等都加载不了,这个是zend重定向的问题,后面根据http://thielebein.net/trac/wiki/Backup/Bacula/Webacula的说明 把 /var/www/html/webacula-5.5.1/html 的 .htaccess这个文件内容改为
------------------------------------------------------------
php_flag magic_quotes_gpc off
php_flag register_globals off
RewriteEngine On

# edit RewriteBase if necessary
RewriteBase /webacula
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
------------------------------------------------------------

还要把index.php中的版本由12改为14
define('BACULA_VERSION', 14);

然后重启


错误
1 bacula安装完后访问 http://192.168.0.25/webacula/html/test_mod_rewrite/testlink1.html 进行测试
mod_rewrite test ERROR 报出这个错
然后看到httpd.conf里面有 #LoadModule rewrite_module modules/mod_rewrite.so 就把他放开
放开之后还是这个错 搜索后定位可能是没有安装mod_rewrite模块 根据以下进行安装
--------------------------------------------------------------------------------------------------------------------------------------------------------------
1)首次安装apache,在编译时增加——enable-rewrite选项。
如。/configure ——prefix=/usr/local/apachel ——enable-so ——enable-mods-shared=all ——enable-rewrite ——enable-cache
2)增加mod_rewrite模块
# find . -name mod_rewrite.c //在apache的源码安装目录中寻找mod_rewrite.c文件
# cd PATH/to/mod_rewrite.c //进入包含mod_rewrite.c文件的目录
# /usr/local/apache/bin/apxs -c mod_rewrite.c //apxs应指定绝对路径,在你当前正在使用apache的bin目录里
# /usr/local/apache/bin/apxs -i -a -n mod_rewrite mod_rewrite.la
如果没有什么错误的话,应该在你的apache的modules目录中编译出一个mod_rewrite.so文件。
编辑httpd.conf文件,确认httpd.conf中已经包含mod_rewrite.so的加载语句,如下:
LoadModule rewrite_module modules/mod_rewrite.so
这时,你的apache应该已经支持rewrite了。
vicos注:完成之后,记得重启服务器apache.

详细出处参考:http://www.jb51.net/article/24281.htm

-------------------------------------------------------------------------------------------------------------------------------------------------------------
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值