Yii issues with Homebrew PHP 5.3

Posted on Fri 04 April 2014 in Tech

When running yii with a homebrewed install of PHP 5.3, PHP code embedded in HTML wouldn't work. This is because for some inexplicable reason Homebrew's PHP install disables short-tag support. Simply edit /usr/local/etc/php/5.3/php.ini and change short-tags to On.

short_open_tag = On

Also ensure you're using the homebrewed installation of PHP.

LoadModule php5_module /usr/local/Cellar/php53/5.3.28/libexec/apache2/libphp5.so