如何在centos 7上安装webacula 7

如何在centos 7上安装webacula 7,centos,installation,bacula,Centos,Installation,Bacula,这是安装webacula 7的教程(使用mysql安装bacula 7之后) 这是我使用的centos+bcula教程(没有webmin部分) 然后要安装webacula: yum安装httpd-php-mysql-php-gd wgethttp://downloads.sourceforge.net/project/webacula/webacula/7.0.0/webacula-7.0.0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2F

这是安装webacula 7的教程(使用mysql安装bacula 7之后)

这是我使用的centos+bcula教程(没有webmin部分)

然后要安装webacula:
yum安装httpd-php-mysql-php-gd
wgethttp://downloads.sourceforge.net/project/webacula/webacula/7.0.0/webacula-7.0.0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fwebacula%2F%3Fsource%3Dtyp_redirect&ts=1429012567&use_mirror=garr
(下载webacula 7.0.0)
yum安装httpd-php-mysql
tar-xzvf/root/webacula-7.0.0.tar.gz\?r\=http。。。
mv webacula-7.0.0/var/www/
mv/var/www/webacula-7.0.0//var/www/webacula
chown-R root.root。
chown apache.apache缓存
群加杆菌
usermod-aG bacula apache
chgrp bacula/usr/sbin/bconsole
/etc/bacula/bconsole.conf
chgrp bacula/etc/bacula/bconsole.conf
cd../应用程序
nano config.ini
更新:
bacula.bconsole=“/usr/sbin/bconsole”
bacula.bconsolemad=“-n-c/etc/bacula/bconsole.conf”
nano/etc/sudoers
评论:
#默认要求
nano/etc/bacula/bconsole.conf
更新:
Password=“您的通行证”
nano/etc/selinux/config
更新:
SELINUX=禁用
nano/etc/sudoers.d/apache
加:
apache ALL=NOPASSWD:/usr/sbin/bconsole
重新启动(因为selinux)
使用此命令进行检查:
su-l apache-s/bin/sh-c“/usr/bin/sudo/usr/sbin/bconsole-n-c/etc/bacula/bconsole.conf”
正常响应:
正在连接到控制器本地主机:9101
1000 OK:1 bacula dir版本:7.0.5(2014年7月28日)
输入一个句点以取消命令。
*退出
cd/var/www/webacula/install/apache/
cp webacula.conf/etc/httpd/conf.d/webacula.conf
nano/etc/httpd/conf.d/webacula.conf
更新:
别名/webacula/usr/share/webacula/html
...
全盘否定
致:
别名/webacula/var/www/webacula/html
...
通融
nano/var/www/webacula/application/config.ini
更新你的数据库通行证
nano/etc/bacula/bacula-dir.conf
更新:
目录=全部!跳过!保存的
cd/var/www/webacula/install
./password-to-hash.php您的bacula webming通行证
采取相应措施,并投入:
nano db.conf
更新:
db_pwd=“您的根mysql通行证”
....
webacula\u root\u pwd=“您的res from./password to hash.php”
光盘MySql/
/10_make_tables.sh
./20\u acl\u make\u tables.sh
systemctl重启httpd
将Zend添加到webacula:
cd/var/www/webacula/library
wgethttps://packages.zendframework.com/releases/ZendFramework-1.12.3/ZendFramework-1.12.3-minimal.tar.gz (仅下载1.12.3版!!!!!)
tar-xzf ZendFramework-1.12.3-minimal.tar.gz
mkdir Zend
cp-Rf ZendFramework-1.12.3-minimal/library/Zend/*Zend/。
转到网站:)
现在我们完成了,但对我来说,根密码不起作用,所以要解决这个问题,我做了:
mysql-uroot-p
使用细菌;
更新webacula_用户设置email='your email here';
转到网站并重置密码
Then to install webacula:

yum install httpd php php-mysql php-gd

wget http://downloads.sourceforge.net/project/webacula/webacula/7.0.0/webacula-7.0.0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fwebacula%2F%3Fsource%3Dtyp_redirect&ts=1429012567&use_mirror=garr
(download webacula 7.0.0)
yum install httpd php php-mysql
tar -xzvf /root/webacula-7.0.0.tar.gz\?r\=http...

mv webacula-7.0.0 /var/www/
mv /var/www/webacula-7.0.0/ /var/www/webacula


chown -R root.root .
chown apache.apache cache
groupadd bacula
usermod -aG bacula apache
chgrp bacula /usr/sbin/bconsole
/etc/bacula/bconsole.conf
chgrp bacula /etc/bacula/bconsole.conf
cd ../application


nano config.ini 
update:
bacula.bconsole    = "/usr/sbin/bconsole"
bacula.bconsolecmd = "-n -c /etc/bacula/bconsole.conf"

nano /etc/sudoers
comment:
# Defaults requiretty

nano /etc/bacula/bconsole.conf
update:
Password = "YOUR PASS"

nano /etc/selinux/config
update:
SELINUX=disabled


nano /etc/sudoers.d/apache
add:
apache ALL=NOPASSWD: /usr/sbin/bconsole

reboot (because the selinux)

check with this command:
su -l apache -s /bin/sh -c "/usr/bin/sudo /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf"

normal respons :
Connecting to Director localhost:9101
1000 OK: 1 bacula-dir Version: 7.0.5 (28 July 2014)
Enter a period to cancel a command.
*quit





cd /var/www/webacula/install/apache/
cp webacula.conf /etc/httpd/conf.d/webacula.conf
nano /etc/httpd/conf.d/webacula.conf
update:
Alias /webacula  /usr/share/webacula/html
<Directory /usr/share/webacula/html>
...
Deny from all

to:
Alias /webacula  /var/www/webacula/html
<Directory /var/www/webacula/html>
...
Allow from all



nano /var/www/webacula/application/config.ini
update your db pass


nano /etc/bacula/bacula-dir.conf
update :
catalog = all, !skipped, !saved


cd /var/www/webacula/install
./password-to-hash.php your bacula webming pass

take ther respons and put in:
nano db.conf
update:
db_pwd="your root mysql pass"
....
webacula_root_pwd="your res from ./password-to-hash.php"

cd MySql/
./10_make_tables.sh
./20_acl_make_tables.sh


systemctl restart httpd

add Zend to webacula:
cd /var/www/webacula/library
wget https://packages.zendframework.com/releases/ZendFramework-1.12.3/ZendFramework-1.12.3-minimal.tar.gz (download only ver 1.12.3!!!!!!)
tar -xzf ZendFramework-1.12.3-minimal.tar.gz
mkdir Zend
cp -Rf ZendFramework-1.12.3-minimal/library/Zend/* Zend/.

go to website :)

now we finished but for me the root password did not work, so to fix this i did:
mysql -uroot -p
use bacula;
update webacula_users set email='your email here';

go to website and reset password