Open_basedir and subdirectories problem

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
eugene2008
Forum Newbie
Posts: 21
Joined: Sat Jul 01, 2006 3:07 pm

Open_basedir and subdirectories problem

Post by eugene2008 »

Weirdan | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Open_basedir and subdirectories problem
Hi for now I have this httpd-vhosts.conf
[syntax="apache"]
php_admin_value open_basedir "C:/aweb/freehosting/users/"

<VirtualHost *:80> 
# ServerName pcsny.org
 ServerName pcsny

 ServerAlias *.pcsny.org
 ServerAlias *.massmba.org

VirtualDocumentRoot "C:/aweb/freehosting/users/%1" 
php_admin_value open_basedir "C:/aweb/freehosting/users/"
php_admin_value safe_mode 1

<Directory "C:/aweb/freehosting/users/"> 
  Options Indexes Includes FollowSymLinks 
  AllowOverride none
  Order allow,deny 
  Allow from all 
</Directory> 
</VirtualHost>
Script makes under the subdirectory
C:/aweb/freehosting/users/
New folders (they are login name of a new user)
e.g[/syntax]

Code: Select all

C:/aweb/freehosting/users/newuser1/
C:/aweb/freehosting/users/seconduser2/
C:/aweb/freehosting/users/mywebhosting/
To access to their web pages users have to type subdomains like this

Code: Select all

http://Newuser1.massmba.org/
http://seconduser2.massmba.org/
http://mywebhosting.pcsny.org/
how to force users stay in their folders and not to be able to affect other users with malicious code like
r57shell or remview Weirdan| Links were removed


if only I could do something like this

Code: Select all

php_admin_value open_basedir "C:/aweb/freehosting/users/%1"
get subdomain entered in browser then fix top folder accessible for this user….
Help?

PS. I am on windows 2003, XAMPP


Weirdan | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Post Reply