Sub Domain not opening getting 500 Internal Server Error

Posted February 2, 2019 6.1k views

My primary domain is
I tried adding a sub domain using cPanel but it’s not opening and shows this message
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

While another sub domain was created successfully and in working fine
I tried restarting server.
Nameserver are ok

How to solve this issue?

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


Indeed as Mohsen said you need to first check your Apache/Nginx error logs. The default location of the Apache error logs on CentOS is:


What you could do is grep for your domain name in the error log:

grep /var/log/httpd/error_log

That way you would get all of the entries from the error log for this particular subdomain name.

Hope that this helps!