=== modified file 'src/docbkx/en/dhis2_implementation_guide_installation.xml' --- src/docbkx/en/dhis2_implementation_guide_installation.xml 2014-07-01 11:52:56 +0000 +++ src/docbkx/en/dhis2_implementation_guide_installation.xml 2014-07-01 12:12:11 +0000 @@ -54,12 +54,17 @@ done at a later stage.
Creating a user to run DHIS2 - You should create a dedicated user for running DHIS - it is not recommended to run - as the root user. Create a new user called dhis by invoking useradd -d /home/dhis -m dhis -s /bin/bash Then make the user able to perform operations temporarily as root - user by invoking usermod -G sudo dhis. Then invoke passwd dhis to - set the password for your account. Make sure you set a strong password with at least 15 random - characters. You might want to disable remote login for the root account for improved security - by invoking sudo passwd -l root + You should create a dedicated user for running DHIS - it is not recommended to run as + the root user. Create a new user called dhis by invoking: + useradd -d /home/dhis -m dhis -s /bin/bash + Then make the user able to perform operations temporarily as root user by + invoking: + usermod -G sudo dhis + Then to set the password for your account invoke: + passwd dhis + Make sure you set a strong password with at least 15 random characters. You might want + to disable remote login for the root account for improved security by invoking: + sudo passwd -l root
Operating system kernel tuning @@ -73,20 +78,32 @@ sudo sysctl -p
- Setting the server time - Remember to set the server date correctly according to the time zone of which the main part of the users of the system are located. This will affect e.g. when scheduled tasks are executed. For instance, to the set time to 22:45, October 17, 2012, invoke sudo date 101722452012. - It may be necessary to reconfigure the time zone of the server to match the time zone of the location which the DHIS2 server will be covering. If you are using a virtual private server, the default time zone may not correspond to the time zone of your DHIS2 location. You can easily reconfigure the time zone by invoking sudo dpkg-reconfigure tzdata and following the instructions. - It is easy to keep your server very accurate by using the NTP package. You can install it by simply invoking sudo apt-get install ntp. NTP will automatically syncronize your server time on a regular basis. + Setting the server time zone + It may be necessary to reconfigure the time zone of the server to match the time zone of + the location which the DHIS2 server will be covering. If you are using a virtual private + server, the default time zone may not correspond to the time zone of your DHIS2 location. + You can easily reconfigure the time zone by invoking the below and following the + instructions. + sudo dpkg-reconfigure tzdata + It is easy to keep your server very accurate by using the NTP package. NTP will + automatically syncronize your server time on a regular basis. You can install it by simply + invoking: + sudo apt-get install ntp
Postgresql installation and tuning Install PostgreSQL 9.3 by invoking: sudo apt-get install postgresql-9.3 - Switch to the postgres user by invoking sudo su postgres - Create a non-privileged user called dhis by invoking - createuser -SDRP dhis. Enter a secure password at the prompt. Create a database by invoking - createdb -O dhis dhis2. Return to your session by invoking exit You now have a - PostgreSQL user called dhis and a database called dhis2. + Switch to the postgres user by invoking: + sudo su postgres + Create a non-privileged user called dhis by + invoking: + createuser -SDRP dhis + Enter a secure password at the prompt. Create a database by invoking: + createdb -O dhis dhis2 + Return to your session by invoking exit You now have a PostgreSQL user + called dhis and a database called dhis2. Do performance tuning by opening the following file by invoking sudo nano /etc/postgresql/9.2/main/postgresql.conf and set the following properties: