RE: [PHP] Creating domain and default page

2001-07-02 Thread scott [gts]

i dont mean any offense at this, but if you dont even 
know how to give an unprivileged script 'root' privileges,
you probably shouldnt be doing it ;)  you can inadvertently
make your system extremely vulnerable.

but if you're intent, read up on SUID scripts and
wrapper programs that give your scripts some more privileges.

this is a brief expalanation of how to write a C wrapper
program and give it SUID permissions (it's really easy)
http://www.infoboard.com/infoboard/kbase/98-2-25-14745.htm



 -Original Message-
 From: E K L [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 29, 2001 11:26 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [PHP] Creating domain and default page
 
 
 It's understood that when creating new domain, the user has to be root. But, 
 the problem is the user of script is nobody when program is running if i'm 
 not mistaken. So, how to solve this kind of permission stuff?
 
 
 From: scott [gts] [EMAIL PROTECTED]
 To: php [EMAIL PROTECTED]
 Subject: RE: [PHP] Creating domain and default page
 Date: Thu, 28 Jun 2001 16:19:29 -0400
 
 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]
 
 
 _
 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]




RE: [PHP] Creating domain and default page

2001-06-30 Thread E K L

It's understood that when creating new domain, the user has to be root. But, 
the problem is the user of script is nobody when program is running if i'm 
not mistaken. So, how to solve this kind of permission stuff?


From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Subject: RE: [PHP] Creating domain and default page
Date: Thu, 28 Jun 2001 16:19:29 -0400

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]


_
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]




RE: [PHP] Creating domain and default page

2001-06-29 Thread scott [gts]

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]