Re: PHP and Apache
| From: | Steve Edberg | Date: | Fri, 06 Sep 2002 18:58:19 +0000 |
| Subject: | Re: PHP and Apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115542@lists.php.net to get a copy of this message | ||
It's certainly _possible_ -
Your httpd.conf (I'm assuming you use Apache, of course) file is just a text file that can be read/written like anything else. Then you could do a
system('/path/to/apache/bin/apachectl restart');
to activate. Doing it this simply, thoughm means that your webserver's user (usually nobody) would have write access to the conf file and execute perms to apachectl, which could open up some bulldozer-security holes. At the very least, you want to access things through SSL.
But you might want to try Webmin:
http://www.webmin.com/
Looks very comprehensive, and I've seem a number of good recommendations for it. I've been planning on doing a little testing of it on my test server, but haven't had the time.
-steve
At 4:48 PM +0100 9/6/02, Tim Haynes wrote:
Is there any easy way of creating,editing and deleting virtual hosts using PHP via a website?? I have already thought of a way but seems a little long winded. Thanks in advance.-- +------------------------------------------------------------------------+ | Steve Edberg sbedberg@ucdavis.edu | | University of California, Davis (530)754-9127 | | Programming/Database/SysAdmin http://pgfsun.ucdavis.edu/ | +------------------------------------------------------------------------+ | The end to politics as usual: | | The Monster Raving Loony Party (http://www.omrlp.com/) | +------------------------------------------------------------------------+