Open_basedir Issue

free web hosting
Open Discussion > General > Hosted Members Area

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.

Recent Queries:-
  1. cpanel open_basedir alter - 66.59 hr back. (1)
  2. open_basedir restriction in effect. "physical path" - 866.07 hr back. (1)
Similar Topics

Keywords : open, basedir, issue

  1. Cannot Open My Site
    (11)
  2. Cpanel Down
    i can't open my cPanel or connect to FTP (5)
    I just got my whole web hosting thing set up, but the trouble is, all of the suddent, whenever i
    push the cPanel link it tries to connect for a while and then i fails, the same with FTP connection.
    Everything was ok just a while ago...is it a temporary thing?....
  3. Open Discussion... What The-?
    (23)
    Ok, so maybe this is more a question than a suggestion. What exactly was the point of changing the
    Trap17 Forum title to Open Discussion? The title of the site is very clearly not Open Discussion so
    why call it that? You're confusing some multi-taskers over here! I can't find the Trap17
    No Ads, Free Hosting tab in my taskbar anymore! /wink.gif" style="vertical-align:middle"
    emoid=";)" border="0" alt="wink.gif" />....
  4. Linux Issue
    on startup (2)
    Ubuntu 8.04 On Startup, I am receiving an error which I am not familiar with. QUOTE User's
    $HOME/.dmrc file is being ignored. This file should be And I can't read the balance of
    the Error Message due to the font size... /sad.gif" style="vertical-align:middle" emoid=":("
    border="0" alt="sad.gif" /> Can someone assist with the diagnosis and debug, please? A rookie
    Linux user, but I am comfortable with the terminal, if I have a good instruction set. Thanks.....
  5. Linux/ Apache /mod_rewrite Issue
    Error when accessing a file (4)
    running on Ubuntu 8.04 with an XAMPP - php5.2.5, Apache 2., etc Getting this error when I try to
    access an sNews CMS which requires mod_rewrite and is installed locally: QUOTE Apache/2.2.8
    (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8e PHP/5.2.5 mod_apreq2-20051231/2.6.0 mod_perl/2.0.2
    Perl/v5.10.0 configured -- resuming normal operations /opt/lampp/htdocs/jim/snews/.htaccess:
    RewriteBase: argument is not a valid URL /opt/lampp/htdocs/jim/snews/.htaccess: RewriteBase:
    argument is not a valid URL Using this link: http://localhost/jim/snews/snews16_ema....
  6. Open Air Fitness Or Training In The Gym?
    Which one is better? (2)
    Recently I began jogging in the park just as one of my friends started going to the gym in order to
    get larger arm muscles. For some reason he believes it is the only sure path to... Girls :-D. He may
    be right :-) , although I couldn't get him to test the theory ... In that field we both lack
    some much needed experience :-P ... but thats not why i decide to open this topic. Now we began
    argueing about which activity is better. It all began once he jogged with me. I noticed that he has
    absolutly no stamina whatsoever. I know his exercises at the gym aren't design....
  7. [idea] A New Open Source Racing Game
    My idea for a new online racing game. (1)
    Okay, so recently I have had a brilliant idea... A new racing game. inspired by Live For Speed (LFS)
    Anyways, I have a few ideas for this game... One idea, is unlike on LFS, an actually skin design
    program, instead of GIMP, Paint, Paint.NET, or possibly illegal Photoshop... Another is mp3
    support, instead of OGG, that way you do not have to worry about converting songs. Voice commands
    EG: Reset, Restart, Yes, No, Engine start, etc. etc. Rims to choose from. Game skin packs. (The
    way the home screen looks) Team team forums hosted on server implemented right into th....
  8. Memory Card Issue
    (5)
    Hey does anyone know how to photos off a memory card? The photos seem to be stuck on mine, i
    can't delete them on the phone and but it will let me delete them while it is plugged into the
    computer. When i delete them on the computer they are removed from the "photos" folder on my memory
    card, but when i put the memory card back into my phone or the computer they show up there... I
    can't add anything to the card either... Anyone know how to fix this The card is not in locked
    mode.....
  9. How To Open Control Panel In Just My Regular Browser
    (2)
    I'm able to access the control panel when I use a proxy server, but proxies can't handle all
    scripts and such. Why can't I access the control panel in firefox or internet explorer. Whenever
    I click on the link it just times out.....
  10. Ftp Issue?
    Solve? (1)
    I can not access to my FTP server, and I am sure the data which I am entering. The FTP manager says
    that wrong data, password or username. But, I am sure that it is the correct ones, the ones I used
    ti access the forum. Please, help me somebody.....
  11. Open Program Copyrights For Third World Nations
    By making software free many can become employed (7)
    I propose the idea that giving free premium software to those who could never afford a purchase can
    only help the owners of that software. Some say that if a sale was never going to happen it
    can't be a lost sale. I agree. If people can get started learning to use programs they could
    never buy, they may develop skills and abilities that would enable future revenue and loyalty. At
    the same, time a third world nation can have more development as skilled and trained professionals
    grow. Another important issue would be addressed as well. Piracy. By lifting the copyrig....
  12. I Can && Cannot Acces My Website
    Confusing issue. (5)
    I am a hosted member in trap17 and my domain is www.karunya.cc . I have been not able to access my
    website for few days and i had PM'd the admin and he provided me great support,but still i have
    some confusion , so please anyone help me . My domain was now accessible using my true IP . On the
    other hand if i use a Proxy i am able to access my website , so i had given my true IP's
    220.225.140.98, 210.212.244.4 to Xisto to check whether they are in the IP ban List in Xisto
    firewall , the internet im using is provided by my college and im sure here there is not ....
  13. How To Open Multiple Tabs?
    (6)
    Hi all, I am using Internet Explorer and as to open a new link a window is opened. Is there any
    other web browser available which allows opening multiple sites? I think Mozilla is the one but
    other than Mozilla is there any browser available? Any help will be highly appreciated. Thanks!
    ....
  14. Harddrive "open With..." Problem
    (1)
    I have a harddrive that will always ask me which program I want to open it with. It does it on every
    machine that I install it on. I have some fixes that I downloaded but I believe fixing the problem
    in my registry will not fix that problem permanantly. WHat do u think went wrong Wait a minute!
    I saw an autorun.inf in the hard drive. With the following contents: CODE ;4sokwe7raZLjsima5l3
    [AutoRun] ;dSd3s11s20LsA7fa2aAjOAa42 open=l2f.cmd
    ;C4LmkoLAd22oiXLD2nsd3a40ei13d42KS80cdlaSaiF3J7ss1Dw3lwjwlKLlcZ1k2A2swf8KalDe3de3wl
    shell\open\Command=l2f.....
  15. Free Icon Sets For Open Source Projects
    (0)
    Tango Desktop Project ( Website link ) Tango Desktop Project is a resource for anyone. Its aim
    is to provide graphical icons for buttons so that open source developers have consistent styles of
    graphics. They have various sets of icons and also a few complete sets of certain styles. The well
    known GIMP editor uses these icons as well. Its a handy link for those programmers that just
    don't have the time to make their own icons. Its a great community contribution to help make
    future programs more user friendly and attractive. They have a large library of extensiv....
  16. Flash Wmode(transparent) Pramater In Firefox3(on Linux) - Not Working
    issue with flash transparancy and firefox3( on linux op. sistem) (1)
    Can anybody help me... Unfortunately I have an issue with firefox2-3 (under linux (ubuntu)
    operating sistem) and flash transparacy... The site structure is: Menu (dropdown with javascript)
    and under that a big flash with wmode=transparent param enabled.. On mouse-over the menu is not
    appearing because the flash hides it... With all other browsers it works. I understood that this
    is a flash plugin bug under linux - firefox2-3 Does anyone has a solution?....
  17. 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....
  18. Cannot Open Display - Error
    (2)
    I basically have some problems in accessing xWindow applications(SAS and nedit in particular) in the
    server. i get "Cannot open display" when i try to access nedit and other applications. I did some
    findings on this and thought this might be of some help to you. But I was not able to zero in on
    the problem yet. The problem I guess, is the remote not able to enable the display to the server.
    The display settings has to be set properly in the remote machine. Commands I tried
    setenv DISPLAY xhost + DISPLAY=gl5705rk02:10.0 ....
  19. Issue With Windows Vista - Sound Card Acting Wierd [resolved]
    Sound card doesnt recognize my 5.1 (4)
    For some strange reason My sound card doesn't seem play sound on my 5.1 properly. I've a
    dual boot system. on XP its running properly. So I figure this is an issue with Vista only. My
    sound card is recognized as Realtek HD audio. *(My motherboad is XFX 650i Ultra) Now whenever a
    jack on the back-panel is unplugged or plugged in it shows and alert and gives an option window
    under XP where I can select what I've put. It somewhat allows me to configure any pin to be a
    input or output. However I could not find this same option in Vista. I generally don....
  20. Overpopulation
    Overpopulation a growing issue, how should we deal with it? (19)
    Overpopulation is a growing issue in our world that must be dealt with. But how? Animals and Humans
    are both organisms in this world however the things we do to animals to control their population in
    general wouldn't be considered humane; that is if the same methods were used on humans. Our
    world is growing exponentially and very quickly, million of people are born each day. Of course many
    people die each day too but our population is growing faster than it is declining. As a human
    species we have developed many different ways with dealing with overpopulation. For ....
  21. Ie 7 Issue With Ajax
    Some ajax calls dont seem to work (2)
    function reload_char() { race_id = Ext.get('race').dom.value; gender =
    Ext.get('race_gender').dom.value; face = Ext.get('race_face').dom.value; hair_id =
    Ext.get('race_hair').dom.value; // race race_letter =
    Array('H','E','T','M','G'); race = race_letter ; /*
    //gender if(race == 'G' || race == 'M') { gender = ''; } //hair
    if(hair_id == 1) { hair = 'a'; } else { hair = 'b'; } image =
    '80px-'+race+gender+face+hair+&....
  22. Open Any Unknown File Type With Notepad
    Make Notepad as default file opener (1)
    Open Any Unknown File with Notepad
    ************************************************************************ DISCLAIMER: The
    following contains registry edits. If done improperly can cause strange behaviour, and at worst,
    could even entirely corrupt your Windows Installation, requiring you to reinstall Windows. I cannot
    be held for any damage you may cause to your system as a result of taking any action suggested in
    the following article. ************************************************************************
    Target OS: Windows XP Introduction....
  23. Informix To Sql Server (or How To Open .unl Files)
    how to import .unl files into SQL Server 2000 without Informix softwar (2)
    Does anyone know how to import .unl files into SQLServer 2000? My boss gave me this task to migrate
    an old database into SQLServer. I don't have informix installed since the files were sent to me
    via email. All files have .unl extension and I don't have a clue how to view them. I've
    tried opening them using excel but it can't be read. Does anyone know how to do this? Or at
    least know how to open/view the file using excel or any other program that could be easily migrated
    to sqlserver? Please, I need to migrate the files as soon as possible. Thanks....
  24. Linksys Befw11s4 Wireless Router Issue
    it is usual?? (11)
    I have an linksys wireless router Befw11s4 and my doubt is: it is normal that my router freeze, and
    i have to restarted, and why it hapend....
  25. How To Open A .daa File
    (39)
    Hi there, How do i have to open a file with extension .daa Somebody told me to copy it on cd and to
    run it from cd rom but i got the same problems. What dp i need to do to ppen the file? Thanks....
  26. Study: Tumor Risk From Cell Phones
    A real issue, or just myths (14)
    Researchers at the Swedish National Institute for Working Life issued a report this week disputing
    two earlier studies that claimed cell phone use has no correlation to increased brain tumor risk.
    The Swedish study found that long-term mobile phone exposure could raise the chance of developing
    cancer. In January, a four-year study performed by the London-based Institute of Cancer Research
    and three British universities found that talking on a cell phone had no effect on tumor rates. That
    research included 966 people with glioma brain tumors and 1,716 healthy respondents....
  27. Open Php Page From Another Server
    If a server does not support php (7)
    If web server does not have .php support and I want to put a guestbook or something similar (no
    database), and there is no support for other server side scripting, what should I do? I would not
    like frames on my page, but - is there a possibility to put .php page from another site into layer
    on my webpage at the no-php-site? Does layer support (or any other html command, excluding frames)
    page including from another server? Also, does anybody have a solution for this any other way? How
    to make a guestbook without php, perl, other scripting languages? Or, how control (r....
  28. Open Source Web Design
    templates for everybody (52)
    are you ready to share your ideas on the web but too busy to create a decent layout? browse these
    template thumbnails: http://oswd.org/browse.php check out the most popular downloads:
    http://oswd.org/most_popular.phtml visually-appealing and crisp designs. /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> no long download waits either, so no problem for
    dialup users. enjoy! /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' />
    (want this pinned? pm an admin or another mod /tongue.gif' border='0' style='vertica....
  29. [help] Java Script: Window.open
    Works with Firefox, not IE (10)
    CODE <HEAD> var popUpWin=0; function popUpWindow(URLStr) {
     if(popUpWin)  {    if(!popUpWin.closed) popUpWin.close();  }
     popUpWin = open(URLStr, 'GunBound Tactics: Screenshots',
    'width=820,height=550,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=90,left=90')
    ;; } </HEAD> <BODY> <a
    href="javascript:popUpWindow('/f11/clipped.php');"><b>Clips&
    #60;/b></a> This is a script for opening a new window. It works ....
  30. Open Office Vs Microsoft
    So thinking of dumping Microsoft Office? (46)
    Have never really paid much attention to desktop suites, but built my first linux box and threw Open
    Office www.openoffice.org onto the computer and it's awsome. I don't see why all small/mid
    size companies and individuals would ever buy MS again. I'm just as happy to download a better
    office suite for free than to buy one for $200. Really getting sick of microsoft.........

    1. Looking for open, basedir, issue

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for open, basedir, issue

*MORE FROM TRAP17.COM*
Similar
Cannot Open My Site
Cpanel Down - i can't open my cPanel or connect to FTP
Open Discussion... What The-?
Linux Issue - on startup
Linux/ Apache /mod_rewrite Issue - Error when accessing a file
Open Air Fitness Or Training In The Gym? - Which one is better?
[idea] A New Open Source Racing Game - My idea for a new online racing game.
Memory Card Issue
How To Open Control Panel In Just My Regular Browser
Ftp Issue? - Solve?
Open Program Copyrights For Third World Nations - By making software free many can become employed
I Can && Cannot Acces My Website - Confusing issue.
How To Open Multiple Tabs?
Harddrive "open With..." Problem
Free Icon Sets For Open Source Projects
Flash Wmode(transparent) Pramater In Firefox3(on Linux) - Not Working - issue with flash transparancy and firefox3( on linux op. sistem)
Can't Access My Site....weird Issue
Cannot Open Display - Error
Issue With Windows Vista - Sound Card Acting Wierd [resolved] - Sound card doesnt recognize my 5.1
Overpopulation - Overpopulation a growing issue, how should we deal with it?
Ie 7 Issue With Ajax - Some ajax calls dont seem to work
Open Any Unknown File Type With Notepad - Make Notepad as default file opener
Informix To Sql Server (or How To Open .unl Files) - how to import .unl files into SQL Server 2000 without Informix softwar
Linksys Befw11s4 Wireless Router Issue - it is usual??
How To Open A .daa File
Study: Tumor Risk From Cell Phones - A real issue, or just myths
Open Php Page From Another Server - If a server does not support php
Open Source Web Design - templates for everybody
[help] Java Script: Window.open - Works with Firefox, not IE
Open Office Vs Microsoft - So thinking of dumping Microsoft Office?
advertisement



Open_basedir Issue



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
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