LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Adding virtual host (https://www.linuxquestions.org/questions/linux-networking-3/adding-virtual-host-367913/)

bestofmed 09-28-2005 03:27 PM

Adding virtual host
 
How can I add/edit Apache VirtualHost from PHP , of course including registring new subdomain or editing it. I m sure that it's possible but I don't know exactly how to do it in PHP. I tried to edit the apache confi file directly (demand much parsing) and changing the zone file of the dns (parsing too). Please help me with the best method you know please.

david_ross 09-28-2005 03:54 PM

You would need to write the php script to edit the files and just make sure that the user the script is running as has read and write access to the config file(s).

This will likely reduce your security quite a bit though.

bestofmed 09-28-2005 04:01 PM

thank you
 
thank you very much david for your answer.


All times are GMT -5. The time now is 08:39 AM.