I recently bought a server so I can host some unpopular freeware game servers for a community im involved in and I am giving some people their own accounts to run their servers from.
The server I have comes with Direct Admin as a control panel.. and it has apache 1.3.33
(installed and working fine) with suexec
(as far as i know). Inside Direct Admin there is an area that lets me edit the virtual hosts...
What I have done is coded a new area in the control panel using php that lets them manage their servers. I have given them links to start/stop their servers. But the problem is, when they click them it wont send them to the new page that is located within their personal directories.
And I have finally figured out that I need to do this virtual host thing
in order to do that.. but I am completely oblivious as to how. I have read the documentation on Apache and LinuxPlanet but I just dont get it
So while they are logged into the control panel, the address looks like this
(I put a space in the post here so it doesnt turn into a link):
When they click the link:
<a href="/home/testuser/testserver/start.php">start server</a>
It brings them to:
and says page not found.
- it exists, and has ugo=rwx for now.
(right now all that start.php does is just echo saying its there until i know it works)
So what do I have to do to get this to work properly?
when I get it working, the start.php file it opens will have a:
type deal in it...and then the start.sh will take it from there.
I dont even know if thats correct but I havent been able to get that far yet
Is this the right approach or should I be using cgi or what?
Its all confusing...It would be nice if the actions of start.sh would echo back to the page they are using to browse but I dont know if it will since the php is telling it to open independently (i think) and the browser isnt the terminal so..
but yeah my main issue though is this virtual host thing.. how do I set it up so that the person in the control panel can execute stuff in their home directories?
Thank you for your help I appreciate it.