Skip to content

Instantly share code, notes, and snippets.

View skcin7's full-sized avatar
🎈
Life moves pretty fast

Nick Morgan skcin7

🎈
Life moves pretty fast
View GitHub Profile
@skcin7
skcin7 / php_version_switcher.sh
Created January 22, 2021 23:36
PHP Version Switcher (Bash Shell Script)
#!/bin/bash
#================================================================
# HEADER
#================================================================
#% SYNOPSIS
#+ ${SCRIPT_NAME} args ...
#%
#% DESCRIPTION
#% A simple script to switch the current PHP version being used.
#% used. The switch is reflected system-wide, including in the
@skcin7
skcin7 / README.md
Created March 2, 2020 21:05 — forked from kmassada/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-available directory.
mkdir -p /usr/local/etc/nginx/sites-available

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default and default-ssl to /usr/local/etc/nginx/sites-available
    #STOP APACHE
    sudo apachectl stop
server{
listen 80;
server_name example.com www.example.com;
access_log /var/log/nginx/mysite.access.log;
root /myproject/public;
index index.php index.htm index.html;
gzip on;