Application hosting
Deploy CodeIgniter with PHP, Database, Redis, and Cron Jobs
Bring CodeIgniter to HostRight with a public web root, Composer, PHP extensions, MariaDB, Redis, SSL, SSH, and scheduled maintenance commands.
CodeIgniter is a lightweight PHP framework for websites, APIs, and internal tools. HostRight provides the PHP runtime, Composer, database, Redis, SSL, and deployment tools needed for a managed setup.
Deploy the public directory
Keep the project outside the public web directory and point the domain to CodeIgniter's public/ directory:
apps/example-codeigniter/
├── app/
├── public/
├── system/
├── writable/
├── composer.json
└── env
Deploy with Git or SFTP, install dependencies, and make sure writable/ is writable by the application while remaining outside direct public access where possible.
Configure PHP and the database
Select a compatible PHP version and extensions in Extra Features → Select PHP version. Create the MariaDB database in Account Manager → Databases and configure the connection in the environment file or protected settings. Do not commit database credentials.
If the application uses cache, sessions, or rate limiting, enable Redis and use the socket path shown in the Control Panel. See enable and use Redis.
Run the application over HTTPS after DNS resolves and SSL is active. Test routes, forms, uploads, database operations, and API responses.
Schedule maintenance
CodeIgniter tasks such as cleanup, imports, reports, or queue processing can run through Cron Jobs. Use the full path to PHP and the project's command or script, redirect output to a private log, and prevent overlapping runs.
Keep the application maintainable
Use Composer lock files, Git deployments, backups, environment-specific settings, and a testable release process. Take a database backup before schema changes and keep framework and PHP upgrades under review.