# Problems when installing Mautic

**URL:** <https://forum.mautic.org/t/problems-when-installing-mautic/30763>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [February 2, 2024, 3:51pm UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763 "2024-02-02T15:51:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![franciscopaiva](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@franciscopaiva](https://forum.mautic.org/u/franciscopaiva)\
**Post date:** [February 2, 2024, 3:51pm UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/1 "2024-02-02T15:51:31Z")

</div>

**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?

---

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [February 8, 2024, 11:02am UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/2 "2024-02-08T11:02:33Z")

</div>

What you shared isn’t the log output.

Go to var/logs and share these.

---

<div class="post-metadata">

**Author:** ![mino827](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mino827](https://forum.mautic.org/u/mino827)\
**Post date:** [February 22, 2024, 1:01am UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/3 "2024-02-22T01:01:29Z")

</div>

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}

---

<div class="post-metadata">

**Author:** ![franciscopaiva](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@franciscopaiva](https://forum.mautic.org/u/franciscopaiva)\
**Post date:** [February 22, 2024, 1:38am UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/4 "2024-02-22T01:38:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mino827](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mino827](https://forum.mautic.org/u/mino827)\
**Post date:** [February 22, 2024, 1:39am UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/5 "2024-02-22T01:39:57Z")

</div>

Where can I find the latest v4 version?

---

<div class="post-metadata">

**Author:** ![franciscopaiva](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@franciscopaiva](https://forum.mautic.org/u/franciscopaiva)\
**Post date:** [February 22, 2024, 2:32am UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/6 "2024-02-22T02:32:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mino827](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mino827](https://forum.mautic.org/u/mino827)\
**Post date:** [February 22, 2024, 6:49am UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/7 "2024-02-22T06:49:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [February 25, 2024, 5:37pm UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/8 "2024-02-25T17:37:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![smguser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/smguser/32/1394_2.png) [@smguser](https://forum.mautic.org/u/smguser)\
**Post date:** [April 10, 2024, 8:38pm UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/9 "2024-04-10T20:38:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![psalz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/psalz/32/7639_2.png) [@psalz](https://forum.mautic.org/u/psalz)\
**Post date:** [April 18, 2024, 6:11pm UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/10 "2024-04-18T18:11:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![avori](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/avori/32/8000_2.png) [@avori](https://forum.mautic.org/u/avori)\
**Post date:** [November 10, 2024, 7:16pm UTC](https://forum.mautic.org/t/problems-when-installing-mautic/30763/11 "2024-11-10T19:16:40Z")

</div>

What’s your environment setup? I’m using laragon on my D: drive. It comes with OpenSSL pre-installed, and I am getting this same error. Just trying to figure out a solution here.
