Featured Post

Baking websites with out a development team.

I have been dipping in and out of using a great open source Rapid Development PHP Framework called cakePHP for the past two years. Developing with this framework has meant I have been able to create functionality in websites a lot quicker and easier than I could ever have done without it. This was by...

Read More

A word of warning to users of 1and1 and cakePHP

Posted by Duncan | Posted in cakePHP, Yahoo! UI | Posted on 30-05-2010

Tags: ,

4

Something I found out recently when I updated the cakePHP core files, when accessing my 1and1 hosting using ssh I kept getting errors when using the cakePHP console. The problem was caused by the fact that by default 1and1 uses PHP 4 for the command line. This cannot be altered using .htaccess, however after a little googleing I found that using php5 on the command line does as you would expect. So to make your cakePHP console work using PHP 5, all that is needed is a little editing of one file. CORE/console/cake

Change this:

exec php -q ${LIB}cake.php -working "${APP}" "$@"

To this:

exec php5 -q ${LIB}cake.php -working "${APP}" "$@"

All console actions will then be run using PHP 5.