Skip to main content

Troubleshooting

Missing PHP requirements​

A missing PHP extension can stop ChurchCRM before you sign in. Where you read the list depends on whether the site is already configured.

Already configured. If Include/Config.php exists and startup cannot finish, ChurchCRM System Check replaces the page you opened. The same page replaces setup when you open setup on that site and a PHP requirement still fails. The heading is ChurchCRM System Check. The message is Some PHP requirements are missing. ChurchCRM needs these before it can continue. The table columns are Requirement and Status. Read every row. Failed means that requirement is not met; Passed means it is. Several can fail at once, including locale gettext, GD Library for image manipulation, and PHP ZipArchive. Fix every Failed row. The page has no form. It tells you to enable the missing PHP extensions in the web server configuration, restart the web server, and reload this page. If a host runs the server for you, ask them to enable the listed extensions.

Fresh installation. Before Include/Config.php exists, setup still opens. It does not use the ChurchCRM System Check page. On step System Check, open PHP Extensions and note every row marked with an X. The names match the requirements below. Continue to Configuration stays unavailable while a required check has an X.

  1. Record every failed requirement. Compare the names with the required PHP extensions. A failed PHP version row needs a supported PHP version, not another extension.
  2. Find the PHP configuration used by the web server serving your ChurchCRM site. The command-line PHP shown by php -v, php -m, or php --ini can use a different version and configuration. Use your hosting panel's PHP information or ask your server administrator to identify the site's loaded php.ini and any additional extension configuration files.
  3. Install or enable each missing extension for that PHP version. On Linux, follow the PHP package steps in the Ubuntu or Rocky Linux guide. On shared hosting, enable the extensions for the domain's selected PHP version in the hosting panel, or send the host the full list of failed checks.
  4. Save the configuration and restart the web server. For Apache, use sudo systemctl restart apache2 on Ubuntu/Debian or sudo systemctl restart httpd on Rocky Linux. If your host uses PHP-FPM, restart the PHP-FPM service serving the site as well. On shared hosting, ask the provider to restart the site's PHP processes if needed.
  5. Reload the original address, including any installation subdirectory. On a configured site, reload the page that showed ChurchCRM System Check. On a fresh installation, reload setup. If a row still fails, the extension was not enabled for the web server's PHP version. Check the web server error log for an extension that failed to load.

When every PHP requirement passes, ChurchCRM System Check no longer replaces the page. A fresh installation continues in setup. A configured site returns to the page you requested, and you keep the existing Include/Config.php and database. Do not reinstall ChurchCRM to fix PHP extensions. This table does not check database credentials, URL rewriting, or file permissions. Setup, or the application after startup succeeds, reports those separately. If the PHP rows already pass and the site still will not open, this page is not the cause.

Windows and XAMPP​

Windows remains an unsupported installation. If you are trying XAMPP and either ChurchCRM System Check or setup's PHP Extensions list shows failed PHP requirements:

  1. In the XAMPP Control Panel, use Apache's Config → PHP (php.ini) entry to open the configuration for that Apache instance. If you have more than one XAMPP installation, confirm that this is the instance serving ChurchCRM.
  2. For each failed extension, find its existing extension= line and remove the leading ; to enable it. For example, failed gettext, GD, and ZipArchive checks correspond to extension=gettext, extension=gd, and extension=zip. Use the entries supplied with your PHP bundle; not every requirement has a separate extension line.
  3. Save php.ini, then Stop and Start Apache in the XAMPP Control Panel. Reload the original ChurchCRM URL and review every remaining failed row.

If an extension still fails, check Apache's error log for a missing or incompatible extension DLL and confirm that extension_dir points to the extension folder for that PHP installation. Enabling gettext satisfies the PHP extension check; it does not establish that Windows provides the operating-system locales needed for translations.

🔍 Step 1: Check Your Logs (Fastest Solution!)​

Most problems can be self-diagnosed by examining logs! Start here:

For ChurchCRM Administrators (Easiest)​

Built-in Log Viewer - No file access needed:

  1. Log in to ChurchCRM as an admin user
  2. Go to Admin → System Logs
  3. View logs directly in the web interface
  4. Filter by log level (DEBUG shows the most details)
  5. Look for ERROR or CRITICAL entries

For Shared Hosting (cPanel)​

Access via cPanel File Manager or FTP:

  1. Log in to your cPanel control panel
  2. Navigate to File Manager or use FTP/SFTP
  3. Find your ChurchCRM directory (usually public_html/churchcrm)
  4. Navigate to the logs/ subdirectory
  5. Download today's -app.log file (named like 2025-11-17-app.log)
  6. Open in a text editor and look for [ERROR] or [CRITICAL] lines

For Self-Hosted/VPS (SSH Access)​

Access via SSH:

# Navigate to ChurchCRM logs
cd /var/www/vhosts/churchcrm/logs/
# View today's log (replace date)
tail -100 2025-11-17-app.log
# or search for errors
grep ERROR 2025-11-17-app.log

Apache Error Logs​

If ChurchCRM logs don't show the issue:

  • Shared Hosting (cPanel): Check cPanel → Error Log (usually in Main section)
  • Self-Hosted/VPS: grep ERROR /var/log/apache2/error_log (or /var/log/httpd/error_log)

See Logging and Diagnostics guide for detailed log information.


Common errors​

500 Internal Server Error​

A 500 error immediately after install is almost always a file permissions problem. Your web server user needs to read the files, but PHP scripts must not be world-writable or have the execute bit set.

PlatformFix
Shared hosting (cPanel)In cPanel File Manager: select all files → Permissions → set files to 644, directories to 755. Do not use 755 on files — PHP scripts with the execute bit cause 500s on many shared hosts.
Ubuntu / Debiansudo chown -R www-data:www-data /var/www/html/churchcrm
Rocky Linux / RHELsudo chown -R apache:apache /var/www/html/churchcrm

If permissions look correct, check logs (Step 1 above). Other causes:

  • A missing PHP extension — follow the PHP requirements recovery checklist
  • mod_rewrite not enabled — see the install guide for your platform
  • PHP below the minimum — the current release requires PHP 8.4 or higher. A 6.x site requires PHP 8.2 or higher. See System Requirements

See File System Permissions for full details.


Step 2: Still Having Issues?​

Ask in Discord. If the problem is a bug, open an issue on ChurchCRM/CRM and include what you already tried.

If you've identified a bug, check GitHub issues:

When you open an issue on GitHub:

  • An auto-comment will appear with diagnostic collection tips
  • Follow the guidance in that comment to help us help you faster

User Language Preference Not Switching​

Symptom​

You change your language preference in My Settings → Localization or Admin → General Settings, but the interface remains in the original language (often the system default). The preference appears to save, but translations don't switch.

Prerequisites​

  • First, verify system locales are installed — See Server Locale Requirements. If you haven't installed the required system locale on your server, translations will not work. This is the most common cause.

Root Cause (LAMP Environments Only)​

After verifying locales are installed, if the language still doesn't switch, the issue is in the PHP gettext initialization. This is a known limitation in PHP/gettext on LAMP stacks:

  1. System-level constraint: PHP's gettext extension is tightly coupled to the operating system's locale library. Once a locale catalog is loaded in a PHP process, it can be difficult to reload it without restarting the process.

  2. Process reuse: PHP running under Apache (mod_php) or traditional LAMP setups may reuse PHP processes for multiple requests. If a previous request loaded gettext in locale A, switching to locale B on the next request may not fully reload the translation catalog.

  3. Supported environment: ChurchCRM's localization is fully tested and supported on LAMP stacks (Linux + Apache + MySQL + PHP with mod_php). Other environments (Docker, Kubernetes, FPM, serverless) may have different behavior due to process lifecycle differences.

Diagnostic Steps​

  1. Confirm system locales are installed:

    locale -a | grep <your_language>
    # Example: locale -a | grep fr_FR

    If the locale is not listed, see Server Locale Requirements to install it.

  2. Verify the language preference is saved:

    • Go to Admin → System → Debug and check the Locale Support card
    • Confirm the system shows your chosen locale (not the server default)
  3. Check webserver logs for errors:

    • See Step 1 above for log locations
    • Look for gettext, locale, or setlocale errors

Workarounds​

Restart Apache to clear PHP process state:

sudo systemctl restart apache2   # Debian/Ubuntu
# or
sudo systemctl restart httpd # Rocky/RHEL/CentOS

This forces Apache to spawn fresh PHP processes that will properly reload translation catalogs.

For Shared Hosting​

  • Restart is not available on shared hosting
  • Contact your hosting provider to request a PHP process restart or environment reset
  • Some providers allow you to restart via cPanel → "Restart Services"

For Docker / Alternative Environments​

If you're running ChurchCRM in Docker or another non-traditional setup, localization support is not fully tested:

  • Consider using docker-compose up --force-recreate or restarting the container to clear PHP state
  • Alternatively, use a LAMP stack on a VPS for full localization support

Reporting the Issue​

If restarting does not resolve the problem:

  1. Confirm system locales are installed and visible in locale -a
  2. Restart your webserver (see above)
  3. Still not working? Ask in Discord with:
    • Your hosting environment (shared hosting, VPS, Docker, etc.)
    • Output of locale -a | grep <your_language>
    • Your webserver type and PHP version (php -v)

Logged Out After Being Idle​

Symptom​

You leave ChurchCRM open and idle, and the next click sends you back to the login page with no error message. It usually happens after about 24 minutes.

Why it happens​

ChurchCRM has its own idle limit, Session timeout (iSessionTimeout, default 3600 seconds, set under Admin → System Users → Settings → Quick Settings). PHP has a separate cleanup setting, session.gc_maxlifetime, which defaults to 1440 seconds (24 minutes). When PHP deletes the idle session file first, ChurchCRM sees no session and shows the login page.

ChurchCRM raises session.gc_maxlifetime to 7 days at runtime, which fixes this on most servers. It does not work where the server's own cleanup ignores the runtime value.

Fix by environment​

EnvironmentWhat to do
Docker imagesNothing. The image is already configured.
Debian / Ubuntu PHP packagesThe phpsessionclean cron job reads the value from php.ini and ignores the runtime override. Set session.gc_maxlifetime in php.ini to at least your Session timeout (for example session.gc_maxlifetime = 86400) and reload PHP or Apache.
Shared hosting without php.ini accessTry a .user.ini file in the ChurchCRM root containing session.gc_maxlifetime = 86400, or php_value session.gc_maxlifetime 86400 in .htaccess. Which one works depends on the host and PHP mode, so check the result after a day. If neither works, ask your host to raise it.

Rule out browser causes​

  • The browser is blocking cookies for your ChurchCRM address
  • The browser is set to clear cookies when it closes
  • A privacy extension is removing cookies

Can't find what you need? Ask in Discord, or open an issue on the ChurchCRM repository.