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 […]

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 […]