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.
|
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. |
thank you
thank you very much david for your answer.
|
All times are GMT -5. The time now is 08:39 AM. |