I wanted to check out the new RC of s9y so I've installed it on my free 000webhost.com-server (:arrow: shrunklink.com/bkgi). Now, it seems to work but I get an error message on each page:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs//serendipity_config_local.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a5097897/public_html/serendipity_config.inc.php on line 225
What does it mean and how can I remove it?
Sal
Vivan le femmine!
Viva il buon vino!
Sostegno e gloria d'umanità!
(W. A. Mozart/ L. da Ponte aus "Don Giovanni", 2. Akt)
In which path is your s9y installed? s9y seems to query your Document_root, but it seems that your php is not configured to allow your document root as a valid include path; that's VERY uncommon. You should ask your provider to put your document root into the php open_basedir include path.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking wrote:In which path is your s9y installed? s9y seems to query your Document_root, but it seems that your php is not configured to allow your document root as a valid include path; that's VERY uncommon. You should ask your provider to put your document root into the php open_basedir include path.
There's a public_html-folder which I must use, regardless what I install onto the server. In this /public_html I've unpacked the s9y-files (without the "serendipity"-folder).
I'm not quite sure if I understand your point with PHP not configured to allow my document root (which would be /public_html/, is it?). I'm almost sure, that this can't be as I am able to install other php-based-stuff (wordpress i.e. in the same folder without any error messages). Where can I check this - and (how?) could I change it with phpmyadmin?
s.
Vivan le femmine!
Viva il buon vino!
Sostegno e gloria d'umanità!
(W. A. Mozart/ L. da Ponte aus "Don Giovanni", 2. Akt)
and save that in your s9y dir and tell me what it reports when you call it in your browser?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Add <?php on top. sorry, I thought that goes without saying
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Okay, then it definitely needs your provider must adjust the open_basedir PHP.ini directive.
Tell him about the error message, then they should know what to do.
Usually all hosts pay attention to that setting, so on other webservers you should not have that problem.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
We are sorry but we cannot offer this feature now. We cannot changedefault server configuration as it would affect all the other users too.Current server configuration enables maximum security for the server andusers, so it cannot be changed.
It's a free account that I want to use for test purposes... is there any other way to fix it or at least to suppress the error code? Or does the error code mean that I won't be able to use s9y properly?
Sal
Vivan le femmine!
Viva il buon vino!
Sostegno e gloria d'umanità!
(W. A. Mozart/ L. da Ponte aus "Don Giovanni", 2. Akt)
You could patch it at that place, but many other plugins or places would need patching, too. The freehost should properly set up the PHP configuration, I'm sorry.
If you need it for tests, why not install WAMP/XAMPP on your own machine?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
I think only stuff works on that server that does not need write access to its directories. There are MANY MANY php applications out there that might need those write and read privileges.
I can only tell that the hoster has a restricted setup that does not make sense for many usage scenarios, including serendipity.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
I have the same problem here (with another hoster).
Output of my test-Script:
/home/httpd/vhosts/rossiworld.com/httpdocs
/blog/test.php
I got the errors when trying to install or update the plugins in the backend:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/ChangeLog) is not within the allowed path(s): (/home/httpd/vhosts/rossiworld.com/httpdocs:/tmp:/usr/share/pear:/usr/bin) in /home/httpd/vhosts/rossiworld.com/httpdocs/blog/include/admin/plugins.inc.php on line 231
Your problem is unrelated and something different; those are not errors, only warnings about files that cannot be accessed. You can actually disregard them, the system is simply looking for non-existant changelog files.
I relaxed this check for the next version, but you loose no functionality because of this.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/