LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-03-2006, 11:26 AM   #1
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Rep: Reputation: 15
open_basedir


Code:
Warning: main(): open_basedir restriction in effect.
File(/var/www/DIR/DIR/htdocs/DIR/allowed/allowed_webapp.php) is not within the allowed path(s):
(/var/www/DIR/DIR/htdocs/DIR/DIR/:/usr/share/php/:/tmp/) 
in /var/www/DIR/DIR/htdocs/DIR/DIR/htdocs/index.php on line 2
This is the error i get when i try to view this page. How can i fix this? i have looked in /etc/php4/apache/php.ini and open_basedir already has ; in front of it..ahh lol

Last edited by ballistic509; 05-03-2006 at 11:27 AM.
 
Old 05-03-2006, 06:46 PM   #2
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Original Poster
Rep: Reputation: 15
anyone? lol
 
Old 08-17-2006, 01:30 PM   #3
ylikone
Member
 
Registered: Dec 2004
Location: Ontario, Canada
Distribution: ArchLinux, VectorLinux, Ubuntu, Debian, Linspire
Posts: 66

Rep: Reputation: 15
If you happen to be using a plesk system...

Put the following into /home/httpd/vhosts/domain.com/conf/vhost.conf and /home/httpd/vhosts/domain.com/conf/vhost_ssl.conf

<Directory /home/httpd/vhosts/domain.com/httpsdocs>
php_admin_flag engine on
php_admin_value open_basedir /home/httpd/vhosts/:/var/www/:/tmp
</Directory>

Then run:
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
service httpd restart

and domain.com (obviously replace this with whatever domain you need to give access to) now can reach into any other domains directories.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
open_basedir - how do I provide limited access to other directories? benbroad Linux - Software 4 12-08-2004 06:07 AM
How do i fix this open_basedir restriction in effect. File is in wrong directory DropHit Linux - Software 2 02-26-2004 06:28 PM
Plesk open_basedir problem!! RKris Linux - Software 0 12-04-2003 06:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration