Since you are using console (php in cli-mode) you might have a separate php.ini to edit. Some systems have that. On my server, for example php ini is: "/etc/php5/cli/php.ini".
All you should have to do is comment out the open_basedir directive from (the correct) php.ini If you get the console working like that you can uncomment it again and add another allowed path... for example "/opt/lampp/htdocs/" /Martin On Apr 22, 9:15 pm, Cepheus <[email protected]> wrote: > Hrmm I've tried messing around with it, safe mode is turned off but it > still will not include the file. I've tried messing around with the > htaccess but no success. I guess I'll find another approach. Thanks, > though. > > On Apr 22, 12:56 pm, Martin Westin <[email protected]> wrote: > > > You have installed Cake in a directory that is not allowed by your php > > configuration. > > >http://www.php.net/manual/en/features.safe-mode.php > > > Look in your php.ini (possibly in /etc/) for the directive to change > > the allowed directories. (But I am not sure Cake works that well under > > "safe mode" even in an allowed directory.) > > > I guess your path is a symlink at some point? > > ~/workspace/www/blog/cake/console would normally be > > /home/usename/workspace/www/blog... but according to php it is > > /opt/lampp/htdocs/blog... > > > /Martin > > > On Apr 22, 12:10 pm, Cepheus <[email protected]> wrote: > > > > Hey everyone, > > > > I've installed cakephp by checking out the SVN repository. When I try > > > to run the cake console, I receive the following output: > > > > [cep...@cephah-laptop ~/workspace/www/blog/cake/console]$ ./cake > > > > Warning: require_once(): open_basedir restriction in effect. File(/opt/ > > > lampp/htdocs/blog/cake/basics.php) is not within the allowed path(s): > > > (/srv/http/:/home/:/tmp/:/usr/share/pear/) in /opt/lampp/htdocs/blog/ > > > cake/console/cake.php on line 155 > > > > Warning: require_once(/opt/lampp/htdocs/blog/cake/basics.php): failed > > > to open stream: Operation not permitted in /opt/lampp/htdocs/blog/cake/ > > > console/cake.php on line 155 > > > > Fatal error: require_once(): Failed opening required '/opt/lampp/ > > > htdocs/blog/cake/basics.php' (include_path='.:/usr/share/pear') in / > > > opt/lampp/htdocs/blog/cake/console/cake.php on line 155 > > > [cep...@cephah-laptop ~/workspace/www/blog/cake/console]$ > > > > I've tried looking around the web but I haven't found anything that > > > worked. Does anyone know what I need to do to rectify this problem? > > > > Thanks in advance, > > > Michael. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
