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 = rtrim($path, DS); if (empty($path) || $path == '.' || in_array(realpath($path), $used)) { continue; }
Change it to:
$path = rtrim($path, DS); if ( $path=='/usr/local/lib/php') continue;//for SAFE MODE
See also this page on Google Groups.
Recent comments