Safe Mode Error

When you have a fresh install of CakePHP 1.2 on your machine, the following error might appear:

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1023 is not allowed to access /usr/share/php owned by uid 0 in <your_location>/HTML/cake/libs/configure.php on line 476

This can be solved by changing the following lines in /cake/libs/configure.php:

$path [...]