# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
<# | |
HOW TO INSTALL | |
Open your Powershell ISE Profile (when in the ISE type psedit $profile) and either paste this content into it and save, or dot source the file wherever you saved it. | |
Use Get-Help about_Scripts for more info on dot sourcing | |
#> | |
#Microsoft O365 Menu Items | |
New-Variable -name O365ISECREDENTIAL -scope Script |
This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt
.
As it is not possible to change the ports used for the standalone
authenticator and I already have a nginx running on port 80/443, I opted to use the webroot
method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com
and example.com
).
For this, I placed config files into etc/letsencrypt/configs
, named after <domain>.conf
. The files are simple:
1. Download the phpseven branch of the imagick repository
git clone https://github.com/mkoppanen/imagick.git imagick
2. phpize for target PHP version
cd imagick && /path/to/php7/bin/phpize && ./configure && make && make install
3. Enable the extension for your PHP version
#!/bin/sh | |
### Core | |
xcode-select --install | |
xcodebuild -license | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap caskroom/cask | |
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup | |
brew install brew-cask | |
brew install git | |
brew install wget |
{"lastUpload":"2019-10-06T18:32:39.184Z","extensionVersion":"v3.4.3"} |
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
# downgrade to php5.4 first | |
sudo apt-get install software-properties-common python-software-properties | |
sudo add-apt-repository ppa:ondrej/php5-oldstable -y | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install php5 | |
# install ajenti | |
wget -O- https://raw.github.com/Eugeny/ajenti/master/scripts/install-ubuntu.sh | sudo sh |
#!/bin/bash | |
# | |
# What is that | |
# ============ | |
# | |
# This script will help you setting up your digital ocean | |
# infrastructure with Ansible v2.0+ and DO API v2 | |
# | |
# Usually, when working with DO, one is supposed to use digital_ocean.py | |
# inventory file, and spin up instances in a playbook. |