Problems when installing Mautic

Your software
My Mautic version is: 5.02
My PHP version is: 8.0
My Database type and version is: mysql

Your problem
My problem is:
I follow the procedure with no problem until I put the name and password for the first user of Mautic (step 2).

These errors are showing in the log:

Uh oh! I think I broke it. If I do it again, please report me to the system administrator!

Anyone has faced this problem?

What you shared isn’t the log output.

Go to var/logs and share these.

I am having the EXACT same issue and I am pulling my hair out. I have tried reinstalling 5 times.

var/log file contents:

[2024-02-22T00:12:08.964417+00:00] mautic.WARNING: PHP Warning - openssl_csr_sign(): X.509 Certificate Signing Request cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 77 {“hostname”:“WIN5159”,“pid”:30828}
[2024-02-22T00:12:08.969385+00:00] mautic.WARNING: PHP Warning - openssl_x509_export_to_file(): X.509 Certificate cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 79 {“hostname”:“WIN5159”,“pid”:30828}
[2024-02-22T00:12:08.970375+00:00] mautic.WARNING: PHP Warning - openssl_pkey_export_to_file(): Cannot get key from parameter 1 - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 80 {“hostname”:“WIN5159”,“pid”:30828}
[2024-02-22T00:12:08.973567+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.crt): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 83 {“hostname”:“WIN5159”,“pid”:30828}
[2024-02-22T00:12:08.974944+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.key): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 84 {“hostname”:“WIN5159”,“pid”:30828}
[2024-02-22T00:12:09.121605+00:00] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Invalid PEM encoded certificate” at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php line 73 {“exception”:“[object] (InvalidArgumentException(code: 0): Invalid PEM encoded certificate at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php:73)”} {“hostname”:“WIN5159”,“pid”:30828}
[2024-02-22T00:20:56.845155+00:00] mautic.WARNING: PHP Warning - openssl_csr_sign(): X.509 Certificate Signing Request cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 77 {“hostname”:“WIN5159”,“pid”:53072}
[2024-02-22T00:20:56.848446+00:00] mautic.WARNING: PHP Warning - openssl_x509_export_to_file(): X.509 Certificate cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 79 {“hostname”:“WIN5159”,“pid”:53072}
[2024-02-22T00:20:56.849296+00:00] mautic.WARNING: PHP Warning - openssl_pkey_export_to_file(): Cannot get key from parameter 1 - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 80 {“hostname”:“WIN5159”,“pid”:53072}
[2024-02-22T00:20:56.850587+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.crt): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 83 {“hostname”:“WIN5159”,“pid”:53072}
[2024-02-22T00:20:56.851876+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.key): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 84 {“hostname”:“WIN5159”,“pid”:53072}
[2024-02-22T00:20:56.862629+00:00] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Invalid PEM encoded certificate” at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php line 73 {“exception”:“[object] (InvalidArgumentException(code: 0): Invalid PEM encoded certificate at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php:73)”} {“hostname”:“WIN5159”,“pid”:53072}
[2024-02-22T00:30:04.926561+00:00] mautic.WARNING: PHP Warning - openssl_csr_sign(): X.509 Certificate Signing Request cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 77 {“hostname”:“WIN5159”,“pid”:17304}
[2024-02-22T00:30:04.928983+00:00] mautic.WARNING: PHP Warning - openssl_x509_export_to_file(): X.509 Certificate cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 79 {“hostname”:“WIN5159”,“pid”:17304}
[2024-02-22T00:30:04.929524+00:00] mautic.WARNING: PHP Warning - openssl_pkey_export_to_file(): Cannot get key from parameter 1 - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 80 {“hostname”:“WIN5159”,“pid”:17304}
[2024-02-22T00:30:04.930512+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.crt): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 83 {“hostname”:“WIN5159”,“pid”:17304}
[2024-02-22T00:30:04.931329+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.key): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 84 {“hostname”:“WIN5159”,“pid”:17304}
[2024-02-22T00:30:04.939306+00:00] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Invalid PEM encoded certificate” at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php line 73 {“exception”:“[object] (InvalidArgumentException(code: 0): Invalid PEM encoded certificate at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php:73)”} {“hostname”:“WIN5159”,“pid”:17304}
[2024-02-22T00:43:50.062406+00:00] mautic.WARNING: PHP Warning - openssl_csr_sign(): X.509 Certificate Signing Request cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 77 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:43:50.065902+00:00] mautic.WARNING: PHP Warning - openssl_x509_export_to_file(): X.509 Certificate cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 79 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:43:50.066796+00:00] mautic.WARNING: PHP Warning - openssl_pkey_export_to_file(): Cannot get key from parameter 1 - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 80 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:43:50.068161+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.crt): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 83 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:43:50.069525+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.key): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 84 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:43:50.080142+00:00] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Invalid PEM encoded certificate” at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php line 73 {“exception”:“[object] (InvalidArgumentException(code: 0): Invalid PEM encoded certificate at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php:73)”} {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:44:03.569423+00:00] mautic.WARNING: PHP Warning - openssl_csr_sign(): X.509 Certificate Signing Request cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 77 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:44:03.572216+00:00] mautic.WARNING: PHP Warning - openssl_x509_export_to_file(): X.509 Certificate cannot be retrieved - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 79 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:44:03.573160+00:00] mautic.WARNING: PHP Warning - openssl_pkey_export_to_file(): Cannot get key from parameter 1 - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 80 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:44:03.574580+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.crt): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 83 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:44:03.575980+00:00] mautic.WARNING: PHP Warning - file_get_contents(H:\root\home\girimonti-001\www\mautic/var/cache/saml_default.key): Failed to open stream: No such file or directory - in file H:\root\home\girimonti-001\www\mautic\app\bundles\UserBundle\Security\SAML\Store\CredentialsStore.php - at line 84 {“hostname”:“WIN5159”,“pid”:9348}
[2024-02-22T00:44:03.577140+00:00] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Invalid PEM encoded certificate” at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php line 73 {“exception”:“[object] (InvalidArgumentException(code: 0): Invalid PEM encoded certificate at H:\root\home\girimonti-001\www\mautic\vendor\litesaml\lightsaml\src\Credential\X509Certificate.php:73)”} {“hostname”:“WIN5159”,“pid”:9348}

I gave up of trying to instal Mautic 5.02.
I installed an early version and it is properly functioning.

Where can I find the latest v4 version?

I really don’t remember where I got it, but probably in one Forum Topic.
I installed the 4.0.0 version.

I was able to find v4.4. I installed it without a single issue.

Obviously, I would prefer to use v5.0.3, but the difficulties experienced with the installation of this version make it just too hard. I have my hosting provider attempting to install it themselves but they are having the exact same problem.

Not the best experience with v5 thus far. Perhaps with 95% of Mautic users LAMP-based, they really don’t care about the IIS issues…if it works on Linux, that’s good enough.

The particular issue we are reporting is actually the single largest issue I have seen on the forums. Funny. You would think it would have had more attention than it has. Most of the reported issues don’t even get a reply at all. Is it just me, or does something seem a bit off about this?

According to the logs provided, the issue is about a certificate misconfiguration:
CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Invalid PEM encoded certificate”

And yes, support on Linux is much better given the fact that most are using Linux over Microsoft.

Had similar OpenSSL warnings reported after upgrading to v5.0.3. After installing the latest OpenSSL for Windows they seem to have gone away.

I’m having the same issue but this is the error:

[2024-04-18T18:08:56.246098+00:00] mautic.CRITICAL: Uncaught PHP Exception Error: “Call to a member function getMessage() on string” at /var/www/mautic/app/bundles/UserBundle/Controller/SecurityController.php line 88 {“exception”:“[object] (Error(code: 0): Call to a member function getMessage() on string at /var/www/mautic/app/bundles/UserBundle/Controller/SecurityController.php:88)”} {“hostname”:“dlhc”,“pid”:139354}

Nothing else.