Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Olegs Capligins
committed
Jan 16, 2018
1 parent
a8b5573
commit dcfad1b
Showing
18 changed files
with
298 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
The top right corner of cBackup web interface is the notification area and quick access to logged user's account settings. | ||
|
||
* **Left button**<br>Is the daemon control. You can start/stop/restart the daemon itself or perform similar actions on it's internal scheduler. In normal operation mode for cBackup both services are running:<br> | ||
![](../assets/daemon.png) | ||
<br><br> | ||
* **Bell button**<br>Is the quick access to messages about new unknown equipment found durring discovery process. Review messages and [recognize newly found devices](devices/#add-discovered-device). When device will be added as recognized, acknowledge the entry in [messages interface](system-messages.md)<br> | ||
#### Left button... | ||
|
||
...is the daemon control. You can start/stop/restart the daemon itself or perform similar actions on it's internal scheduler. Red background on a row means that web application was unable to establish connection to the socket. Either settings are wrong or something went wrong with the service itself. You may try to hover on the <i class="fa fa-exclamation-triangle text-danger"></i> red triangle to read the exception message. | ||
|
||
In normal operation mode for cBackup both services are running | Something is broken | ||
------------------------ | ---------------------------- | ||
![](../assets/daemon.png) | ![](../assets/daemon-error.png) | ||
|
||
#### Bell button... | ||
|
||
...is the quick access to messages about new unknown equipment found durring discovery process. Review messages and [recognize newly found devices](devices/#add-discovered-device). When device will be added as recognized, acknowledge the entry in [messages interface](system-messages.md) | ||
|
||
![](../assets/messages.png) | ||
<br><br> | ||
* **Username dropdown**<br>Provides access to signing out, personalization options and user credentials editing. | ||
|
||
|
||
#### Username dropdown... | ||
|
||
...provides access to signing out, personalization options and user credentials editing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,24 @@ | ||
This process is maintained by wizard and contains of 5 steps. Every step is reversable, so you are able to go back manually or wizard will redirect you to the erroneous step giving you a chance to fix certain options. | ||
!!! cite "Web setup" | ||
This process is maintained by wizard and contains of 5 steps. Every step is reversable, so you are able to go back manually or wizard will redirect you to the erroneous step giving you a chance to fix certain options. | ||
|
||
## 1. Initialization | ||
|
||
Basic system requirements are being checked. Installation process will be aborted if web-server is configured incorrectly and system files are world-accessible. You want to mark the `web` folder as wwwroot in your web-server configuration. | ||
|
||
Apache: | ||
```apacheconfig | ||
<VirtualHost *:%httpsport%> | ||
# .... | ||
DocumentRoot /var/www/html/web | ||
# .... | ||
</VirtualHost> | ||
``` | ||
|
||
Nginx: | ||
``` | ||
server { | ||
# ... | ||
location / { | ||
root /var/www/html/web; | ||
# ... | ||
} | ||
} | ||
``` | ||
Basic system requirements are being checked. Installation process will be aborted if web-server is configured incorrectly and system files are world-accessible. You want to mark the `web` folder as wwwroot in your web-server configuration and make sure the folders and files on the level above are not visible. | ||
|
||
## 2. Requirements check | ||
|
||
During this step installer checks if all required PHP extensions and environmental systems are available (including Java runtime and Git). | ||
During this step installer checks if all required PHP extensions and environmental systems are available (including Java runtime and Git). If any extensions are missing, don't hesitate to go back to SSH CLI on your server and setup missing stuff. Reload page to check if changes took effect. | ||
|
||
## 3. Acquire credentials | ||
|
||
You will be prompted to enter database and system credentials, as well as path to your Git executable if installer is unable to find it aidless. Fill all form inputs and proceed. | ||
|
||
## 4. Integrity check | ||
|
||
All settings are being set in the beginning of this step. Acquired data is saved to relevant files and database. Therefore the step might take some time to complete. When data is saved, the integrity check will be performed. If everything works as intended, you may proceed to final step and start working with cBackup. | ||
All settings are being validated and set in the beginning of this step. Acquired data is saved to relevant files and database. Therefore the step might take some time to complete. When data is saved, the integrity check will be performed. If everything works as intended, you may proceed to final step and start working with cBackup. | ||
|
||
Also all files and directories permissions will be checked. Look through if everything is set correctly. If necessary - fix it from the shell via `chmod` command. | ||
|
||
## 5. Finalizing | ||
|
||
The final step removes all runtime installation data from the system and redirects you to the authentication page. | ||
|
||
!!! note | ||
Now you have to [register cBackup service](/getting-started/servers/service.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
!!! cite "General info" | ||
This section describes cBackup installation for CentOS 6 from RPM package. If you are want to undergo manual installation, please refer to [general *nix installation description](/getting-started/servers/general.md). Also please note, that RPM will unpack installation to `/opt/cbackup` by default and use Apache web server. If you want to choose e.g. Nginx, or place installation into different folder, refer to the same [general installation description](/getting-started/servers/general.md). | ||
|
||
#### Update system and disable SELinux | ||
|
||
```bash | ||
yum update | ||
sed -i --follow-symlinks 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux | ||
reboot | ||
``` | ||
|
||
#### Install required software | ||
|
||
```bash | ||
sudo yum install -y wget git net-snmp epel-release yum-utils jre | ||
``` | ||
|
||
#### Install web server | ||
|
||
```bash | ||
sudo yum install -y httpd | ||
sudo /etc/init.d/start httpd | ||
sudo chkconfig httpd on | ||
``` | ||
|
||
#### Install PHP 7 | ||
|
||
For RHEL-based distrib you want to add repository with PHP 7 or newer. E.g. for CentOS it could be [REMI repository](https://rpms.remirepo.net/): | ||
|
||
```bash | ||
sudo rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-7.rpm | ||
sudo yum-config-manager --enable remi-php71 | ||
sudo yum install -y php php-gmp php-pecl-zip php-pdo php-mysqlnd php-intl php-pecl-ssh2 php-snmp php-mbstring php-mcrypt php-bcmath php-common php-cli | ||
``` | ||
|
||
#### Install MySQL | ||
|
||
Go to [mariadb.org](https://mariadb.com/kb/en/library/yum/) and setup external repo: | ||
|
||
```bash | ||
sudo yum install -y MariaDB-server | ||
sudo /etc/init.d/mysql start | ||
sudo chkconfig mysql on | ||
mysql_secure_installation | ||
``` | ||
|
||
Prepare user and database for cBackup. You want to use MySQL console to complete this task: | ||
|
||
```mysql | ||
CREATE DATABASE cbackup CHARSET utf8 COLLATE utf8_general_ci; | ||
CREATE USER 'cbackup'@'localhost' IDENTIFIED BY 'mypassword'; | ||
GRANT USAGE ON *.* TO cbackup@localhost; | ||
GRANT ALL PRIVILEGES ON cbackup.* TO cbackup@localhost; | ||
``` | ||
|
||
#### Adjust security | ||
|
||
```bash | ||
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT | ||
sudo /etc/init.d/iptable save | ||
``` | ||
|
||
#### Download cbackup RPM and install it | ||
|
||
```bash | ||
wget -O ~/cbackup.el6.noarch.rpm "http://cbackup.me/latest?package=rpm&sub=el6" | ||
cd ~ && sudo rpm -ivh cbackup.el6.noarch.rpm | ||
``` | ||
|
||
#### Change cbackup system user password and restart httpd service | ||
|
||
```bash | ||
sudo passwd cbackup | ||
sudo /etc/init.d/httpd restart | ||
``` | ||
|
||
This `cbackup` system user will be used to manage system daemon via SSH. | ||
|
||
#### Start cBackup web setup | ||
|
||
Open up you browser pointing to `http://your.server.name/cbackup/index.php` and compele setup process. | ||
|
||
!!! cite "Setup complete" | ||
Now you can start using your cBackup and proceed with its [initial setup](/getting-started/initial-setup.md) |
Oops, something went wrong.