Baking on Ubuntu while using xampp

xampp logoSo, 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

Step 1:  Add an alias for php in .bashrc.  Open the ~/.bashrc file and add the following line
alias php='/opt/lampp/bin/php'

Step 2: When running the bake script, run it as follows
php cake.php bake


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s