Jump to content

Recommended Posts

Open_basedir and subdirectories problem
Hi for now I have this httpd-vhosts.conf
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
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

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 - http-shell by RST/GHC |
http://rst.void.ru | http://ghc.ru | version 1.24
or http://php.spb.ru/remview/
if only I could do something like this
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


Link to comment
https://forums.phpfreaks.com/topic/21171-open_basedir-and-subdirectories-problem/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.