> Hi,
>
> I'm attempting an advanced installation of Cake 1.3.2 on a linux
> server and trying to get a global plugin directory working (i.e. I
> want a plugins folder /project/plugins which is shared by all my cake
> apps).
>
> I am not sure what is supposed to go in the bootstrap file, I've tried
> (after reading a few different sites):
>
> $pluginPaths = array('/project/plugins/',);
>
> and
>
> App::build(array(
> 'plugins' => array('/project/plugins/', '/var/www/vhosts/site.com/
> app/plugins/')
> ));
>
> Attempting the second method results in the following error messages:
>
> Warning (2): file_exists() [function.file-exists]: open_basedir
> restriction in effect. File(/project/plugins/) is not within the
> allowed path(s): (/var/www/vhosts/site.com/httpdocs:/var/www/vhosts/
> site.com/app:/usr/share/cake) [CORE/cake/libs/folder.php, line 111]
>
> and
>
> Warning (2): is_dir() [function.is-dir]: open_basedir restriction in
> effect. File(/project/plugins/) is not within the allowed path(s): (/
> var/www/vhosts/site.com/httpdocs:/var/www/vhosts/site.com/app:/usr/
> share/cake) [CORE/cake/libs/folder.php, line 141]
This is a PHP config issue. Look closely at the warning:
open_basedir restriction in effect. File(/project/plugins/) is not within the
allowed path(s)
You need to either add this path or disable open_basedir. You can
disable it for a single virtual host with:
php_admin_value open_basedir none
But, since the aim here is to share between several sites, you'd
probably be best off disabling it globally in php.ini. Similarly,
safe_mode may be enabled. If this isn't a shared host, there's not
much need for that.
Also, there was a bug in 4.2.3 so you should upgrade if you still have
that version (heck, upgrade if you still have 4.x).
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment