EC2 Settings for UNA 13 installation

Can someone give a guidance on the requirements and how to set UNA-13 on AWS EC2 instance?

  • 243
  • More
Replies (4)
    • Here's the basics, doesnt include SSL, S3, RDS, CloudFront, and Secure Email

      Distribution Ubuntu

      sudo apt update

      sudo apt upgrade

      sudo apt install postfix

      sudo apt install mailutils

      sudo service postfix restart

      sudo apt install mysql-server

      sudo apt install apache2 php libapache2-mod-php php-xml php-curl php-json php-gd php-mysql php-mbstring

      sudo apt install php-imagick openssl php-fileinfo php-intl php-exif php-zip php-iconv unzip

      sudo service apache2 restart

      sudo mysql -u root -p

      CREATE DATABASE db1;

      CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';

      GRANT ALL PRIVILEGES on db1.* to 'admin'@'localhost';

      (note: create your user name and password)

      sudo vi /etc/php/8.1/apache2/php.ini

      upload_max_filesize 20M

      post_max_size 20M

      max_execution_time 60

      max_input_vars 3000

      sudo cp -R (from location to location)

      sudo cp .htaccess /var/www/html

      sudo chown -R www-data.www-data /var/www/html

      sudo vi /etc/apache2/sites-available/000-default.conf

      (Change or add the following)

      DocumentRoot /var/www/html             

      <Directory /var/www/html>

      Options Indexes FollowSymLinks MultiViews                   

      AllowOverride All                   

      Require all granted            

      </Directory>

      sudo a2enmod rewrite

      sudo a2enmod expires

      sudo a2enmod headers

      sudo a2enmod ssl

      sudo service apache2 reload

      sudo service apache2 restart

      • Great. Thank you so much. I really appreciate your help on this. does this code include copying "UNA" zipped files and how to unzip UNA into this (is it included in the above code)?

        • I'm doing this from memory ;)

          Use something like Cyberduck to get the una zipped file to server

          ssh using Putty

          cd /var/www/html

          sudo unzip /home/ubuntu/una.zip -d /var/www/html

          cd to /var/www/html/<what ever name was created>

          sudo cp -R * /var/www/html

          sudo cp .htaccess /var/www/html

          sudo chown -R www-data.www-data /var/www/html

          Side note: I'm not the guru, just fumbled my way overtime ;)

          • Thank you so much. Great help indeed. You are awesome!!

            Login or Join to comment.