Foo

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur quam mauris, suscipit eu elit sed, accumsan tempor lorem. Nullam non felis a nisl lacinia varius a sit amet odio. Praesent lectus diam, sagittis venenatis mollis eu, condimentum in felis. Nam scelerisque pulvinar auctor. Nullam magna tortor, aliquam ut porta sed, iaculis id massa. Nullam ut purus id dolor tempus suscipit. Morbi scelerisque vitae mi a laoreet. Suspendisse molestie mollis ornare. Mauris tincidunt suscipit consequat. Proin mollis adipiscing interdum.

Sed mollis, justo vel rutrum commodo, arcu felis porta lectus, eu fringilla ante quam non nisi. Vivamus sodales ante sit amet egestas venenatis. Fusce malesuada justo a molestie vehicula. Sed nec erat justo. Nulla ut risus nulla. Pellentesque vel tempus sapien. Donec semper, ipsum vel ornare malesuada, magna libero aliquam odio, eu rutrum purus arcu quis sem.

Bar. Baz.

Quick and Dirty PHP 7.0 set up on Ubuntu 14.04 with APCu

This is how I got PHP 7 and APCu running on one of the entry-level Digital Ocean droplets:

PHP 7

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php-7.0
apt-get update && apt-get purge php5-fpm && apt-get --purge autoremove && apt-get install php7.0-fpm php7.0-mysql php7.0-gd php7.0-dev

If you need additional php7.0 packages, check the list:

sudo apt-cache search php7

In my enabled nginx site configs (I'm sure there's a place to put this globally, but I only had a couple of sites, so I didn't bother researching that for now):

Replace:

fastcgi_pass unix:/var/run/php5-fpm.sock; 

With:

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

APCu

git clone https://github.com/krakjoe/apcu

Follow the instructions for building APCu in the INSTALL file

In addition to the updates to php.ini described in the INSTALL file, update the 'extensions_dir' directive:

extension_dir = "/usr/lib/php/20151012/"

Do the same for both the FPM and CLI versions of php.ini

Restart PHP-FPM and Nginx:

sudo service php7.0-fpm restart
sudo service nginx restart

That did it for me. With APCu installed, I can continue to use APC as the driver for session and cache in my Laravel 5 apps when Memcache, Redis, etc. are overkill.

 

Using the Laravel Homestead "serve" command with Oh-My-Zsh

So I run an  "extras" script  after installing Laravel's Homestead that installs LDAP, Oracle Drivers, and Oh-My-Zsh among other things. But afterwards, I cannot run the "serve" command in the homestead VM to add new Nginx sites. I've finally figured out that the serve command is actually a bash shell alias function thingy inside .bash_aliases, so it's being ignored once I switch to Oh-My-Zsh.

Simply copying the serve function to .zshrc doesn't work due to some apparent syntax differences with bash and zsh. After digging around a bit, I've slightly modified the function to work now with zsh inside .zshrc:

Hopefully this helps someone else, or maybe someone has a better solution altogether.