Page 1 of 1
Error message appears on 000webhost.com
Posted: Sun Dec 21, 2008 6:11 pm
by uergsel
Hi there,
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
Re: Error message appears on 000webhost.com
Posted: Sun Dec 21, 2008 6:21 pm
by garvinhicking
Hi!
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
Re: Error message appears on 000webhost.com
Posted: Tue Dec 23, 2008 1:11 am
by uergsel
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.
Re: Error message appears on 000webhost.com
Posted: Tue Dec 23, 2008 10:50 am
by garvinhicking
Hi!
Try to create a test.php script:
Code: Select all
echo $_SERVER['DOCUMENT_ROOT'] . "<br />\n";
echo $_SERVER['PHP_SELf'] . "<br />\n";
and save that in your s9y dir and tell me what it reports when you call it in your browser?
Regards,
Garvin
Re: Error message appears on 000webhost.com
Posted: Tue Dec 23, 2008 11:34 am
by uergsel
garvinhicking wrote:Hi!
Try to create a test.php script:
Code: Select all
echo $_SERVER['DOCUMENT_ROOT'] . "<br />\n";
echo $_SERVER['PHP_SELf'] . "<br />\n";
and save that in your s9y dir and tell me what it reports when you call it in your browser?
Regards,
Garvin
Errr... see for yourself.
http://weihnachtsuergselchen.net46.net/test.php
Re: Error message appears on 000webhost.com
Posted: Tue Dec 23, 2008 12:41 pm
by garvinhicking
Hi!
Add <?php on top. sorry, I thought that goes without saying
Regards,
Garvin
Re: Error message appears on 000webhost.com
Posted: Tue Dec 23, 2008 6:40 pm
by uergsel
garvinhicking wrote:Add <?php on top. sorry, I thought that goes without saying

*sigh*
Programmer shouldn't think too much when it comes to non-programmer
It says "/usr/local/apache/htdocs"
http://weihnachtsuergselchen.net46.net/test.php
Mhhh... is this any better?

Re: Error message appears on 000webhost.com
Posted: Tue Dec 23, 2008 8:20 pm
by garvinhicking
Hi!
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
Posted: Sat Dec 27, 2008 3:18 pm
by uergsel
Mhhh... here's what they answered:
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
Posted: Sat Dec 27, 2008 3:24 pm
by garvinhicking
Hi!
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
Posted: Sat Dec 27, 2008 4:33 pm
by uergsel
How come that other stuff works on these servers? If it's so essential...?!
Posted: Sat Dec 27, 2008 8:55 pm
by garvinhicking
Hi!
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
Posted: Mon Dec 29, 2008 12:06 pm
by afx2000
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
What exactly is wrong with the two paths?
This is with the latest snapshot of s9y
Posted: Mon Dec 29, 2008 2:09 pm
by garvinhicking
Hi afx2000!
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
Posted: Mon Dec 29, 2008 2:13 pm
by afx2000
Ok then, thank you very much!