503 Service Temporarily Unavailable

JDavies picture JDavies · Aug 14, 2014 · Viewed 13.5k times · Source

I understand this error is fairly common, but I've come to a bit of a dead end in terms of debugging the issue. I'm running windows 8.1 with WAMP. I have multiple websites running from the WAMP configuration, most of them being Drupal sites and a couple being CS-Cart sites. The one I'm having an issue with is the CS-Cart site.

I've setup my hosts/vhosts file in exactly the same way I've set up all of my existing sites. However when I go to the browser and try and view the site, I get a 'Service unavailable' message. In my console it turns out it's a '503 Service Temporarily Unavailable'. I've checked the database settings and I have an .htaccess file.

Here is an example of my hosts file config:

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/wamp/www/website-location"
    ServerName local.website.co.uk
    ErrorLog "logs/local.website.co.uk-error.log"
    CustomLog "logs/local.website.co.uk-access.log" common
</VirtualHost>

127.0.0.1     local.website.co.uk

I've checked the error logs and it's not printing anything at all. The only thing I can see are the HTTP requests in the access file. Any help would be much appreciated.

Answer

JDavies picture JDavies · Aug 14, 2014

Ok, So I managed to sort out the issue. Turns out the issue was in the Database. There is a table called 'CSCART_COMPANIES', the domain was pointing to the staging site as opposed to the local site.

Hopefully this helps others out in the future.