Jul 26, 2008

Open_basedir Issue

Free Web Hosting, No Ads > General > Hosted Members Area

free web hosting

Open_basedir Issue

Carson
I use my trap17 account for a website and a forum. Both are a big part of the site, and community based. Members can add content to the website as well, and post on the forums.

I need both softwares to be integrated, so members can register on the forums and be able to use their account for both the forum and the website. That is not the issue though, I have had them integrated, but since open_basedir was enabled, I'm obviously getting an error.

For the forum to access the necessary files from the website, it needs to access them in a higher directory, which open_basedir does not allow. So if it stays like it is now, my members will have to make two accounts.

Furthermore, I have to make all the content on the website viewable by all guests, just so members don't have to register twice. I would like to make some content on the site only viewable by members, but I cannot make them register twice.

What are options here, if any? Is it simply impossible to get the integration of the two softwares to work?

Reply

jlhaslip
Can you give us information above the structure of these Application installations so that we might be able to assist you further? Where is the 'problem' file located now, for example. What is the Directory structure of the Applications? Is there a configuration file where you specify the structure or URLs?
We need to know more than what you have supplied so far.

Thanks.

Reply

Carson
Ah, Okay.

Well the website is located in the root folder(public_html), and the forum in a forums directory. So for example my website is located at mydomain.trap17.com/, and the forum at mydomain.trap17.com/forums/.

The integration script has a configuration script for both the forums and website. The configuration script located in the forums directory requires a set physical path(which is "/public_html") and a URL to the website. I think this is where open_basedir comes into play.

The other configuration script located in the websites directory is pretty much the same. It requires the physical path of the forum("/public_html/forums") and the URL.

This is the actual error I'm getting:
QUOTE
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/public_html/forums/bpforum/configuration.php) is not within the allowed path(s): (/home/marked/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/marked/public_html/forums/bpforum/bpforumconfig.php on line 24

Warning: require_once(/public_html/forums/bpforum/configuration.php) [function.require-once]: failed to open stream: Operation not permitted in /home/marked/public_html/forums/bpforum/bpforumconfig.php on line 24


So I think it is trying to access the configuration file of the website, but doesn't have permission. The forum and website run fine until a member logs in or out, or when editing members etc.

 

 

 


Reply

jlhaslip
Place a copy of the website config file in the /forum sub-directory and change the information required in the website pages to find it there. The file needs to be opened by both softwares, right? so it needs to be in the lowest folder of the bunch.

Any further questions, post back here.

Reply

Carson
Thank you for your reply.


I do have a question though. The file that both softwares need to access is the configuration.php file. To setup the directory to access this, the code is:
CODE
require_once($bpfConfig['joomla_path'].DS."configuration.php");


I have this file(configuration.php) moved to forums/bpforum (bpforum being the sub-driectory of the forums directory, where one of the config files that access's configuration.php is located).

So how would I alter that line to point to the configuration.php file, and not being affected by base_opendir?

Reply

jlhaslip
I don't know Joomla well enough to be able to answer that.

Reply

Carson
I opened up some other php scripts to see how the require_once function works when retrieving files in the same directory. I managed to get it to work. Must be a coincidence I was able to get it working though.

This what I did:
CODE
define('CONF_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );

require_once ( CONF_BASE .DS.'configuration.php' );


To check it was actually pointing to that actual configuration file, i changed the name in the script and got an error. Other things I tried I didnt get an error, but it wasn't pointing to any particular file either. I think all is working now.

Thanks for the help jlhaslip.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. open_basedir issue - 27.59 hr back. (1)
  2. bpforumconfig.php - 142.62 hr back. (1)
Similar Topics

Keywords : open, basedir, issue

  1. I Can && Cannot Acces My Website
    Confusing issue. (4)
  2. Can't Access My Site....weird Issue
    (5)
    Okay, so last night everything worked fine. I loaded up cpanel, fixed issues with the site after the
    database move, etc. Today I'm unable to load up the site. It just keeps giving me ping
    timeouts. With what I'm being told by others it is only me having this issue with my site, and
    yet there have been 0 changes to my pc between it working and not. I have tried multiple times
    during the day with no luck. Along with this, if I load my website using a proxy service then I do
    not have any issues. The only time it will not allow me to access it is if I am "using" my....
  3. My Ftp Issue. Forum Nonviewable.
    (7)
    My situation: I started the cpanel process and clicked on fantastico to begin downloading phpBB2
    automatically on it. It had told me it couldn't continue the process because there were items
    that needed to be deleted, so I deleted everything, the mail regenerated itself fortunately, when I
    reinstalled the phpBB2 discussion board via fantastico I looked at the ftp folder and then tried to
    access the site via IE web browser. I got a 404 page. "Not Found The requested URL / was not found
    on this server. Additionally, a 404 Not Found error was encountered while trying....
  4. New Issue
    File manager (4)
    First of all, thank you a lot for resolving the password issue. Today I encountered a new one once I
    tried to upload a file using cpanel file manager - the window refreshed, but the "upload status"
    frame remained unchanged, and the file did not appear on the list. What could be a reason for that?....
  5. Security Issue
    (2)
    Hey all, i think this is a major problem. it costs 10 credits to change youre cpanel password.
    What is up with that? if someones password is compromised, and they dont have the credits, it could
    take a while for them to get the credits high enough to change it, and in that time its very
    possible that someone could take advantage of the site/cpanel etc. I really think this should be
    changed, if anything make it cost 1 credit, because im sure everyone has that. Personally, i have a
    hard time posting on forums (i cant usually think of anything to say) so my credits are ....
  6. Site Redirection Issue
    (1)
    Okay, here's the deal. My new portfolio system has my sigs located in a really deep directory:
    http://www.brooksrockett.com/portfolio/content/Sigs/Self/ I want to set up a subdirectory
    so that I can just go to: http://sigs.brooksrockett.com/ And be able to view the same image.
    I'm sure that it's somehow possible through cPanel, but I'm having a tough time figuring
    it out. Also, the domain brooksrockett.com is one that's parked on my trap17 site, and my cPanel
    actually shows plusone.trap17.com. I'm not sure if that makes a differe....
  7. Ibproarcade 2.5.2 (acp Issue)
    Usage - IPB 2.0.0 Final (8)
    I recently installed the IB ProArcade for my forums. I use IPB 2.0.0 Final ... and I keep getting
    an error when I view the ACP. I posted at the IB Arcade forums and they could care less about
    anybody that has a pre-2.1.x version. I have the right download and stuff and HAVE tried mulitple
    ways of installation and nothing is working. And this is the last place I will post before deleting
    the stupid thing. /mad.gif" style="vertical-align:middle" emoid=":angry:" border="0" alt="mad.gif"
    /> Main ACP Window CODE IPB WARNING [2] Invalid argument supplied fo....
  8. For Admins : Important Issue About Invision Power Boards
    (6)
    I have Invision Power Board 1.3 setup files and I want to install on my hosting on trap17.It was an
    open source on that time and it was free of cost.So i can install it and i hope it is not involving
    any legal issues and no any moderator / server admin should have any problem.But just wanted to let
    admin know , so that it wont create any problem with my account later.....
  9. Transfering Credits Issue
    Its says i have less than what i show.. (3)
    Ok, well just a second ago i tryed to transfer credits to a friend of mine..but it says that i only
    have 3.45 or somthing credits to transfer (i am trying to transfer 10) but on the Xisto Page It
    says that i have 33.75.... i know that the credit sytem has been modifyed a little but can that be
    interupting with the transfer at all? i have transfered credits to him before and im wondering if
    there is a limit on what i can tranfer to him? it also says i must have credits in the bank, and i
    also wonder what bank because i have looked everywhere and cannot find one? lol....
  10. Cpanel Login Issue
    error finding a page (4)
    I have like a major problem: The server was not able to find the document
    (./frontend/rvblue/files/index.html) you requested Please check the url and try again. You might
    also want to report this error to your webhost. You really have to understand how important
    topic title and description are! This is your last friendly warning. Edited to fit the topic. ....
  11. Advanced Guestbook 2.3.1 Spam Issue
    Anyone has this problem? (2)
    I use the Advanced Guestbook script for my site guestbook and lately I've been getting lots of
    spam. I looked through the files and noticed there doesn't seem to be a way to stop this; even
    the guestbook on the Advanced Guestbook site itself contains tons of spam. Does anyone know of a
    way to prevent this? Or do I have to change guestbooks... Again?? /sad.gif' border='0'
    style='vertical-align:middle' alt='sad.gif' /> My friends are all going to be really tired of me
    asking them to repeatedly sign again and again /tongue.gif' border='0' style='vertical-alig....

    1. Looking for open, basedir, issue

Searching Video's for open, basedir, issue
advertisement



Open_basedir Issue



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE