System Preparation

System Preparation

  1. Update you Ubuntu, use commands below

    • sudo apt-get update
    • sudo apt-get upgrade -y
  2. Install required packages

    • sudo apt-get install -y make gcc composer openssl curl php-curl php-mcrypt php-mbstring php-gettext zip unzip libnet-ldap-perl ldap-utils ntp libapache2-mod-xsendfile
  3. Install PHP v7.2

    • sudo apt-get install -y python-software-properties
    • sudo add-apt-repository ppa:ondrej/php
    • sudo apt-get update
    • sudo apt-get install -y php7.2 php7.2-common php7.2-cli php7.2-fpm php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml libapache2-mod-php7.2
    • sudo a2dismod php7.*; sudo a2enmod php7.2; sudo service apache2 restart
  4. Make root access to some scripts (VERY IMPORTANT):

    • You should use command sudo visudo (I hope you know how to use nano editor, if no, google that)
    • ####tgui####
      www-data ALL=(ALL) NOPASSWD: /opt/tacacsgui/tac_plus.sh*
      www-data ALL=(ALL) NOPASSWD: /opt/tacacsgui/main.sh*
      ####tgui####
      

      (use Ctrl + x to save changes)

Created at: 2018-04-25 12:34:06
Updated at: 2018-06-27 13:59:47
Author: Aleksey Mochalin