Web Hosting Talk







View Full Version : Co-operate ?


Omair Haroon
10-06-2001, 05:24 PM
Hello,

I have started working on a script which would add entries to httpd.conf file.

I have only onething to ask.. Is it possible to edit httpd.conf through php ??

If yes! then how ?? I know I would need root access to do so, but I can't get how to edit it..


If I got the solution, would any body be out there to let me work on their server as this is purely root access needed script so I won't try it on my own server. If any dedicated server provider company want to help me, please post.

Actually, the script would add entries to the httpd.conf for multiple domain and subdomains. All you need is:

For Sub - Domain:
Enter the subdomain required, IP Address and the directory it should point to.

For Multiple - Domains:
It would ask for domain name, IP Address and the directory it should point to..

This way this would not only possible for us to have unlimited subdomains but also allow us to provide our customers with unlimited subdomains as well as multiple domain hosting without any hesitation..


Any help is highly appreciated.


- Omair

slade
10-06-2001, 11:31 PM
Hmm... I don't see it likely that anyone will be willing to just give you root access to one of their servers.

Not willing to test it on your own systems? Scary...

How about setting up Linux or FreeBSD on a old pc somewhere and doing your testing there. At least then you can crash the machine or reboot it without any problems.

Michael
10-07-2001, 01:47 AM
I may be wrong but I think any script you put in
/usr/admserv/cgi-bin/.cobalt and access via the GUI(port 80) will run as root which would allow you to edit the httpd.conf file.

Regards
Mike