Moodledata is not supposed to be in the public_html folder due to security reasons
AdminCloudways (Admin, Cloudways) commented
We offer now a private_html folder one level above public_html where you can deploy configuration and other sensitive files. Please go over:
Note that this is only valid for newly deployed applications. For already deployed applications, contact support so we can create the necessary structure for you.