Xtream Codes or Xtream UI v22F has been running on the old php 7.2. Current latest php version is 7.4.x which is 40% faster and more efficient. Imagine you are driving at 70mph. Now you upgrade the engine (for free) and the car allows you to drive at 98mph. Would you take the engine?

Xtream UI is writtten in php. The script requires php, nginx. mysql to run. The streaming engine is ffmpeg. Until now I have updated nginx to latest version. However it is not enough. Nginx calls PHP to process the requests from clients. If PHP is slow, NGINX will be slow. Upgrading to PHP latest version is a MUST. But you don’t have to.

What is the risk?

There is 1 risk. The iconcube loader for php 7.4.x is in beta. According to them, everything should work perfect except overtime memory may leak which is not good.

I have tested PHP 7.4 in my REAL LB server, which is 10gbps, 128G of RAM. Everything is wonderful. No leak or whatsoever. However do it as your own RISK. This is advanced upgrade. I will not be responsible if you cause damage to your servers.

How to upgrade

Step 1:

Run This Code To Upgrade PHP (7.4.7)
sudo apt-get install libonig-dev libmcrypt4 libssl-dev libxml2 libbz2-dev libcurl3-nss libcurl4-gnutls-dev libcurl3-gnutls libpng-dev libfreetype6-dev libxslt-dev libzip-dev libonig-dev libmcrypt4 && sudo wget “” -O /tmp/ -o /dev/null && sudo unzip /tmp/ -d /tmp/update/ && sudo cp -rf /tmp/update/* /home/xtreamcodes/iptv_xtream_codes/php/ && sudo rm -rf /tmp/update && sudo rm /tmp/ && sudo rm -rf /tmp/update && sudo chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/ && sudo chmod 0777 /home/xtreamcodes/iptv_xtream_codes/php/bin/php && sudo chmod 0777 /home/xtreamcodes/iptv_xtream_codes/php/sbin/php-fpm

Step 2: Go to /home/xtreamcodes/iptv_xtream_codes/php/etc

There are 3 conf files for PHP. The name maybe different for each installation.

Now edit ALL of them. add the following configuration file, inside the xtreamcodes config

process.dumpable = yes

Now Restart The service
sudo chmod 0777 /home/xtreamcodes/iptv_xtream_codes/php/bin/php && sudo chmod 0777 /home/xtreamcodes/iptv_xtream_codes/php/sbin/php-fpm && sudo /home/xtreamcodes/iptv_xtream_codes/

It is now complete. You should test it in a test environment to see if any issue. PM me if you find any issue and let me know. It could be missing dependencies and I can simply put it into the codes

Leave a Comment

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

Scroll to Top