Ubuntu 18.10 server setup

Submitted by admin on Mon, 12/23/2019 - 10:27

Setting up an Ubuntu server with a standard Apache/MySQL/Php stack. These are the base commands I start with.

# Start with an updated machine, and neofetch of couse.
apt update
apt upgrade
apt install neofetch
# Install the basic services and extensions
apt install apache2
apt-get install php
apt-get install mysql-server
apt install php-date php-dom php-filter php-gd
apt install php-hash php-json php-pcre php-pdo
apt install php-sessionphp-simplexml php-spl
apt install php-mbstring php-tokenizer php-xml
apt install php-mysql php-curl composer
adduser --disabled-password <any username>
phpenmod pdo_mysql curl
a2enmod rewrite
systemctl reload apache2

After that I make tweaks for backups, security and start adding the accounts/applications I will be needing.

 

 

Tags