Skip to content

Instantly share code, notes, and snippets.

View mdrmike's full-sized avatar

mike stewart mdrmike

  • Media Done Right
  • Long Beach, CA
View GitHub Profile
@mdrmike
mdrmike / Ubuntu 14.04 + NGINX + PHP5-FPM + MARIADB.md
Last active February 4, 2016 23:17
Ubuntu 14.04 NGINX WebServer for production, development, and/or desktop use.

UPDATE UBUNTU 14.04

sudo apt-get update
sudo apt-get -y upgrade

CORE INSTALL

note: you'll need to enter a root password for mysql

sudo apt-get -y install nginx php5-fpm php5-cli php5-gd mariadb-server-5.5

Optional: Install Development related apps

sudo apt-get -y install git phpmyadmin

@mdrmike
mdrmike / php_drupalpro.ini
Created May 14, 2014 22:04
php5 php_drupalpro.ini overrides for Drupal
; PHP overides for Drupal development
; copyright 2014 Michael Stewart and Licensed under GNU General Public License 3.0: http://www.gnu.org/licenses/gpl.txt
; NGINX REQUIREMENTS
cgi.fix_pathinfo=0
; DRUPAL REQUIREMENTS
; BASED ON https://drupal.org/requirements/php
error_reporting = E_ALL & ~E_NOTICE
safe_mode: Off
@mdrmike
mdrmike / phpmyadmin.conf
Last active January 12, 2022 21:44
NGINX vhost file for phpmyadmin on ubuntu 14.04 using sudo-apt get install phpmyadmin ,,, install as normal but don't select webserver (neither apache nor lighttpd). add this to /etc/nginx/sites-available/ then enable by adding to sites-enabled and add 127.0.0.1 phpmyadmin to /etc/hosts
server {
listen 80;
server_name phpmyadmin;
root /usr/share/phpmyadmin/;
index index.php index.html;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
##------------------------------------
# NGINX VHOST TEMPLATE FOR DRUPALPRO
#-------------------------------------
#
# FIND AND REPLACE ##=VARIABLES==
# ##==SERVER_TLD== -- FQDN (aka URL)
# (multiple comma separated URI's is ok).
# Example: foobar.dev, *.foobar.dev, AwesomeWebsite.com
#
# ##==PATH_TO_SITE== -- ABSOLUTE PATH TO DRUPAL