How to install Real Panel (XtreamUI, Xtreamcodes) on Ubuntu 20.04

There are many steps that you have to do first before you can install REAL PANEL, XTREAMUI or Xtreamcodes on Ubuntu 20.04 but it works.

First update the server

apt update

apt upgrade

Fix libpng12 in ubuntu 20.4

apt-get -y install software-properties-common
sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt update
sudo apt install libpng12-0

Edit the source list

sudo nano /etc/apt/sources.list

then add at the end of the file

deb http://security.ubuntu.com/ubuntu xenial-security main

save the file, then run in Putty

sudo apt update && sudo apt install libssl1.0.0

Fix GEOIP for Ubuntu 20.4

sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo apt-get -y install libgeoip-dev

install curl34. Ubuntu 20.04 only has curl4 while Real Panel requires curl3, so we will install crul34 for both versions.

apt -y install software-properties-common
add-apt-repository ppa:xapienz/curl34
apt update
apt-cache policy libcurl4
apt install libcurl4=7.68.0-1ubuntu2.5ppa1

If your panel won’t start, you just need to install this curl again with the command: apt install libcurl4=7.68.0-1ubuntu2.5ppa1

Run the below code to disable auto update timer which will prevent the curl4 to be reinstalled again.

sudo systemctl stop apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl daemon-reload

Run those 2 commands below to do symlinks

ln -s /usr/lib/x86_64-linux-gnu/libonig.so /usr/lib/x86_64-linux-gnu/libonig.so.4
ln -s /usr/lib/x86_64-linux-gnu/libzip.so /usr/lib/x86_64-linux-gnu/libzip.so.4

Now you are ready to install REAL PANEL (XtreamUI, Xtreamcodes)

sudo apt-get update ; sudo apt-get install libxslt1-dev libgeoip-dev python -y unzip e2fsprogs python-paramiko -y; sudo wget https://realpanel.io/xtream/install.py ; sudo python install.py

on MAIN server, make sure run this command to keep GEOIP file from being deleted

chattr +i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb

On Ubuntu 20.04 they require a more secure file permission so you need to run the below command depending on what type of installation you are doing

Edit file permission of php pid to 0755 for main server:

chmod 0755 /home/xtreamcodes/iptv_xtream_codes/php/CWcfSP.pid && chmod 0755 /home/xtreamcodes/iptv_xtream_codes/php/JdlJXm.pid && chmod 0755 /home/xtreamcodes/iptv_xtream_codes/php/VaiIb8.pid

Edit file permission of php pid to 0755 for LB server

chmod 0755 /home/xtreamcodes/iptv_xtream_codes/php/f3rD1w.pid && chmod 0755 /home/xtreamcodes/iptv_xtream_codes/php/Rgv8i1.pid && chmod 0755 /home/xtreamcodes/iptv_xtream_codes/php/rmsC3z.pid

Auto start Xtream on reboot
sudo nano /etc/rc.local

then add the below codes

#!/bin/sh
sudo /home/xtreamcodes/iptv_xtream_codes/start_services.sh
sysctl -p
exit 0

Now run

sudo chmod 0755 /etc/rc.local

Now everything is all GOOD. Any problem, contact me on TELEGRAM.

Join REAL PANEL TELEGRAM GROUP for support:

https://t.me/+VNRM6f3ge62dcVoA

Scroll to Top