Prerequisites
Before installing Lionz IPTV Downloader, ensure you have the following components installed on your system.Required Software
PHP 8.4 or Higher
PHP 8.4 or Higher
Lionz IPTV Downloader requires PHP 8.4 or higher with the following extensions:Installation on macOS:Verify installation:
php-sqlite3- SQLite database supportphp-curl- HTTP client for API requestsphp-mbstring- Multibyte string handlingphp-xml- XML processingphp-zip- Archive support
Composer
Composer
Composer is required for managing PHP dependencies.Installation:Verify installation:Learn more at getcomposer.org
pnpm Package Manager
pnpm Package Manager
pnpm is used for managing Node.js dependencies with better performance and disk efficiency.Installation via npm:Installation via standalone script:Verify installation:
Alternatively, you can use Bun (configured in
package.json as version 1.2.23) for even faster performance.MeiliSearch
MeiliSearch
MeiliSearch is required for fast content search and indexing.Installation on Linux:Installation on macOS:Installation via Docker:Running MeiliSearch:Learn more at meilisearch.com
aria2 Download Manager
aria2 Download Manager
aria2 is a lightweight multi-protocol & multi-source command-line download utility.Installation on Ubuntu/Debian:Installation on macOS:Running aria2 RPC server:Recommended: Motrix GUIFor a better experience, install Motrix which provides a graphical interface for aria2 with RPC enabled by default:
- Download from motrix.app
- Enable RPC in settings
- Configure RPC secret token
Service Requirements
Lionz TV Subscription
You need an active Lionz TV subscription with Xtream Codes API credentials:
- API Host
- API Port (typically 80 or 443)
- Username
- Password
Installation Steps
Clone the Repository
Clone the repository from GitHub:
Current version:
1.0.13 (check composer.json for latest)Install PHP Dependencies
Install Laravel and all required PHP packages:This will install:
- Laravel 12 framework
- Inertia.js for SPA functionality
- Laravel Scout for search integration
- MeiliSearch PHP client
- Saloon HTTP client for API requests
- And many more dependencies (see
composer.json)
Install Node.js Dependencies
Install React, TypeScript, and frontend build tools:This installs:
- React 19 with TypeScript
- Inertia.js React adapter
- Tailwind CSS 4
- Radix UI components
- Vite for build tooling
- And all frontend dependencies
Create SQLite Database
Create an empty SQLite database file:
SQLite is the default database configured in
.env.example. You can switch to MySQL or PostgreSQL if needed by modifying the DB_CONNECTION setting.Run Post-Installation Script
Execute the post-installation script to set up the application:This script performs:
- Generates application encryption key (
APP_KEY) - Creates database file if missing
- Runs all database migrations
Set Up Environment Configuration
Copy the environment example file:See the Configuration Guide for detailed information on setting up your
.env file.Optional Components
Development Tools
For development, the following tools are included:Laravel Telescope
Laravel Telescope
Debug assistant for Laravel applications (already included).Access at:
http://localhost:8000/telescopeConfigured in .env:Laravel Pail
Laravel Pail
Real-time log viewer for development.Run with:
Laravel Octane
Laravel Octane
Supercharge Laravel performance with Octane (already included).Run with Octane:Configured in
config/octane.phpProduction Optimization
For production deployments:Verification
After installation, verify everything is working:Next Steps
Configuration
Configure your environment variables and service connections
Quickstart
Complete the quickstart guide to sync your first content
Troubleshooting
Permission Errors
Permission Errors
If you encounter permission errors:
Port Already in Use
Port Already in Use
If port 8000 is already in use:
SQLite Extension Missing
SQLite Extension Missing
Install SQLite extension for PHP:
Composer Memory Limit
Composer Memory Limit
If composer runs out of memory: