Setting Up Xdebug On Laravel Homestead With PHP 7

At the time of writing this, the latest version of Laravel Homestead (4.0) comes packaged with PHP 7 and Xdebug 2.4.0RC3. However, it’s not configured for remote debugging. Follow the steps below to properly setup Xdebug. First, ssh into the vagrant box and append the content below to the /etc/php/mods-available/xdebug.ini file. xdebug.idekey = “phpstorm” xdebug.remote_enable…

READ MORE

WordPress Infinite 301 Redirect Loop

Depending on your current environment setup, there’s a chance you’ll come across an infinite 301 redirect loop when installing WordPress.  If you do, there’s a simple temporary solution to fix the problem. Place this line of code in your theme’s functions.php file. remove_filter( ‘template_redirect’, ‘redirect_canonical’ ); This will prevent the redirection…

READ MORE

Reduce Fail2ban Memory Usage

The initial fail2ban virtual memory overhead on my MediaTemple DV Developer server was approximately 350MB. While that is a lot, you’re not stuck with it. You can modify the over-sized default stack size by adding one line of code to the configuration file. To limit the memory used by fail2ban,…

READ MORE