Web Hosting Talk







View Full Version : Way to add subdomains via ssh? or some other way from a PHP script?


PHPGOD
08-26-2003, 12:53 PM
Hello,

I am wondering if there are any ways to remotely add subdomains via a PHP script. I need a response ASAP.

Thank you!

genlee
08-26-2003, 12:57 PM
yes

PHPGOD
08-26-2003, 01:04 PM
Originally posted by genlee
yes

would you care to explain how?

genlee
08-26-2003, 01:46 PM
Write a page in php that has access to edit the zone files and access to run rndc to reload the zone file. You could have apache run on an abnormal port and create a login/pass for the site.

PHPGOD
08-26-2003, 01:47 PM
Much thanks.