open_basedir work around

This is a discussion on "open_basedir work around" within the PHP Forum section. This forum, and the thread "open_basedir work around are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 3rd, 2007, 12:58
Up'n'Coming Member
Join Date: Jan 2006
Location: East Sussex
Age: 26
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
open_basedir work around

Hello people,

I need to put some files outside the webroot of my site, namely the database conection file and a few others. The problem is that i cant put anything outside the webroot because of the open_basedir restriction. A work around i have heard of is to move the document root up one level with an .htaccess file and place all files that need securing in the old document root, and pubic files in new root. Bit confusing so below is how it looks

CURRENTLY
/var/vhosts/mysite/httpdocs/

httpdocs is webroot

SUGGESTION

/var/vhosts/mysite/httpdocs/root/

root is now webroot, httpdocs is where i place secure files

Does anyone know if this will work, how to do it and if it really is secure, OR any other better ideas?!

Thanks
Reply With Quote

Reply

Tags
open_basedir

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript menu - does not work on title page, but does work on other pages Crystal Phoenix Starting Out 4 Mar 24th, 2008 19:40
open_basedir restriction in effect error in PHP BenR41 PHP Forum 0 Feb 25th, 2008 12:20
simple js doesn't work with IE7 (work with FF1.5) gpazi JavaScript Forum 1 Jun 10th, 2007 11:00
Do you like where you work bigtester Webforumz Cafe 35 Jun 9th, 2007 03:24


All times are GMT. The time now is 11:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43