Установка BareOS + WebUI на CentOS 7.x

установка BareOS:
$ http://download.bareos.org/bareos/release/latest/CentOS_7/bareos.repo
$ yum install bareos bareos-database-postgresql
$ sudo -i -u postgres /usr/lib/bareos/scripts/create_bareos_database
$ sudo -i -u postgres /usr/lib/bareos/scripts/make_bareos_tables
$ sudo -i -u postgres /usr/lib/bareos/scripts/grant_bareos_privileges
$ systemctl enable bareos-{dir,fd,sd}
$ systemctl start bareos-{dir,fd,sd}

установка BareOS WebUI:
$ yum install epel-release
$ yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
$ yum install php-ZendFramework2.noarch

конфиг для nginx:
server {
listen 80;
server_name bareos.ru08.net;
root /usr/share/bareos-webui/public;
index index.php;

access_log /var/log/nginx/bareos.ru08.net_access.log main;
error_log /var/log/nginx/bareos.ru08.net_error.log;

location / {
try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
include fastcgi_params;
# try_files $uri =404;
fastcgi_param APPLICATION_ENV production;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "
max_execution_time = 300
memory_limit = 128M
post_max_size = 16M
upload_max_filesize = 2M
max_input_time = 300
date.timezone = Europe/Moscow
always_populate_raw_post_data = -1
";
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/var/lib/php/php-fpm.sock;
}

location ~* ^.+\.(jpg|jpeg|gif|png|ico|pdf)$ {
access_log off;
expires max;
add_header Cache-Control private;
}

location ~ /\. {
deny all;
}
}

Comments powered by CComment

Designed by san © 2018