{"id":1062,"date":"2024-05-31T22:10:21","date_gmt":"2024-05-31T22:10:21","guid":{"rendered":"https:\/\/5k5g.tv\/blog\/?p=1062"},"modified":"2024-12-09T08:16:08","modified_gmt":"2024-12-09T08:16:08","slug":"comprehensive-guide-to-installing-xtream-ui-on-ubuntu-18-04-5-lts","status":"publish","type":"post","link":"https:\/\/5k5g.tv\/blog\/comprehensive-guide-to-installing-xtream-ui-on-ubuntu-18-04-5-lts.html","title":{"rendered":"Comprehensive Guide to Installing Xtream-UI on Ubuntu 18.04.5 LTS"},"content":{"rendered":"<h1>Comprehensive Guide to Installing Xtream-UI on Ubuntu 18.04.5 LTS<\/h1>\n<p>Xtream-UI is a powerful management tool designed to help users handle IPTV servers efficiently. If you&#8217;re working with IPTV and need a robust interface to manage your operations, Xtream-UI could be the solution you need. This guide will walk you through the steps to install Xtream-UI on an Ubuntu 18.04.5 LTS server. By following these instructions, you&#8217;ll have Xtream-UI up and running in no time.<\/p>\n<h2>Prerequisites<\/h2>\n<p>Before diving into the installation process, ensure that your server meets the necessary prerequisites:<\/p>\n<ol>\n<li><strong>Ubuntu 18.04.5 LTS<\/strong>: This guide is specifically tailored for this version of Ubuntu.<\/li>\n<li><strong>Root Access<\/strong>: You need to have root privileges or a user with sudo access.<\/li>\n<li><strong>Basic Linux Knowledge<\/strong>: Familiarity with basic Linux commands and navigation is essential.<\/li>\n<\/ol>\n<h2>Step 1: Update and Upgrade the System<\/h2>\n<p>First, update and upgrade your system packages to ensure everything is up-to-date. Open your terminal and execute the following commands:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo apt update<br \/>\nsudo apt upgrade -y<br \/>\n<\/code><\/div>\n<\/div>\n<p>This command will refresh your package list and install the latest versions of the packages currently installed on your system.<\/p>\n<div style=\"width: 618px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-1062-1\" width=\"618\" height=\"348\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/5k5g.tv\/blog\/wp-content\/uploads\/2024\/05\/Comprehensive-Guide-to-Installing-Xtream-UI-on-Ubuntu-18.04.5-LTS.mp4?_=1\" \/><a href=\"http:\/\/5k5g.tv\/blog\/wp-content\/uploads\/2024\/05\/Comprehensive-Guide-to-Installing-Xtream-UI-on-Ubuntu-18.04.5-LTS.mp4\">http:\/\/5k5g.tv\/blog\/wp-content\/uploads\/2024\/05\/Comprehensive-Guide-to-Installing-Xtream-UI-on-Ubuntu-18.04.5-LTS.mp4<\/a><\/video><\/div>\n<h2>Step 2: Install Required Dependencies<\/h2>\n<p>Xtream-UI requires several dependencies to function correctly. Install these dependencies by running the following command:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo apt install -y software-properties-common nginx mysql-server php7.2 php7.2-fpm php7.2-mysql php7.2-mbstring php7.2-xml php7.2-curl unzip<br \/>\n<\/code><\/div>\n<\/div>\n<p>This command installs Nginx (a web server), MySQL (a database server), PHP 7.2, and other necessary PHP extensions.<\/p>\n<h2>Step 3: Configure MySQL<\/h2>\n<p>Once MySQL is installed, it needs to be configured. First, secure your MySQL installation by running:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo mysql_secure_installation<br \/>\n<\/code><\/div>\n<\/div>\n<p>You&#8217;ll be prompted to set a root password and make several security-related decisions. Follow the prompts and choose the options that best fit your security requirements.<\/p>\n<p>Next, log in to the MySQL root account:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo mysql -u root -p<br \/>\n<\/code><\/div>\n<\/div>\n<p>After entering your root password, create a new database and user for Xtream-UI:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>sql<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> DATABASE xtreamui;<br \/>\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'xtreamuser'<\/span>@<span class=\"hljs-string\">'localhost'<\/span> IDENTIFIED <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-string\">'yourpassword'<\/span>;<br \/>\n<span class=\"hljs-keyword\">GRANT<\/span> <span class=\"hljs-keyword\">ALL<\/span> PRIVILEGES <span class=\"hljs-keyword\">ON<\/span> xtreamui.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">TO<\/span> <span class=\"hljs-string\">'xtreamuser'<\/span>@<span class=\"hljs-string\">'localhost'<\/span>;<br \/>\nFLUSH PRIVILEGES;<br \/>\nEXIT;<br \/>\n<\/code><\/div>\n<\/div>\n<p>Replace <code>'yourpassword'<\/code> with a strong password of your choice.<\/p>\n<h2>Step 4: Install and Configure Nginx<\/h2>\n<p>Next, configure Nginx to serve Xtream-UI. Open the Nginx configuration file:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo nano \/etc\/nginx\/sites-available\/default<br \/>\n<\/code><\/div>\n<\/div>\n<p>Replace the existing configuration with the following:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>nginx<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-nginx\"><code class=\"!whitespace-pre hljs language-nginx\">server {<br \/>\nlisten 80;<br \/>\nserver_name your_server_ip;<\/code><\/code>root \/var\/www\/html;<br \/>\nindex index.php index.html index.htm;<\/p>\n<p><code class=\"!whitespace-pre hljs language-nginx\"><code class=\"!whitespace-pre hljs language-nginx\"><\/code><\/code>location \/ {<br \/>\ntry_files $uri $uri\/ =404;<br \/>\n}<\/p>\n<p><code class=\"!whitespace-pre hljs language-nginx\"><code class=\"!whitespace-pre hljs language-nginx\"><\/code><\/code>location ~ .php$ {<br \/>\ninclude snippets\/fastcgi-php.conf;<br \/>\nfastcgi_pass unix:\/var\/run\/php\/php7.2-fpm.sock;<br \/>\n}<\/p>\n<p><code class=\"!whitespace-pre hljs language-nginx\"><code class=\"!whitespace-pre hljs language-nginx\"><\/code><\/code>location ~ \/.ht {<br \/>\ndeny all;<br \/>\n}<br \/>\n}<\/p>\n<\/div>\n<\/div>\n<p>Replace <code>your_server_ip<\/code> with your server&#8217;s IP address. Save and close the file (Ctrl+X, then Y, then Enter).<\/p>\n<p>Restart Nginx to apply the changes:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo systemctl restart nginx<br \/>\n<\/code><\/div>\n<\/div>\n<h2>Step 5: Install Xtream-UI<\/h2>\n<p>With the server environment ready, proceed to download and install Xtream-UI. Navigate to the <code>\/var\/www\/html<\/code> directory and download Xtream-UI:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\"><span class=\"hljs-built_in\">cd<\/span> \/var\/www\/html<br \/>\nsudo wget https:\/\/xtream-ui.com\/downloads\/latest.zip -O xtreamui.zip<br \/>\n<\/code><\/div>\n<\/div>\n<p>Unzip the downloaded file:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo unzip xtreamui.zip -d xtreamui<br \/>\n<\/code><\/div>\n<\/div>\n<p>Set the correct permissions for the Xtream-UI files:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo <span class=\"hljs-built_in\">chown<\/span> -R www-data:www-data \/var\/www\/html\/xtreamui<br \/>\nsudo <span class=\"hljs-built_in\">chmod<\/span> -R 755 \/var\/www\/html\/xtreamui<br \/>\n<\/code><\/div>\n<\/div>\n<h2>Step 6: Configure Xtream-UI<\/h2>\n<p>Next, configure Xtream-UI to connect to your database. Copy the sample configuration file and open it for editing:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\"><span class=\"hljs-built_in\">cd<\/span> \/var\/www\/html\/xtreamui<br \/>\nsudo <span class=\"hljs-built_in\">cp<\/span> config.sample.php config.php<br \/>\nsudo nano config.php<br \/>\n<\/code><\/div>\n<\/div>\n<p>Find the following lines and update them with your database details:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>php<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-php\"><span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_HOST'<\/span>, <span class=\"hljs-string\">'localhost'<\/span>);<br \/>\n<span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_USER'<\/span>, <span class=\"hljs-string\">'xtreamuser'<\/span>);<br \/>\n<span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_PASS'<\/span>, <span class=\"hljs-string\">'yourpassword'<\/span>);<br \/>\n<span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_NAME'<\/span>, <span class=\"hljs-string\">'xtreamui'<\/span>);<br \/>\n<\/code><\/div>\n<\/div>\n<p>Save and close the file.<\/p>\n<h2>Step 7: Import Xtream-UI Database Schema<\/h2>\n<p>Now, import the Xtream-UI database schema. Run the following command:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo mysql -u xtreamuser -p xtreamui &lt; \/var\/www\/html\/xtreamui\/install.sql<br \/>\n<\/code><\/div>\n<\/div>\n<p>Enter your MySQL password when prompted.<\/p>\n<h2>Step 8: Finalize the Installation<\/h2>\n<p>To complete the installation, open your web browser and navigate to <code>http:\/\/your_server_ip\/xtreamui<\/code>. You should see the Xtream-UI installation wizard. Follow the on-screen instructions to finalize the setup.<\/p>\n<h2>Step 9: Secure Your Installation<\/h2>\n<p>Securing your installation is crucial. Follow these steps to enhance security:<\/p>\n<h3>1. Firewall Configuration<\/h3>\n<p>Ensure that your firewall is configured to allow traffic only on necessary ports. For example, to allow HTTP and HTTPS traffic, run:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo ufw allow <span class=\"hljs-string\">'Nginx Full'<\/span><br \/>\nsudo ufw <span class=\"hljs-built_in\">enable<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<h3>2. Enable SSL<\/h3>\n<p>For a secure connection, it&#8217;s recommended to enable SSL. You can use Let&#8217;s Encrypt to obtain a free SSL certificate. Install Certbot and the Nginx plugin:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo apt install certbot python-certbot-nginx<br \/>\n<\/code><\/div>\n<\/div>\n<p>Obtain and install the SSL certificate:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo certbot --nginx -d your_domain -d www.your_domain<br \/>\n<\/code><\/div>\n<\/div>\n<p>Follow the prompts to complete the process.<\/p>\n<h3>3. Update File Permissions<\/h3>\n<p>Ensure that only necessary users have access to sensitive files:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo <span class=\"hljs-built_in\">chown<\/span> -R root:www-data \/var\/www\/html\/xtreamui<br \/>\nsudo find \/var\/www\/html\/xtreamui -<span class=\"hljs-built_in\">type<\/span> d -<span class=\"hljs-built_in\">exec<\/span> <span class=\"hljs-built_in\">chmod<\/span> 750 {} ;<br \/>\nsudo find \/var\/www\/html\/xtreamui -<span class=\"hljs-built_in\">type<\/span> f -<span class=\"hljs-built_in\">exec<\/span> <span class=\"hljs-built_in\">chmod<\/span> 640 {} ;<br \/>\n<\/code><\/div>\n<\/div>\n<h3>4. Disable Root Login and Change SSH Port<\/h3>\n<p>For enhanced security, disable root login and change the default SSH port. Open the SSH configuration file:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo nano \/etc\/ssh\/sshd_config<br \/>\n<\/code><\/div>\n<\/div>\n<p>Find and modify the following lines:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">Port 2222<br \/>\nPermitRootLogin no<br \/>\n<\/code><\/div>\n<\/div>\n<p>Save and close the file, then restart the SSH service:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo systemctl restart ssh<br \/>\n<\/code><\/div>\n<\/div>\n<h2>Step 10: Regular Maintenance<\/h2>\n<p>To ensure smooth operation, perform regular maintenance tasks such as:<\/p>\n<ol>\n<li><strong>Updating Packages<\/strong>: Regularly update your system packages.\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo apt update<br \/>\nsudo apt upgrade -y<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li><strong>Monitoring Server Performance<\/strong>: Keep an eye on your server&#8217;s performance and resource usage.<\/li>\n<li><strong>Backing Up Data<\/strong>: Regularly back up your Xtream-UI database and configuration files.\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>bash<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Copy code<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4 text-left undefined\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo mysqldump -u xtreamuser -p xtreamui &gt; xtreamui_backup.sql<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li><strong>Securing Your Server<\/strong>: Continuously monitor and update security settings.<\/li>\n<\/ol>\n<p>By following these steps, you can ensure that your Xtream-UI installation remains secure, up-to-date, and running smoothly.<\/p>\n<h2>Conclusion<\/h2>\n<p>Installing Xtream-UI on Ubuntu 18.04.5 LTS involves several steps, from updating your system and installing necessary dependencies to configuring Nginx and MySQL, and finally securing your installation. By carefully following this guide, you can set up a robust IPTV management system on your server. Remember to maintain your installation regularly to keep it secure and efficient.<\/p>\n<p>You may also be interested in <a href=\"https:\/\/5k5g.tv\/blog\/01\/20\/multimedia-1506g-imei-change-software.html\">multimedia 1506g imei change software<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Comprehensive Guide to Installing Xtream-UI on Ubuntu 18.04.5 LTS Xtream-UI is a powerful management tool designed to help users handle IPTV servers efficiently. If you&#8217;re working with IPTV and need a robust interface to manage your operations, Xtream-UI could be the solution you need. This guide will walk you through the steps to install Xtream-UI &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1064,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5038],"tags":[5281,5272,5271,5270,5280,5274,5275,5277,5273,5278,5279,5276,5269,5043],"class_list":["post-1062","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-xtream-ui","tag-var-www-html-xtreamui","tag-bash","tag-code","tag-copy","tag-database","tag-install","tag-installation","tag-mysql","tag-nginx","tag-root","tag-serve","tag-step","tag-sudo","tag-xtream-ui"],"_links":{"self":[{"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/posts\/1062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/comments?post=1062"}],"version-history":[{"count":2,"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/posts\/1062\/revisions"}],"predecessor-version":[{"id":1216,"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/posts\/1062\/revisions\/1216"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/media\/1064"}],"wp:attachment":[{"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/media?parent=1062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/categories?post=1062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/5k5g.tv\/blog\/wp-json\/wp\/v2\/tags?post=1062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}