Subsites and SS 2.4 - 500 error

I've successfully installed and set up the Subsites module, and I have added a subdomain via my hosting (using cPanel X). The document root is /public_html/subdomain and I have left it "not directed".

However, trying to access www.subdomain.domain.com brings up a 500 Internal Error. If I change the subdomain direction to www.domain.com/subdomain (which is the path to the subdomain), Silverstripe doesn't recognise it as being a subdomain and thinks it's trying to open a page.

Am I correct in thinking that I need to set up the subdomain with the hosting cPanel, or does this need to be done a different way?

Hi Bones!
I've temporarily given up on the subsites module (am/was using SS2.4 with latest trunk of subsites), but if you add an htaccess file with just "RewriteEngine off" to the subdirectory created by cPanel you should be able to access the subdomain url.

I can't say whether you need to set up a subdomain with your host to make the subsites module work. (maybe that was part of my problem...) In my case I have two domains with email hosted as subdomains of my main site so I have to have the subdomains set up in cPanel... I tried it both ways in the subsites module and neither worked. (both 500 errors) I eventually gave up and just left the main site to be managed through SS and the subsites to be loaded directly to their respective directories on the server.

Bones,
A 404 error is a move in the right direction. (Okay, that's just my opinion, but at least the domain is being recognized by the server.) I can't tell from your original post whether you are trying to access the subsite via the subsites module, or if you are just opening a browser and typing in the url. If you are trying to reach it through the browser you will need to add an index.htm page to your subdomain's directory in order to clear the page not found error. A basic "hello world" is sufficient to let you know that the subdomain is set up and working.

Now that I've thought about it, I'm wondering if you might need to add an index.php page to the subsite directory. It seems like one is included with the SS package when you set up the main site. I guess I thought that the index page for the subsite would be created within the subsites module, but maybe it isn't. Maybe that is where I went wrong. I know that you need the htaccess file with "RewriteEngine Off" to get the subdomain to be recognized or work on the server, but it hadn't occurred to me that I would need to add anything else. I've already uninstalled the module, but maybe you could give it a try to see if it works.

Now that I've thought about it, I'm wondering if you might need to add an index.php page to the subsite directory

No you shouldn't need to. All requests - from either the main site or any subsites should point the the same installation of SilverStripe.

If you get a 500 internal error look at your error logs for the actual error message. You should be able to use subdomain.domain.com if its set to the same folder as domain.com. Sorry I can't provide any more information for cPanel. I've only ever deployed Subsites to VPS's or dedicated machines so you can mess directly with the virtualhost file.