Error message appears on 000webhost.com

Having trouble installing serendipity?
Post Reply
uergsel
Regular
Posts: 38
Joined: Fri Feb 09, 2007 2:20 pm
Location: Köln (Cologne)
Contact:

Error message appears on 000webhost.com

Post 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
Vivan le femmine!
Viva il buon vino!
Sostegno e gloria d'umanità!

(W. A. Mozart/ L. da Ponte aus "Don Giovanni", 2. Akt)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error message appears on 000webhost.com

Post 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
# 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/
uergsel
Regular
Posts: 38
Joined: Fri Feb 09, 2007 2:20 pm
Location: Köln (Cologne)
Contact:

Re: Error message appears on 000webhost.com

Post 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.
Vivan le femmine!
Viva il buon vino!
Sostegno e gloria d'umanità!

(W. A. Mozart/ L. da Ponte aus "Don Giovanni", 2. Akt)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error message appears on 000webhost.com

Post 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
# 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/
uergsel
Regular
Posts: 38
Joined: Fri Feb 09, 2007 2:20 pm
Location: Köln (Cologne)
Contact:

Re: Error message appears on 000webhost.com

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error message appears on 000webhost.com

Post by garvinhicking »

Hi!

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/
uergsel
Regular
Posts: 38
Joined: Fri Feb 09, 2007 2:20 pm
Location: Köln (Cologne)
Contact:

Re: Error message appears on 000webhost.com

Post 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 :wink:

It says "/usr/local/apache/htdocs" :arrow: http://weihnachtsuergselchen.net46.net/test.php

Mhhh... is this any better? :roll:
Vivan le femmine!
Viva il buon vino!
Sostegno e gloria d'umanità!

(W. A. Mozart/ L. da Ponte aus "Don Giovanni", 2. Akt)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error message appears on 000webhost.com

Post 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
# 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/
uergsel
Regular
Posts: 38
Joined: Fri Feb 09, 2007 2:20 pm
Location: Köln (Cologne)
Contact:

Post 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
Vivan le femmine!
Viva il buon vino!
Sostegno e gloria d'umanità!

(W. A. Mozart/ L. da Ponte aus "Don Giovanni", 2. Akt)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
uergsel
Regular
Posts: 38
Joined: Fri Feb 09, 2007 2:20 pm
Location: Köln (Cologne)
Contact:

Post by uergsel »

How come that other stuff works on these servers? If it's so essential...?!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
afx2000
Posts: 2
Joined: Mon Dec 29, 2008 12:02 pm
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
afx2000
Posts: 2
Joined: Mon Dec 29, 2008 12:02 pm
Contact:

Post by afx2000 »

Ok then, thank you very much!
Post Reply