Upgrading from MySQL 5.5 to MySQL 5.6 on Ubuntu 14.04

Published on

Make a backup of the data in your existing database. mysqldump –lock-all-tables -u root -p –all-databases > dump.sql Update, upgrade and install MySql 5.6. sudo apt-get update sudo apt-get upgrade sudo apt-get install mysql-server-5.6 If you get a message like the following: The following packages have unmet dependencies: mysql-server-5.6 : Depends: mysql-client-5.6 (>= 5.6.31-0ubuntu0.14.04.2) but … Continue reading Upgrading from MySQL 5.5 to MySQL 5.6 on Ubuntu 14.04

Creating a Non-root User with Sudo Access on Ubuntu

Published on

Add a new user. sudo useradd <username> Add a sudo entry. sudo visudo Below the section heading # User privilege specification add the following entry. <username> ALL=(ALL:ALL) ALL Create the home folder sudo mkdir /home/<username> chown <username>:<usergroup> /home/<username> -R Set the password for the user. sudo passwd <username> Add the following entry to the /etc/passwd … Continue reading Creating a Non-root User with Sudo Access on Ubuntu

Symfony2 Nginx Docker Deploy Script

Published on

#!/bin/bash COMPOSER_EXEC=/usr/local/bin/composer PHP_EXEC=/usr/bin/php WWW_DOC_ROOT=/var/www/production STAGING_DOC_ROOT=/var/www/staging die () { echo >&2 “$@” exit 1 } [ “$#” -eq 1 ] || die “Please provide a website name (folder) to deploy.” if echo “$1” | grep ‘staging’; then DOC_ROOT=$STAGING_DOC_ROOT/$1 else DOC_ROOT=$WWW_DOC_ROOT/$1 fi if [ ! -d “$DOC_ROOT” ]; then die “The specified directory ($DOC_ROOT) does not exist.” … Continue reading Symfony2 Nginx Docker Deploy Script

Symphony2 Nginx Deploy Script

Published on

#!/bin/bash COMPOSER_EXEC=/usr/local/bin/composer PHP_EXEC=/usr/bin/php WWW_DOC_ROOT=/var/www/production STAGING_DOC_ROOT=/var/www/staging die () { echo >&2 “$@” exit 1 } [ “$#” -eq 1 ] || die “Please provide a website name (folder) to deploy.” if echo “$1” | grep ‘staging’; then DOC_ROOT=$STAGING_DOC_ROOT/$1 else DOC_ROOT=$WWW_DOC_ROOT/$1 fi if [ ! -d “$DOC_ROOT” ]; then die “The specified directory ($DOC_ROOT) does not exist.” … Continue reading Symphony2 Nginx Deploy Script

Resolving IBus Problems for IBus prior to 1.5.11

Published on

This is for if you’re on Ubuntu and when you start PhpStorm you get the warning IBus prior to 1.5.11 may cause input problems. See IDEA-78860 for details. These steps will fix the problem. Install the dependencies. sudo apt-get install libdconf-dev libnotify-dev intltool libgtk2.0-dev libgtk-3-dev libdbus-1-dev Download the ibus 1.5.11 source code. wget https://github.com/ibus/ibus/releases/download/1.5.11/ibus-1.5.11.tar.gz Extract … Continue reading Resolving IBus Problems for IBus prior to 1.5.11

Creating a Laravel 5 Package

Published on

For this example we will use the vendor craigzearfoss and the package bullets. In your project folder create the package folder packages/VENDOR_NAME/PACKAGE_NAME. Inside of the package folder create a directory named src. Use artisan to create a service provider. php artisan make:provider BulletsServiceProvider The service provider will be in the app/Providers directory. Move it to … Continue reading Creating a Laravel 5 Package

Adding Password Authentication on Apache with Ubuntu 14.04

Published on

Update packages and make sure apache2-utils is installed. sudo apt-get update sudo apt-get install apache2 apache2-utils Add the user to the password file. (Only use the -c parameter the first time to create the file.) sudo htpasswd -c /etc/apache2/.htpasswd USERNAME Configure the access control within the virtual host definition /etc/apache2/sites-available/HOST_CONF_FILE. Add the lines in red. … Continue reading Adding Password Authentication on Apache with Ubuntu 14.04

Laravel Homestead Creation

Published on

Homestead Includes: Ubuntu 14.04 PHP 5.6 HHVM Nginx MySQL Postgres Node (with Bower, Grunt, and Gulp) Redis Memcached Beanstalkd Laravel Envoy Fabric + HipChat Extension Before you begin. Install Composer. See Installing Composer on Ubuntu. Create a Laravel project. composer create-project laravel/laravel PROJECT_NAME –prefer-dist Download VirtualBox from https://www.virtualbox.org/wiki/Downloads and install. (Make sure you select the … Continue reading Laravel Homestead Creation

Installing Drupal 8 on Ubuntu 14.04 Nginx on AWS

Published on

Create a database. mysql -h localhost -u root -p CREATE DATABASE DRUPAL_DATABASE; CREATE USER DRUPAL_USER@localhost IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON DRUPAL_DATABASE.* TO DRUPAL_USER@localhost; FLUSH PRIVILEGES; exit; Install git and drush. sudo apt-get install git drush -y Create the project. You can do this three ways. With Composer (Recommended) cd /var/www git clone –branch … Continue reading Installing Drupal 8 on Ubuntu 14.04 Nginx on AWS