Last active
August 29, 2015 14:20
-
-
Save drparham/b9b7c1401793eb40843d to your computer and use it in GitHub Desktop.
New Server Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fresh Ubuntu Server | |
sudo apt-get install nginx git php5-cli php5-fpm php5-mcrypt php5-mysql php5-curl php5-gd | |
# Install php-fpm-cli | |
# See php-fpm-cli gist | |
# Install/Configure Unattended Upgrades | |
# Should be installed on Ubuntu | |
sudo apt-get install unattended-upgrades | |
sudo vi /etc/apt/apt.conf.d/50unattended-upgrades | |
Make sure only the security origin is uncommented. | |
Unattended-Upgrade::Allowed-Origins { | |
"${distro_id}:${distro_codename}-security"; | |
// "${distro_id}:${distro_codename}-updates"; | |
// "${distro_id}:${distro_codename}-proposed"; | |
// "${distro_id}:${distro_codename}-backports"; | |
}; | |
# Configuration | |
sudo vi /etc/apt/apt.conf.d/02periodic | |
# If this file doesn't exist, look for another 0#periodic file in /etc/apt/apt.conf.d/ | |
File should look like the below: | |
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Download-Upgradeable-Packages "1"; | |
APT::Periodic::AutocleanInterval "7"; | |
APT::Periodic::Unattended-Upgrade "1"; | |
# Issues with mcrypt or other php modules saying not installed for php5-fpm but installed for php5-cli. | |
sudo php5enmod mcrypt | |
sudo php5enmod gd | |
etc.. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment