1) read apache and named docs so you know what changes
        need to be made, and where to make them
2) update 'httpd.conf' and the domain's 'zone' file
3) restart both 'named' and 'apache'
4) copy an 'index.php' into the subdomain's newly created directory.

there are probably better ways to do it, but that's
how i add subdomains to my machine when i do it
manually... it's a start 

> -----Original Message-----
> From: E K L [mailto:[EMAIL PROTECTED]]
> Subject: [PHP] Creating domain and default page
> 
> 
> Hi all,
> 
>    Can anybody give me a guideline or idea on how to write a PHP scriot 
> which is used to create a domain or sub-domain and a default page and a same 
> time. My OS is Red Hat Linux 6.1.
> 
>    For example, in my program, when i press "activate' button, the script 
> will create me a sub-domain try.php.com and a default page index.php is 
> created for that sub-domain. Thanks for advice......
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to