CodeIgniter 4 Dual-Mode and IgniteCore SDK for Perfex CRM

Install and Configure IgniteCore for Perfex CRM: Ops Guide

Deploying a dual-runtime bridge onto a live Perfex CRM instance fails most often when file permissions, PHP extensions, or web server rewrite rules are guessed during installation. This DevOps runbook gives administrators a repeatable checklist to install, configure, and verify IgniteCore on Perfex CRM Classic in under ten minutes, ensuring clean CI4 front-controller routing, intact legacy CI3 URLs, and a tested one-step rollback path.

Want to understand the routing internals first? Read our Strangler Fig CI3-to-CI4 bridge architecture guide.

RequirementMinimum BaselineProduction Recommendation
PHP VersionPHP 8.1+PHP 8.2 or 8.3 with OPcache enabled
Required Extensionsintl, mbstring, json, mysqliAdd curl, zip, gd or imagick
Perfex CRM CorePerfex Classic 3.0+Latest Perfex Classic 3.2+ release
Web ServerApache with mod_rewriteOpenLiteSpeed, LiteSpeed, or Nginx rewrite rules
Writable Storagemodules/ignitecore/writable/ (0755)Dedicated non-public log and cache rotation

1. Run Preflight Checks and Upload IgniteCore

Before uploading the archive, take a quick snapshot of your Perfex database and root .htaccess file. Verify that PHP intl and mbstring extensions are active, because CodeIgniter 4 requires both for locale formatting and string handling. Once verified, upload the module via Perfex’s native Setup -> Modules installer and activate it cleanly.

  • Confirm php -m lists intl and mbstring for both the web SAPI (FPM/OLS) and CLI binary.
  • Ensure modules/ignitecore/writable/cache, logs, and session directories are owned by the web server user.
  • Verify APP_BASE_URL in application/config/app-config.php matches your exact HTTPS domain without trailing typos.

2. Configure Routing Rules and Verify Runtime Parity

IgniteCore ships a lightweight rewrite snippet for Apache/OpenLiteSpeed .htaccess and an equivalent location block for Nginx so /ignite/* requests dispatch straight to CI4. After applying the rule, open IgniteCore’s Diagnostics Dashboard to confirm session sharing, database prefix detection, and CI3 vs CI4 endpoint response benchmarks.

  • Place IgniteCore rewrite conditions above Perfex’s generic index.php rewrite rule in .htaccess.
  • Test one legacy CI3 admin page and one /ignite/health JSON probe to confirm both return HTTP 200.
  • Enable Auto-Quarantine Guard inside IgniteCore Settings immediately after confirming clean module discovery.

Common Pitfalls and Quick Fixes

  • 404 Not Found on /ignite/* endpoints under Nginx: Add the documented try_files block for /ignite/ inside your Nginx server config and reload Nginx (nginx -s reload).
  • HTTP 500 right after activation on shared hosting: Check modules/ignitecore/writable/logs/ first; 90% of initial errors trace to missing php-intl or un-writable cache/ permissions.
  • OpenLiteSpeed ignoring updated .htaccess rules: Restart OpenLiteSpeed (systemctl restart lsws) or purge cache via CyberPanel so updated rewrite directives load into memory.

Frequently Asked Questions

Do I need SSH or Composer CLI access on the server to install IgniteCore?

No. IgniteCore ships with pre-packaged production vendor dependencies inside the module archive, so administrators can upload and activate it directly through the Perfex CRM Setup Modules interface just like any standard module without needing SSH access or running Composer commands on production.

Does IgniteCore overwrite my existing Perfex .htaccess customizations?

No. IgniteCore never overwrites your root .htaccess file blindly without a backup. Its installer checks for existing rewrite rules, provides an exact copy-paste snippet with live preview, and supports a clean one-click revert if you ever need to remove the bridge.

How do I verify IgniteCore is using the right Perfex database prefix?

Open the IgniteCore Diagnostics tab in the Perfex admin panel. It displays the detected APP_DB_PREFIX (typically tbl), active MySQL driver, PHP extensions, and live connection latency, confirming automatically that CI4 models point directly to your exact production database tables.

What is the rollback procedure if we need to uninstall IgniteCore?

Deactivate IgniteCore in Perfex’s Modules screen and remove the two-line /ignite/ rewrite rule from your .htaccess or Nginx server config. All dual-mode modules automatically revert to CI3 fallback mode, and no core Perfex database tables or system files are altered.


Comments

Leave a Reply

Your email address will not be published.Required fields are marked *