Can´t access subdomain, after creating it in cPanel with PHP

I have a website where the user create his own site, and for that i need to create a subdomain. My server has cPanel, so I´m creating the subdomain in cPanel using PHP code. The problem is that the subdomain is created correctly and the folder in the server too, but when i try to access it the server is not found. The subdomain doesn´t create in the DNS file zone by this way.

I haven´t got the problem if I create the subdomain manually with the cPanel interface. In this case i can access to the subdomain. My hosting is Godaddy.

Staff Member

I recommend contacting your web hosting provider for assistance with this issue. It's possible they have custom security features in-place that prevent the successful creation of the subdomain through the cPanel API. Or, there could be a specific error message in the cPanel error log that they can investigate.