We have 2 options to install Load balancers at the moment.
- Make auto installation fixed
- Directly install LB manually
It’s always recommended to backup things first like config file and databases etc.
Buy DMCA Free 1Gbps To 10Gbps Dedicated Servers And Proxies
Xtream UI LB Setup Video Tutorial
Fix Xtream UI Auto LB installation On Main Server:
To make auto installation of loadbalancer working fine, you must run following command on MAIN SERVER before adding a new LB.
sed -i 's/xtream-ui.com/lofertech.com/g' /home/xtreamcodes/iptv_xtream_codes/pytools/balancer.py ; /etc/init.d/xtreamcodes
After this, go for Load Balancer Installation from navigation menu and must add following data correctly:
Server IP: This is your new dedicated server or Loadbalancer IP address.
Root Password: This is the root password of your same new load balancer.
The rest data you can add per your choice, if you want to change the ports too you can read this guide about changing ports. After adding that data, Loadbalancer should be online in 3 to 5 mins. You need to reload manage servers page in order to see fresh data.
Install Xtream-UI Load Balancer Manually
- Get MySQL password
- Login to root via PuTTY
- Start installation script
- Select LB, yes, hit enter
- Installation completed
- Reload Manage Servers page and your LB is now online
That was the quick installation guide, pls read bellow to read full guide about Xtream-UI loadbalancer installation or read Xtream-UI Main server installation.
Getting MySQL root password for user_iptvpro from db xtream_iptvpro
You need to do this only if you havn’t already copied and saved main server’s MySQL password for user_iptvpro. In cause you haven’t this password, run following command to get.
cp -rf /home/xtreamcodes/iptv_xtream_codes/pytools/config.py /root && python config.py DECRYPT && rm -rf /root/config.py && rm -rf /root/install.py
You’ll get an output like:
Server ID: 1
Host: 127.0.0.1
Port: 7999
Username: user_iptvpro
Password: 2VlKE4eJmt8IBTs1
Database: xtream_iptvpro
So, there we got MySQL password we’ll be asked while installing the loadbalancer manually.
I’m offering paid services on Telegram (@lofertech), get your services fixed by me.
Buy DMCA Free Xtream UI Installed Ready To Go Servers
Logging to New Dedicated server (Loadbalancer)
Now login to your new loadbalancer dedicated server via PuTTY, if you don’t know how to do or getting error this article may help.
Starting Installation For New Loadbalancer:
First of all login to your admin Panel, from navigation menu go to Add Load Balancer, Add your dedicated server hostname/custom name or IP, then add your server IP and fill other fields if you know how to or leave rest blank and now it should look like this:
I’m offering paid services on Telegram (@lofertech), get your services fixed by me.
Finding Correct Network Interference ID
Now, to next Advance Field the field we must need to update is called Network Interference which is by default
eth0
. This helps us keep showing correct and real time upload and download data so we can keep eye on our bandwidth running out of limit or in range. To get your server’s correct Network Interference ID, run following command.
ifconfig
Now the output data be like:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet ip netmask 255.255.254.0 broadcast ip.255
inet6 2-------32 prefixlen 64 scopeid 0x0<global>
Here our Network Interference ID is
eth0
so, we’ll type this to relevant field and add this new loadblanancer. It will look like this now:
Now get back to navigation menu and Manage Servers. There you’ll see a new load balancer has been added but status is offline and also you can see a disabled WiFi icon at right upper side which indicates that one or more of your loadbalancers are down. It will now look like this:
Running Installation Script For Xtream UI Load Balancer:
Now, get back to PuTTY of your loadbalance server and from mirrors you can run the command to get installation menu. Like we’re gonna use our following installation script.
apt-get update ; apt-get install libxslt1-dev libcurl3 libgeoip-dev python -y ; wget https://lofertech.com/xui/install.py ; sudo python install.py
So, here you’ll get a menu having 3 or 2 options and one of these will be LB which is actually shortname of LoadBalancer.
You need to type LB and hit enter so it will start installation process for LoadBalancer. It will now ask you some data to be entered, following is how you can correct add the data.
Main Server IP
: Here you need to add your admin panel IP
MySQL Root Password
: This is the password of main server MySQL password for user user_iptvpro and database xtream_iptvpro. You can get from above method we shared to get this data.
Load Balancer Server ID
: This add ID of loadbalancer you can get my logging into admin panel ==> manage servers ==> relevant loadbalancer ID number at left side. Following is the map of where and how to add this data correctly.
Taking LoadBalancer Online:
You need to reload the page Manage Servers and see if loadbalancer is already online. If not run following command on LB server and it should be online and after this you can use it as you want.
/home/xtreamcodes/iptv_xtream_codes/start_services.sh
It should be now like this.
So finally you have successfully installed and make the loadbalancer running fine. If you wanna make some more and recommended changes to your loadbalancer you can use this guide.
I’m offering paid services on Telegram (@lofertech), get your services fixed by me.
Helping Links:
Xtream UI Panel – A Complete Guide
Best Streaming Dedicated Servers For IPTV
Installing Xtream UI Admin Panel properly (common issues and fixes)
Installing / Adding Xtream UI new loadbalancer or new server (common issues and fixes)
dear sir,
if i need some help in xtream ui how i can got?
thanks
You can reach me On Telegram @lofertech
How config Xtream hi server with ssl http to https
how to delete live connections ( not working )
try del logs, restart mysql and stuff if works.