Open_basedir and subdirectories problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Open_basedir and subdirectories problem

Postby eugene2006 » 18. September 2006 19:08

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
ServerName pcsny

ServerAlias *
ServerAlias *

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

Script makes under the subdirectory
New folders (they are login name of a new user)

To access to their web pages users have to type subdomains like this

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 | | | version 1.24
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….
PS. I am on windows 2003, XAMPP
Posts: 8
Joined: 11. September 2006 11:52

Postby Wiedmann » 18. September 2006 19:36

"php_admin_value" does not work with the substitutions (e.g. %1)from "VirtualDocumentRoot".

a) make different normal vhosts and "php_admin_value" for each vhost and user
b) use mod_macro (I don't know if this is availible for Apache/Win)

and of course:
c) multiuser webhosting on Windows should better be done with IIS.
AF Moderator
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 30 guests