Need help fixing installation of php script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hetfield_86
Forum Newbie
Posts: 1
Joined: Thu Jan 05, 2012 3:42 am

Need help fixing installation of php script

Post by hetfield_86 »

I am trying to install a php clone freelancer script on my site and I get the following message. Can someone help



1) error message: Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/includes/config.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in/home/a9053679/public_html/includes/common.php on line 76 2) line 76 of common.phpMy site is www.findmytradey.com
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Need help fixing installation of php script

Post by twinedev »

Basically, the server you are on is configured so your scripts can only access certain directories, what you are trying to include is outside that list.
You are trying to include from:

/usr/local/apache/htdocs/ (global apache home dir most likely)
from a file in this path:
/home/a9053679 (your hosting accounts home directory most likely
Besides your own home directory, you can only access other specified directories:
/home/
/usr/lib/php
/tmp

So you need to change where the file you are trying to include is located.

-Greg
Post Reply