SuExec and VirtualHosts

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

SuExec and VirtualHosts

Postby chrille156 » 18. October 2010 11:37

Hi there.

My goal is to set up a virtualhost for a user and that he doesnt have read-access outside his home-dir when using PHP.

It looks lika suexec is enabled in apache already so I did the following:

1. Created a user called "test".

2. Made it impossible for him to read something outside his home dir in /etc/passwd (with /bin/rbash)

3. Added the following to etc/extra/httpd-vhosts.conf:

<VirtualHost *:80>
SuexecUserGroup test test
DocumentRoot /home/test

4. Reloaded: /opt/lampp/lampp reloadapache

He can still se everything on the server. Why?

Thank you in advance!
Posts: 3
Joined: 18. October 2010 11:30

Re: SuExec and VirtualHosts

Postby lukasamd » 11. November 2010 10:37

I have the same problem - i have 3 domains and would like to execute as other users:
domain1 -> user1
domain2 -> user1
domina3 -> user2

I added SuexecUserGroup line in vhosts and it doesn't work...
User avatar
Posts: 4
Joined: 29. October 2010 17:39

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests