Carson
Mar 9 2008, 12:54 AM
| | 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
Mar 9 2008, 01:23 AM
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
Mar 9 2008, 03:16 AM
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
Mar 9 2008, 03:27 AM
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
Mar 9 2008, 04:54 AM
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
Mar 9 2008, 06:20 AM
I don't know Joomla well enough to be able to answer that.
Reply
Carson
Mar 9 2008, 07:43 AM
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
Recent Queries:--
open_basedir issue - 27.59 hr back. (1)
-
bpforumconfig.php - 142.62 hr back. (1)
Similar Topics
Keywords : open, basedir, issue
- I Can && Cannot Acces My Website
Confusing issue. (4)
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....
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....
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?....
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 ....
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....
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....
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.....
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....
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. ....
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....
Looking for open, basedir, issue
|
|
Searching Video's for open, basedir, issue
|
advertisement
|
|