Server Requirements
Before installing TelemanAI, ensure your server meets the following requirements:PHP Requirements
TelemanAI supports PHP 7.3, 7.4, 8.0, and 8.1. We recommend PHP 8.0 for optimal performance.
^7.3|^8.0
Required PHP Extensions:
- BCMath
- Ctype
- cURL
- DOM
- Fileinfo
- JSON
- Mbstring
- OpenSSL
- PCRE
- PDO
- Tokenizer
- XML
- GD or Imagick
- Zip
Database Requirements
- MySQL 5.7+ or MariaDB 10.3+
- Recommended: MySQL 8.0 for better performance
- Ensure your database user has full privileges (CREATE, DROP, ALTER, etc.)
Web Server
Apache:- Version 2.4+
mod_rewriteenabled.htaccesssupport enabled
- Version 1.18+
- Proper Laravel configuration (see configuration section)
System Requirements
- RAM: Minimum 2GB (4GB+ recommended for production)
- Storage: 10GB+ available disk space
- CPU: 2+ cores recommended
- Operating System: Linux (Ubuntu 20.04+, CentOS 8+, Debian 10+)
Additional Software
- Composer 2.0+
- Node.js 14+ and npm (for asset compilation)
- Redis (optional, for caching and queues)
- Supervisor (recommended for queue workers)
Installation Steps
Download and Extract
Download the TelemanAI package and extract it to your web server directory:
Adjust the path according to your web server configuration. For cPanel environments, extract to
public_html.Set File Permissions
Configure proper file permissions for Laravel:Critical Writable Directories:
storage/app/storage/framework/storage/logs/bootstrap/cache/
Install PHP Dependencies
Install Laravel and all required packages using Composer:Key Dependencies Installed:
The
--no-dev flag excludes development dependencies. For development environments, run composer install without this flag.- Laravel Framework 8.65+
- Twilio SDK for voice/SMS
- Payment gateway libraries (Stripe, PayPal, Razorpay, etc.)
- Excel import/export (Maatwebsite)
- PDF generation (DomPDF)
- Many more (see composer.json:7 for full list)
Configure Environment
Create and configure your Edit See the Configuration guide for detailed environment variable setup.
.env file:.env with your basic configuration:Create Database
Create a MySQL database for TelemanAI:
For multi-tenant deployments, the application needs CREATE database privileges to create tenant databases automatically.
Run Database Migrations
Initialize the database schema:This will create all necessary tables including:
- Users and authentication
- Campaigns and contacts
- Subscriptions and payments
- System settings
- Tenant management
Install Frontend Dependencies
Compile frontend assets:
For development, use
npm run dev or npm run watch for auto-compilation.Configure Web Server
Set up your web server to point to the Nginx Configuration:Enable and restart:
public directory.Apache Virtual Host:Configure Queue Worker (Recommended)
Set up Supervisor to run Laravel queue workers:Create Start the worker:
/etc/supervisor/conf.d/teleman-worker.conf:Queue workers are essential for processing campaigns, sending emails, and handling background tasks.
Configure Scheduled Tasks
Add Laravel scheduler to cron:Add this line:This enables:
- Subscription expiry alerts (configured via
EXPRITY_ALERT_MAIL_DAY) - Campaign scheduling
- Automatic cleanup tasks
Complete Initial Setup
Access your installation and complete the setup wizard:The installation wizard will guide you through:
- System requirements verification
- Database connection testing
- Admin account creation
- Basic configuration
The
APP_INSTALL variable in .env controls the installation wizard. Set to YES to enable.Post-Installation Steps
Optimize Performance
Verify Installation
Check that everything is working:cPanel Installation
For cPanel environments:For cPanel installations, the application can automatically manage subdomains and SSL certificates if configured correctly.
Troubleshooting
Common Issues
500 Internal Server Error- Check file permissions on
storage/andbootstrap/cache/ - Verify
.htaccessexists inpublic/directory - Check error logs:
storage/logs/laravel.log
- Verify database credentials in
.env - Ensure database exists and user has proper privileges
- Check database server is running:
sudo systemctl status mysql
- Enable debug mode temporarily:
APP_DEBUG=true - Check PHP error logs
- Verify all PHP extensions are installed
Enable Debug Mode (Development Only)
Next Steps
After successful installation:- Configure Environment: Set up integrations, payment gateways, and API keys
- Configure Twilio: Set up voice and SMS capabilities
- Configure VAPI: Enable AI conversation features
- Set Up Payment Gateways: Enable subscription processing
- Create Your First Campaign: Start using TelemanAI
For detailed configuration of all environment variables and integrations, proceed to the Configuration Guide.
System Maintenance
Regular Maintenance Tasks
Backup Recommendations
- Database: Daily automated backups
- Storage: Backup
storage/app/(uploaded files) - Environment: Secure copy of
.envfile - Code: Version control with Git
Updates
Before updating:- Backup database and files
- Test in staging environment
- Put application in maintenance mode
- Update code and dependencies
- Run migrations
- Clear caches
- Test thoroughly
- Disable maintenance mode