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.
|
|
|
|
|
![]() |
||
open_basedir work around
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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 |
|
|
![]() |
| Tags |
| open_basedir |
| Thread Tools | |
|
|
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 |