1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Moved forum to another host - getting 500 errors

Discussion in 'Installation, Upgrade, and Import Support' started by redwolf6, Dec 28, 2014.

  1. redwolf6

    redwolf6 Member


    My current host is so slow, using Apache, so I decided to make the switch to another provider which has SSD + litespeed. I moved the files and imported the database and changed the config file.

    But not so sure about this:
    $config['db']['port'] = '3306';

    Anyway. I have this problem - 500 error.

    If .htaccess is disable (renamed to .htacess-new) I have this error:


    if .htaccess is enabled I have this error:


    What do I do? I'm lost.

    Thanks a lot!
  2. Liam W

    Liam W Well-Known Member

    Check the apache/light speed error log to find the issue :)

    redwolf6 likes this.
  3. redwolf6

    redwolf6 Member

    I cannot access the logs. It says permission denied.

    I asked my host but I'm paying very less for this service, so hopefully they won't kick me out of support ;)
  4. Tracy Perry

    Tracy Perry Well-Known Member

    First.. find a host who isn't lying to you. By those screenshots you are NOT on a litespeed HTTP server. You are on an Apache 2.4.1 server with some modules compiled in to limit bandwidth (almost looks like a cPanel config of Apache).
    In fact, that is a cPanel setup.
    Screen Shot 2014-12-29 at 5.59.46 AM.png

    Are you sure that the DNS is updated and that you are hitting the right server IP?
  5. redwolf6

    redwolf6 Member


    I told them this, but they sent me this pic and told me to judge by myself.

    They're looking now into this problem and see how they can make it work.
  6. Tracy Perry

    Tracy Perry Well-Known Member

    The IP you have in your image link goes to an Apache server. Are you sure you are hitting the right server?
    What is the domain.. and what is the IP of the server you are supposed to be using (you can send it in a convo with me if you want and I can check into it).

    If you are addressing it by the IP that you had, you will continue to hit your old site. You need to use the new HOST provided IP or domain.
  7. redwolf6

    redwolf6 Member

    Actually this is the node IP. They gave me my dedicated IP and it says the following "An unexpected error has occurred to the database. Please try again later."

    I double checked the config.php file information and everything seem OK!
  8. Mike

    Mike XenForo Developer Staff Member

    You can view the source of the page to see the specific DB error message.
    redwolf6 likes this.
  9. redwolf6

    redwolf6 Member

    Oh thanks.

    it gave me this:

    <!-- Mysqli prepare error: Table 'unaracom_bb.xf_template_compiled' doesn't exist -->
  10. Tracy Perry

    Tracy Perry Well-Known Member

    Reimport your DB. If it still occurs, your export of your old DB from your old site may be corrupted.
    redwolf6 likes this.
  11. Brogan

    Brogan XenForo Moderator Staff Member

    That sounds like the migration was not entirely successful.

    How was the database moved from the old host to the new host?
  12. redwolf6

    redwolf6 Member

    OK thanks everyone.

    I exported using .gz and now imported the database and everything is working!

    Thanks a lot everyone :D
    Tracy Perry likes this.

Share This Page