This could be difficult or not even possible...  first you would need to 
add entries to the DNS zone file (and update the serial number) and then 
reload the DNS database, and this is only if you run your own DNS and not 
have your provider do it for you, like many of us do.

Then you would have to update the /etc/httpd/conf/httpd.conf file with the 
correct info for the sub-domain and then restart apache

And if you intend to have the new user upload content for the new 
sub-domain you would need to add a user and set a password, and as I 
stated in a previous message running passwd from php isn't possible as it 
requires you to enter a password, you can't supply one on the command 
line, and it needs to run as root to change the password of another user.

Julia

Quoting Man He ([EMAIL PROTECTED]):
> 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]

-- 
[  Julia Anne Case  ] [        Ships are safe inside the harbor,       ]
[Programmer at large] [      but is that what ships are really for.    ]  
[   Admining Linux  ] [           To thine own self be true.           ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
          

PGP signature

Reply via email to