How to install downloaded WHMCS?

Summary
The main topic of the thread is setting up WHMCS on a server, specifically focusing on installing and configuring the core files securely. Key information includes: - The first step involves installing the latest ionCube Loader compatible with your server's PHP version to avoid blank pages or fatal errors. - For CPanel/WHM servers, use the EasyApache feature in WHM to install ionCube. For manual installations, download the correct ionCube package for your OS and PHP version, upload it to the server, and configure php.ini. - Verify that both web and CLI (cron) versions of ionCube are working properly. - Prepare a MySQL database with appropriate permissions before uploading WHMCS files. - Upload all WHMCS files via FTP/SFTP, set correct folder permissions, and delete the install directory after installation for security. - Use the web installer to complete the setup process and edit configuration.php for proper settings. - Apply patches from the release by backing up files first, uploading patch files, verifying changes, and ensuring core functions work as expected. - Address common issues like blank pages or cron task failures by checking ionCube Loader installation, CLI PHP configuration, and folder permissions. - Important reminders include testing on a staging server, backing up before install/patch, monitoring outbound logs for unexpected activity, and adhering to WHMCS's strict PHP requirements.
Admin
Moderating
Donor Member
Master Member
Elite Member
Active Member
Joined
May 31, 2020
Messages
2,980
Reaction score
1,693
WHMCS core files are ionCube encoded. Before uploading and installing WHMCS, your server must have the latest ionCube Loader matching your server PHP version, otherwise you will get blank page or fatal PHP error.

Step1: Install latest ionCube Loader​

  1. Confirm your server PHP version first (run php -v via SSH or create phpinfo.php to check).
  2. cPanel/WHM server method (recommended):Go to WHM → EasyApache, select your active PHP version, find ionCube extension, install and save profile, restart Apache/PHP-FPM.
  3. Manual SSH install (root required) download ionCube Loader package matching your OS + PHP version, upload ioncube folder to server, add zend_extension path into php.ini, restart web service.
  4. Verify ionCube: open phpinfo page, confirm ionCube Loader loaded successfully.

Important: The ionCube for web and CLI(cron) must both work. Many failed WHMCS cron jobs are caused by missing ionCube in CLI PHP.

Step2: Prepare database​

  1. Create MySQL database and database user, grant full privileges to this user.
  2. Record DB name, DB user, password for later installation.

Step3: Upload WHMCS files​

  1. Unzip downloaded WHMCS package locally.
  2. Upload all files to your web directory via FTP/SFTP.
  3. Set folder permissions:configuration.php : 644attachments/, downloads/, templates_c/ : 755All other folders 755, PHP files 644.
  4. Delete install folder after installation for security.

Step4: Web installation wizard​

  1. Visit your WHMCS URL in browser, the install page will load.
  2. Fill in database connection information, admin username & password.
  3. Complete the web installer.
  4. After install, edit configuration.php to set proper configuration.

Step5: Apply patch (from our release)​

  1. Backup full WHMCS files + database before applying any patch.
  2. Upload patch files to overwrite corresponding WHMCS files.
  3. Verify patch modification source, our patches are fully open source and you can check what changes are made.
  4. Login WHMCS admin panel, verify all core functions work normally.
Common issues:

  • Blank page: ionCube Loader not installed / wrong ionCube version / mismatch PHP version.
  • Cron task not run: CLI PHP does not have ionCube loaded, need configure CLI php.ini separately.
  • Permission error: templates_c or attachments folder lack write permission.
Important reminders:

  1. Test on staging server first before production deployment. Even with patches, ionCube encoded files cannot be fully audited.
  2. Backup database and all WHMCS files before install, patch or upgrade.
  3. Keep monitoring server outbound logs to watch for unexpected remote callbacks.
  4. WHMCS has strict PHP requirements, PHP8.0 is unsupported, recommended PHP7.4 / PHP8.1.
If you hit ionCube loading error or installation failure, create support thread with PHP version, ionCube version and error log.
 
Trending Resources
Back
Top