I got a warning when parsing my "Twitter BootStrap" files and saving them on disk in my less-cache folder.
Warning: is_file(): open_basedir restriction in effect. File(/../../lib/bootstrap/less/reset.less.less) is not within the allowed path(s): (/var/www/vhosts/example.com/:/tmp/) in /var/www/vhosts/example.com/httpdocs/wp-content/modules/wp-less/lessc/lessc.inc.php on line 80
I'm using (for example) @import "../../lib/bootstrap/less/reset.less";
in the main file that I'm parsing.
The funky thing is, that the first stylesheet gets the extension two times: reset.less.less
- the other ones not. Another thing that keeps me wondering, is why the heck there's a leading /
in front of the files.
Some data about the environment and server:
- PHP 5.3.3
- Wordpress 3.4.2
- The WP-LESS Plugin (yes, I commit to this repo), which uses the LESSc library - which throws the error from here.
php.ini
include_path = ".:..:"
upload_temp_dir _no value/not set_
open_basedir = "/var/www/vhosts/example.com/:/tmp/"
Thanks for any help in advance!