Difference between revisions of "Center Server Administration Guide"

From BlackBox Framework Wiki
Jump to navigation Jump to search
(Created page with " == Server reboot == Use "sudo reboot" for rebooting the server in case it shows any anomaly such as out-of memory error messages. 0. Start Redmine after server reboot cd /v...")
 
Line 4: Line 4:
Use "sudo reboot" for rebooting the server in case it shows any anomaly such as out-of memory error messages.
Use "sudo reboot" for rebooting the server in case it shows any anomaly such as out-of memory error messages.


0. Start Redmine after server reboot
Start Redmine after server reboot
 
cd /var/www/redmine-2.5.2
cd /var/www/redmine-2.5.2
unicorn_rails -c config/unicorn.rb -E production -D
unicorn_rails -c config/unicorn.rb -E production -D


Line 22: Line 24:


service nginx start
service nginx start
For checking the web server status use:


service nginx status
service nginx status
Line 28: Line 32:
== MySql Database control panel ==
== MySql Database control panel ==


This can be used for example to create backups of MySql databases. The administration tool is a php-based web application.  
This can be used for example for creating backups of MySql databases. The administration tool is a php-based web application.  


Login at [http://178.209.50.165/phpmyadmin/ http://178.209.50.165/phpmyadmin/]
Login at [http://178.209.50.165/phpmyadmin/ http://178.209.50.165/phpmyadmin/]
Line 35: Line 39:


password: <mysqlPassword>
password: <mysqlPassword>





Revision as of 15:45, 6 June 2017

Server reboot

Use "sudo reboot" for rebooting the server in case it shows any anomaly such as out-of memory error messages.

Start Redmine after server reboot

cd /var/www/redmine-2.5.2

unicorn_rails -c config/unicorn.rb -E production -D


Certificate extension

Certificates should be extended every 3 months. Note that the TMP folder is very small on EDIS, therefore the TMP variable should be redefined:

export TMP="/var/www/tmp"

export TEMP="/var/www/tmp"

service nginx stop

sudo ./certbot-auto certonly --standalone -d forum.blackboxframework.org -d community.blackboxframework.org -d wiki.blackboxframework.org -d blackboxframework.org -d redmine.blackboxframework.org

service nginx start

For checking the web server status use:

service nginx status


MySql Database control panel

This can be used for example for creating backups of MySql databases. The administration tool is a php-based web application.

Login at http://178.209.50.165/phpmyadmin/

user: <mysqlUser>

password: <mysqlPassword>


Backup Files

Before running the following bash command you should copy your public key to this server in order to login without password (modify it for user/serveradress you want to use):

ssh-copy-id -i .ssh/id_rsa.pub user@serveradress

bash command for backup of all files starting from /var/www (modify it for user/serveradress you want to use).

nohup tar -c /var/www 2>/dev/null | ssh user@serveradress "ddof=/shares/...../150413_www.tar" > result.out 2>&1 &