![]() |
|
Setting up domain via command line. - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: Setting up domain via command line. (/showthread.php?tid=3103) |
Setting up domain via command line. - margay - 09-22-2016 Hey Guys, has anyone got any advice on setting up sentora with a domain without having to login to the panel and enter it manually? RE: Setting up domain via command line. - Me.B - 09-23-2016 You can do that. But I assume the user / package created no? You need to create the domain root folder and add entries in : db entora_coretable: x_vhosts RE: Setting up domain via command line. - margay - 09-27-2016 (09-23-2016, 03:32 AM)Me.B Wrote: You can do that. But I assume the user / package created no? I tried this, but it still sends me to the login panel. I tried copying a finished httpd-vhost.conf from another installation and editing the domain, but with no luck. Any tips on getting this sorted? RE: Setting up domain via command line. - TGates - 09-27-2016 The correct answer to this is No. The panel is not designed to work using the command line. There are many DB entries that are used to create all the various config files needed to control apache, bind, etc. that are not editable by simple command line entries. You might be able to do it, but it would require a lot more commands then just 'create domain' for example. You maybe could create a script that would do all the entries and updates you need to create a domain, but you will have to figure out exactly what needs to be edited/added for it to work. Thus, much more complicated than logging in and adding a domain and creating the default DNS entries. I can see where such a script would be useful: Moving multiple domains to a Sentora server from another server. Although, you still would need to login and create databases and database users if the sites require them. Creating such a script is beyond the support of these forums unless there is somebody else out there that would like to help work on such a complex project. Good luck! |