4945 Posts in 17872 Topics by 1494 members
|Go to End|
6 March 2010 at 8:05am
I recently installed silverstripe for the first time on a test site on my production server, which runs Kloxo on CentOS.
The admin section works fine, but the default site preview gives a string of errors such as
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/html//includes/classes) is not within the allowed path(s): (/home/httpd/[domain]/httpdocs:/home/httpd/[domain]/[domain]:/home/[user]/:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script) in /home/[user]/[domain]/html/includes/application_top.php on line 60
With CMS's I have used in the past, I would fix path issues in the config file, but I couldn't see any relevant entries there (indeed, it is tiny!)
I don't know how many people are familiar with Kloxo, but its structure is unusual: PhP runs as user:apache, and usually needs to see paths based on the server root: /home/[user]/[domain]/html/...
So how would I fix this without compromising security?
|Go to Top|