samerton / NamelessMC

A complete Minecraft-related PHP website package. Please note this is an old repository, a link to the new repo is in the readme
https://github.com/NamelessMC/Nameless
MIT License
39 stars 17 forks source link

SQL connection error on shared hosting + Fix #88

Closed Sandtato closed 7 years ago

Sandtato commented 7 years ago

Hi everyone, recently my entire server network went down due to a CloudFlare issue. With the SQL link being affected, the website went down with it. Working together with my web host support, we discovered this fix, which involves a different SQL link, which usually can be requested from your web hoster if needed. The new link they will give you will usually be directed right to their web server, and not through CloudFlare, or other proxies.

The fix can be done by doing the following:

  1. Access your FTP, and go to [website install directory]/core, and find config.php.
  2. Open config.php and find the MySQL host.
  3. Replace the current link/IP with the one you should have received from your web hosting support.
  4. Save and replace the file, if necessary.

It may take a minute, but your website should come back online. I hope this helps others with the same issue, and are on hosting plan.