Cygwin is a collection of tools which provide a Linux look and feel for Windows. It includes the equivalent of many Linux binaries, such as cat, nano, less, etc. It also includes a nice command prompt, far nicer than the built in Windows command prompt. I use Cygwin almost exclusively on Windows, since the available Window […]
DevOps
Getting started with Vagrant
Vagrant is a tool that manages virtual machines for you, using a simplified command line interface. It reads from a configuration file, named “Vagrantfile”, to build the virtual machine initially. It handles networking and port forwarding, setting up shared folders, and has commands to SSH into the box, suspend and resume your VM, etc. Vagrant’s […]
Git Tip: No History
If you’re using Git to install some piece of software, such as phpMyAdmin or WordPress, here’s a tip: Don’t get the history when you clone the repository! phpMyAdmin has 10,000+ commits for instance, and you don’t need that. Use the following command to only download the latest source: git clone –depth 1 https://github.com/phpmyadmin/phpmyadmin.git And here’s […]
Why Use Vagrant?
For years, I’ve been using a VM (virtual machine) based workflow. I develop on Windows 7 primarily, but I always deploy my apps to some sort of Linux stack. This leads to a disconnect, a potential area for problems. There are many differences between Windows and Linux, many of which affect PHP, Node.js, Ruby, etc, […]
GitLab & GitHub
For the client I’m currently doing some consulting for, I recommended that they switch to Git as a version control system as they are currently using Apache Subversion and have regular problems with it. I won’t go into a history of Git or Subversion, but I normally recommend Git or Mercurial over a centralized system […]
Multiple Directories w/ PHP open_basedir
I’ve been using PHP’s open_basedir function since I first setup my server, several years ago. It’s a really useful function for securing your servers, although it isn’t perfect. For years, I’ve had problems with the temporary directory not being accessible. Of course, it was a simple fix to use php_admin_value open_basedir /var/www/vhosts/saebermedia.com php_admin_value upload_tmp_dir /var/www/vhosts/saebermedia.com/.tmp […]
Compiling PHP with Suhosin
So upon checking php.net I noticed they released PHP 5.2.11. I still haven’t upgraded to PHP 5.3.0 because it breaks too many things and I haven’t bothered to figure out how to install both of them at the same time (Working on it though). I’ve compiled PHP so many times I can do it quickly […]