Preloader
Bug Fix

Tutorial: How To Fix 500 Internal Server Error in Xtream UI

Panel crashing with a 500 error? Here is the simple fix to get it back online.


Why Does This Error Happen?

A "500 Internal Server Error" usually means the engine running your panel (PHP-FPM) has run out of memory. Think of it like a chef trying to cook too many orders at once—eventually, they just stop working.

This happens because the default memory limit in Xtream UI is set too low for modern servers. We simply need to increase this limit.

1Step 1: Check Current Memory Limit

First, let's see what your current limit is. Login to your server via SSH (PuTTY) and run this command:

grep memory_limit /home/xtreamcodes/iptv_xtream_codes/php/lib/php.ini

If it says something low like 128M, that is likely your problem.

2Step 2: Edit the Configuration

Now we need to open the settings file and change that number. We use the nano editor for this.

sudo nano /home/xtreamcodes/iptv_xtream_codes/php/lib/php.ini

What to Change:

Use the arrow keys to scroll down until you find memory_limit. Change the value based on your server's RAM:

  • 1GB RAM Server: Set to 256M
  • 2GB RAM Server: Set to 512M
  • 4GB RAM Server: Set to 1024M
  • 8GB+ RAM Server: Set to 1536M

Once changed, press CTRL+X, then Y, then Enter to save.

3Step 3: Restart Services

The changes won't work until you restart the panel. Run this command to apply the new settings immediately:

sudo /home/xtreamcodes/iptv_xtream_codes/start_services.sh

Wait a few seconds, then refresh your panel page. The 500 error should be gone!

4Bonus: Clean Up Logs

Sometimes, full logs can also cause errors. While you are logged in, it is good practice to clear them out to free up space.

mysql -u root -p xtream_iptvpro -e "TRUNCATE client_logs; TRUNCATE stream_logs;"

(You will need your MySQL root password for this).