Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
yaf
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Feb 5, 2014
1 parent 65d0337 commit e3436a7
Showing 1 changed file with 40 additions and 14 deletions.
54 changes: 40 additions & 14 deletions doc/install/INSTALL.md
Expand Up @@ -19,35 +19,61 @@ their system for development.

### Get the current version of barbossa from github

1. Change into your webservers root directory e.g. ```cd /var/www/htdocs```
2. Get the current version from github ```git clone https://github.com/fbergkemper/barbossa.git```
3. Change into the barbossa directory
4. Download composer.phar ```wget https://getcomposer.org/composer.phar```
5. Run the composer.phar, to download all the dependencies (Zend Framework 2, Zend Developers tools) into the vendor directory. ```./composer.phar install```
* Change into your webservers root directory e.g.

```
cd /var/www/htdocs
```

* Get the current version from github

```
git clone https://github.com/fbergkemper/barbossa.git
```

* Change into the barbossa directory

* Download composer.phar

```
wget https://getcomposer.org/composer.phar
```

* Run the composer.phar, to download all the dependencies (Zend Framework 2, Zend Developers tools) into the vendor directory.

```
./composer.phar install
```

### Configure Apache

See the example file [barbossa/install/apache/bareos.conf](https://github.com/fbergkemper/barbossa/blob/master/install/apache/bareos.conf) .

You might configure your Apache manually or copy the example configuration with wget from the git repo, e.g.

```cd /etc/apache2/conf.d``` \\
```wget https://raw2.github.com/fbergkemper/barbossa/master/install/apache/bareos.conf```
```
cd /etc/apache2/conf.d
wget https://raw2.github.com/fbergkemper/barbossa/master/install/apache/bareos.conf
```

### Configure the database connection

1. Open the file barbossa/config/autoload/global.php and edit it to your needs. Currently only PostgreSQL has been tested.
2. Copy barbossa/config/autoload/local.php.dist to barbossa/config/autoload/local.php and edit the local.php file to your needs.
* Open the file barbossa/config/autoload/global.php and edit it to your needs. Currently only PostgreSQL has been tested.
* Copy barbossa/config/autoload/local.php.dist to barbossa/config/autoload/local.php and edit the local.php file to your needs.

### Configuration to be able to run bconsole from barbossa

For testing and development the easiest way is to add the user under which apache is running to the bareos group, e.g.

```usermod -aG bareos wwwrun```
```
usermod -aG bareos wwwrun
```

Next, setup bconsole can be executed under Apache webserver.

```chown root:bareos /usr/sbin/bconsole``` \\
```chmod 750 /usr/sbin/bconsole``` \\
```chown root:bareos /etc/bareos/bconsole.conf``` \\
```chmod 740 /etc/bareos/bconsole.conf```
```
chown root:bareos /usr/sbin/bconsole
chmod 750 /usr/sbin/bconsole
chown root:bareos /etc/bareos/bconsole.conf
chmod 740 /etc/bareos/bconsole.conf
```

0 comments on commit e3436a7

Please sign in to comment.