Is there a programmatic way to create, reliable addon domains for my site on Linux-based shared hosting which is administered with cpanel. Also I know my cpanel login information and/or FTP information. I would appreciate in PHP and cpanel for this issue.
Need to Create Addon Domains Programmatically on Shared Hosting Plans
Collapse
X
-
Hello,
It depends on whether your DNS server is being hosted somewhere you control, and whether there's an API to modify the DNS entries. I'm not a cPanel user, but I'm going to lean toward "no."
It's insignificant writing code to add more entries to your DNS records and put out new sites in an environment where you control the DNS serving system. There can also be an issue of security. But I doubt you have that ability through cPanel.
What I feel is to use catchall domains that have a default site entry in your Apache configuration files. Then programmatically determine what site should run from there. Again, I would not recommend even looking at it as there are many negatives to this approach.
Comment