So, I’m a web developer working on Ubuntu. Since I don’t want to get into complications like pinning to have earlier versions of PHP (useful when developing on Drupal), I use XAMPP. Its a bit of a work to get php ready to bake while using XAMPP on Ubuntu. These instructions are probably generic to any bash shell, but tested and working on Ubuntu. Also note, I assume you install XAMPP in the expected directory at /opt/lampp
.
Add an alias for php in .bashrc. Open the
~/.bashrc
file and add the following line:alias php='/opt/lampp/bin/php'
When running the bake script, run it as follows:
php cake.php bake
Leave a Reply