RE: [PHP] Creating domain and default page

From: Date: Mon, 02 Jul 2001 15:45:05 +0000
Subject: RE: [PHP] Creating domain and default page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55854@lists.php.net to get a copy of this message
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:phpnewuser@hotmail.com] > Sent: Friday, June 29, 2001 11:26 PM > To: scott@graphictype.com; php-general@lists.php.net > 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]" <scott@graphictype.com> > >To: "php" <php-general@lists.php.net> > >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:phpnewuser@hotmail.com] > > > 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: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > >For additional commands, e-mail: php-general-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.com. >

« previous php.general (#55854) next »