Ubuntu 16 server setup

adduser {{username}}
adduser {{username}} sudo

apt-get install apache2
apt-get install php
apt-get intsall libapache2-mod-php
apt-get install php-mcrypt
apt-get install php-mysql

apt install iptables
apt install fail2ban

apt update
apt full-upgrade
apt install build-essential
apt install tcl

add some swap

fallocate -l 1G /mnt/1GB.swap
dd if=/dev/zero of=/mnt/1GB.swap bs=1024 count=1048576
mkswap /mnt/1GB.swap
swapon /mnt/1GB.swap
chmod 0600 /mnt/1GB.swap
echo "/mnt/1GB.swap  none  swap  sw 0  0" >>/etc/fstab 

apt install mysql-server
mysql_secure_installation

## {{su}}
curl latest redis.io stable
make
make test
make install
mkdir /etc/redis
cp redis.conf /etc/redis

## create /etc/systemd/system/redis.service – e.g.

[Unit]
Description=Redis
After=network.target
[Service]
User=redis
Group=redis
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown
Restart=always
[Install]
WantedBy=multi-user.target

## now you need to diff your redis.conf – password, persistence, binding, etc.

## when you are ready to move … (or to test, see ExecStart)
systemctl enable redis

## next

cd /etc/apache2
ln mods-available/rewrite.load mods-enabled/rewrite.load

0 thoughts on “Ubuntu 16 server setup”

  1. Good morning! I was wondering if anybody is able to assist me with selecting some new ejuice lines for our online vape marketplace https://allvapebrands.com? Next month, I will be taking on these vape juice lines – Buddha Vapes Made In UK E-liquid, Bird E-Juice, Crispy eJuice SALTS , Machine Oil eJuice and Smoothie Up Tropical E-Liquid! Has anyone tried any of these vape juices

  2. Good morning, We would like to take this opportunity to welcome you to list your company on All Vape Stores, a reputable CBD and Vape Company Directory. A Tiny Bit about Us – All Vape Stores is a worldwide CBD and Vape Shop Directory site that is intended to aid people locate their local CBD and vape shops. We already get over 100,000 unique and highly-targeted site visitors a calendar month, mostly from the UK and USA. We achieve such a strong internet site visitor traffic number by running a very successful CBD and vape blog precisely where we cover the most up to date CBD and vape industry news, customer reviews and user tutorials. We likewise send out frequent weekly newsletters to our users when we publish new articles. By listing your business with All Vape Stores, you will get an opportunity to cultivate your brand is visibility, site traffic and consumer base. Clients will be able to get in touch with you via a contact form straight on your business listing page. Likewise, you will get a backlink from your profile which will aid you with your ONLINE MARKETING link building for organic search engine rankings. To list your company, please head to: https://allvapestores.com/ We eagerly anticipate seeing you onboard. Kind regards, All Vape Stores Team

Leave a Reply

Your email address will not be published. Required fields are marked *