Xtream Codes IPTV Panel 2.4.2 Review – Part 4: Tutorial to Change the Main Server, Backup & Restore the Database

This is the fourth part of a review about Xtream Codes IPTV Panel, software to become your own content provider, and manage streams, clients, and resellers. The first three parts:

  1. Review of Xtream-Codes IPTV Panel Professional Edition – Part 1: Introduction, Initial Setup, Adding Streams…
  2. Xtream Codes IPTV Panel Review – Part 2: Movie Data Editing, Security, Resellers, Users and Pricing Management
  3. Xtream-Codes IPTV Panel Review – Part 3: Updates and New Features for Version 2.4.2

Main Server Change – Part 1: New Server

Changing your Main Server could bring you troubles, if you do not know what you are doing. Many different reasons to change the Main server such as  crashes, new one. making a Load Balancer to be a Main Server…

Remember, it’s all about the existing backup, and you’ll restore your backup later, after successfully changing the Main Server. That is not difficult and everybody can do it. But if you install your backup with your former configurations-Servers etc, it will need some corrections after the backup install is finish, and for example all your Clients, Servers ( and your Old Main Server) will be in again after you install your backup.

I’ll try to explain what that’s all about and show different examples.

  1. Changing the Main Server sounds and looks pretty easy, piece of cake, right?

But let me tell you, it’s not! Be absolutely sure about what you are doing before. We start with “Manage Server” left side in the Panel.

Then you scroll down to the end and you’ll see this:

Click to Enlarge

Warning: Make sure that you took all necessary steps before you press this button, all will be gone in a flash… BEFORE YOU Press MAIN SERVER CHANGE

Step 1: Do a Manuel Backup; this is still possible, since Xtream-Codes thought it would be a good idea to take the manually install Backup-Button off the road, for later installing your FULL BACKUP again by yourself!. NOT A GOOD IDEA, Xtream-Codes!

Step 2: Do a fresh automated backup on Xtream-Servers.

  • Database Manager—Remote Backup Now

Step 3: Take your time to think about your scenario! What do you want to do? Changing to a brand new Main? Formatted the old one only? Making an Existing Load balancer Main now? You see? Different procedures. It needs different preparing on this step of the game.

You have to think about the existing BACKUP, with all your clients and streams in, right? Or you want to loose them? I guess not. Again, think about, that the backup and later installing of your backup contains all your streams, clients etc…but also the old Server configurations.

Have also your ROOT ACCESS from the Panel at hand, because after pressing the CHANGE-Main Button…it happened a few times, that I could not login anymore in the CMS without root user/pass. You can find this Root USER/PASS in your Client Area WHMCS with Xtream-Codes,


Press this then after:

And you see all what you need after:

We now change the Main to a NEW ONE:

After pressing the Button

Click to Enlarge

A warning pops up, asking, “Are you Sure”?

Click to Enlarge

We press OK! Seat belt on, and then this should come (In former versions I was simply getting kicked out the CMS, and have to login with Root user/pass only, Admins could not. This seemed to be fixed to a friendlier follow up now…)

Click to Enlarge

Now you put your NEW MAIN’s IP and SSH ROOT Password in, also your MYSQL ROOT Password, if any. If you are not sure, then in most cases simply put your ROOT SSH in again. Also, check the SSH Port, standard is Port 22, except if you changed it before. Don’t care about the rest now; you can change it later easily. Your New MAIN SERVER will install now, if all necessary data’s was right. And after a couple of Minutes, your New Main is installed

Click to Enlarge

After Installation of your NEW Main is finished, you want to restore the backup. Like I said, Xtream-Codes gives you right now (Sure that they will bring it up again) only the choice to install a Remote Backup from Xtream Codes Servers. To do this, you do as follows: Go DATABANK Manager and you see all your Remote Backups

Click to Enlarge

Right click the curved red and green arrow (load Backup), and after you choose your Remote Backup, this shows up:

Click to Enlarge

Press OK, and you see that Databank with all your Values is restored.

NEXT STEP, like I mentioned already above: after your Backup is installed, you will see, that your former OLD MAIN SERVER seems to be installed again! YOU HAVE TO GO ‘EDIT-SERVER…EDIT MAIN… and CORRECT IP AND SSH! This will do it then!.

And after successful installing the new Main (if he is a brand new one) , and installing the Backup then after, you Main will show the former IP of your Main, cause he was still in the installed backup in!

No problem at all, simply go edit Main-Server, insert again IP and SSH Root Password, and right SSH port, commonly Port 22, if you don’t changed it in your New Main.

Click to Enlarge

It also appears that your Load Balancers need a FULL REMAKE



It is possible, that you have to have to repeat this action with remaking all Load balancers. But be assured, it will work.

This was Part 1 of CHANGING the MAIN SERVER. I guess you know, what follows later, the little bit more complicated procedure of Changing The Main under different scenarios:

  1. We make an existing Load balancer to a NEW MAIN
  2. The preparation to do this

Changing Main Server – Part 2: Convert Load Balancer to Main Server

Scenario: We want a running Load balancer as a new Main Server! The right now “running” Main we want to send in retirement, right? This example requires that you have a few Load Balancers up and running. In case you have only 2 dervers in total, it’s not so complicated at all. Like I said above, each scenario is different. There are Admins with 20 or more Load balancers, and there are small ones, with 2 or 3 in total.

Do exactly Step by Step as follows, no twisting, no turning, no upside down please.. 🙂

Step 1: You go to TOOLS left Side, and transfer temporarily all streams from the future Main Server to another Load balancer of your choice! That’s how I have done it, not sure it will work later if you go another way, letting the streams on the future Main (the Server is a LB right now), but we have to delete this Server later out of the Panel configuration to make him Main! Reason: After we push the Remote-Backup back in, he will appear as a Load balancer again, and we can’t make him a Main Server without deleting him in the Panel.

Go exactly this way right from the start! NO REMOTE BACKUP BEFORE!! (Still hope that Xtream-Codes will implement the old feature back in soon, because not many can handle phpmyadmin, to implement a databank backup by their own later, or they should put a “hint or kind of warning” in before, something like Remote Backup now? Just in case the Admin forget it! Remember also, that the cron job “Remote Backup” is only once each 24 hours, so better do this manually Remote Backup before.)

Click to Enlarge

In general, a good idea in safety reason, the Remote Backup’s, it is a way more safe then before. Here we go now:

Click to Enlarge

After you’ve transferred your Main Server’s streams to another server, check first, the Main is really empty, it will need sometimes 1 or 2 or more minutes, depending of the quantity of your transferred streams. Now we have an empty Main, it’s the one, we do not need anymore after.

We have also to transfer the streams from the Load balancer we want as a NEW MAIN, making him completely empty. No streams on it. We do the same with the Load balancer we want as Main now! We are transferring his streams to another Load balancer the same way we have done before with the Main who has to go.

Step 2:

We do a REMOTE BACKUP after we transferred all streams, and to be on the safe side, a manual Backup to your Computer as well. First you press BACKUP DATABASE (the Backup File will load down to your computer), and direct after, we press REMOTE BACKUP NOW (Backup is loaded into Xtream Codes Server).

Click to Enlarge

Step 3:

We go MANAGE SERVER and at the bottom we see Main-Server-Change again:

Click to Enlarge

Let’s summarize what we have done.

  1. We have the Main and the future MAIN now with no Streams on it
  2. We are still in the process to change our Main Server
  3. Backups are already made (we are with an empty Main Server and an empty Load balancer right now)
  4. We have all our necessary data’s, IP and SSH Root Pass from the Load Balancer we want to put as a New Main. Login data’s ROOT for our CMS, just in case…


We delete the Load balancer we want as NEW MAIN. Now we can press the Button Main Server Change.

Click to Enlarge

All necessary follow up’s standing already in Part 1 above!

We are ready to go!

  • Just in case you forgot or out of whatever reason you prefer to do a manually “load” of your saved databank backup, it’s also possible with phpmyadmin later.
  • In case you cannot do, open a ticket, XC is happy to help you out!
  • Don’t forget, Xtream-Codes support is not open 24/7!
  • And one of the most important last steps, after successfully installed the new Main, don’t forget to switch the old former MAIN OFF!
  • Switch him off, or make a new install! and sure you have to sort out your streams later, balancing them again.
  • In all other cases, like you have only 2 Servers, the procedure is similar and not complicated, cause of your limited streams, and clients. This example was written in case you got a few more Load Balancers running.
  • Don’t hesitate to open a ticket in case you are in trouble, Xtream Codes will help you in any cases.

I hope this little How-To helps you guys a little.


Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard

28 Replies to “Xtream Codes IPTV Panel 2.4.2 Review – Part 4: Tutorial to Change the Main Server, Backup & Restore the Database”

  1. @ramzi

    Hi, to see the functionality of the Xtream-Codes Panel, you need to have a VPS or a Dedicated Server(s) installed.
    Access to my own Panel isn’t possible, cause i am still in intensive tests in, because of the upcoming update to v.2.5,
    what should bring another boost in different sections.

    I recommend that you buy on monthly base the Panel, it’s not expensive and you do not need to renew after 1 Month, just in case you do not like it. But by my opinion, you will like it, Ramzi..

  2. All subscribers here on cnx-software can contact me for a one time discount on the first month, if they want to test the software.
    Thanks to Xtream-Codes to make this possible.
    (Subscribers to cnx-software only please!)

    1. I need help, I erased an account by error, how can I recover that account that was good until March 30 2020, please help?

      1. Hi Alessandra, 2 possibilities: 1. In your Dashboard on the left, you press “Line Activity Log” and there you will see the erased User *Name and Pass* and you just create a new one by this credentials! 2. choice: In your Dashboard left side again, “Database Manager”, choose a date BEFORE you deleted the User, and press the 2 curved arrows under Options, to load the specific Database. My own choice would be, to just create a new Line for the deleted User and send him.

        1. Thanks for yourr answer! I want to restore this account because I spent like 15 credits in it and was good ujtil march 30 2020. If I create a new one with the same login and password it will recover the exxpiration date it had in the start?

          1. @Alessandra! First of all, your questions are confusing somehow. With your kind of questions i think that you have a Reseller Panel only which is limited, and not a Admin Panel. If i’m right, you have to ask your Admin of your Panel to do the work!

          2. You are right! But the admin is only telling me that once the account is delete nothing else can be done, and I don’t believe it, I think he is telling me that so I have to pay again all the credits 🙁 to get the year account I have

          3. I can tell you, that your “Admin” is wrong, sure he could recover the credentials from your deleted line, in minor cases they simply don’t know how..but only a few do not know. If the Admin denies to help, not much you can do about it, except changing your Admin.. 🙂

          1. Hi, that’s impossible, if you have a Admin Panel. Please open a Support Ticket with Xtream-Codes. They will solve your little problem. Many reasons, in case you are a Reseller only, like not enough credits anymore, or your Reseller maximum of 10 Trials a day is reached, or less, depends of your Admin settings…

  3. Great work Ray, really informative reviews. Learned more about xtreme codes from your reviews than from their own descriptions, thanks.

  4. Hello victor! VPS? I wouldn’t recommend that, using a VPS…go for a dedicated Server, minimum 16GB Ram (8 will do..for starting only..) and enough Bandwidth. ( minimum 500mbps each in/out)
    All depends what you are trying to do! But in general i must say, VPS Servers are not much of use, and not regarding the shared bandwidth only..many reasons!

  5. hi i have xtream code panel the latest vertion,,,can you explainme how to add a m3u list……..when i go to add a new stream…i select multiple channels….then uolpoad the m3u file…..but which fields must be filled…… and what is the next step do i have to do….can you help me abaut it

    1. @jesus, i think, you should read all parts from the beginning, somehow i have a problem, to follow you. nothing is more easy then to add a single stream, or “multiple streams” out of a m3u list. —Add new Stream..if a list, then choose multiple streams…but you should know what and where the streams coming from. Attention also regarding the legality…the source should allow to restream also… http://i63.tinypic.com/2hqrsqh.png


        1. @Jesus!
          Please delete your Servers Main Adress at once! And: Xtream-Codes does not have any contents or channels. And you for sure do not create a category and a bouquet, or you do not associate them or even you content is not in the required parameters. You can be sure that the Panel is working very well and the support will tell you what you do wrong.

  6. Ray my Admin says he can recover my credentials but not with the credits I spent on the list that was good through a year, I spent 15 credits on. I dont know what to do its a lot of money

  7. Hello Ray
    What is your email? Can I ask you couple of questions about the recent new version of xtream?

    1. Hi Kevin, right now XC is on v2.9.3
      And here the good news: XC will release very soon the amazing allnew V3 with tons of new features, like GPU encoding and a lot more.
      As soon the release of V3 is published, i will write a Review of this upcoming Version 3

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC