Getting Started – Ubuntu
2 System setup
% ln -sn avhs-3.0.0-ubuntu-trusty-x86_64 current
% exit
2.4 Configure log rotation
Copy the sample log rotation file and edit if required:
# cd /home/sts/current/examples/
# cp logrotate-sts /etc/logrotate.d/
Note
• When the AVHS distribution file is unpacked, the default log directory for
sts
is automatically created, as
/home/sts/current/logs/
. If logs should be stored in another directory, this must be configured manually,
for example:
# mkdir -p /var/log/sts/
# chown -R sts:sts /var/log/sts
• When storing logs in other locations, remember to change the path in the
logrotate-sts
file.
• Wherever the log files are stored, always ensure there is enough disk space to hold them. In larger systems, it is
recommended to use a separate partition for log files.
2.5 Install other required applications
The instructions provided here rely on the installation of specific versions of various applications and systems; MySQL, Apache2,
PHP5, etc. Following these instructions will ensure the correct versions are installed.
The instructions provided below apply to Ubuntu.
2.5.1 Install MySQL
Install the required MySQL components and set the password.
# apt-get install mysql-client mysql-server mysql-common
2.5.2 Install the Apache web server
Install Apache2:
# apt-get install apache2-mpm-prefork
2.5.3 Install PHP
To install PHP5:
# apt-get install php5 php5-mysql php5-curl php5-gd php5-mcrypt php5-cli php5-apcu
Edit the following files as root:
# vi /etc/php5/apache2/php.ini
# vi /etc/php5/cli/php.ini
# vi /etc/php5/mods-available/apcu.ini
# vi /etc/php5/mods-available/opcache.ini
to match the values in the example file
/home/sts/current/examples/php_directives.ini
2.5.4 Reconfigure locales
If installing AVHS on an operating system whose default language is not US English (
en_US
), the locales should be reconfigured.
9