# Your server does not meet the minimum PHP requirements error

**URL:** <https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091>\
**Category:** Product Support\
**Created:** [August 28, 2016, 2:41pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091 "2016-08-28T14:41:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fgarcia](https://avatars.discourse-cdn.com/v4/letter/f/a5b964/32.png) [@fgarcia](https://forum.mautic.org/u/fgarcia)\
**Post date:** [August 28, 2016, 2:41pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/1 "2016-08-28T14:41:19Z")

</div>

Imposible to start with Mautic.  
  
  
  
I use ubuntu 14.04 and vestacp updated and working well.  
  
  
  
Mautic gave me this message prior to installation:  
  
  
  
Your server does not meet the minimum PHP requirements. Mautic requires PHP version 5.6.19 while your server has 5.5.9-1ubuntu4.19. Please contact your host to update your PHP installation.  
  
  
  
Yust starting and I have a problem without solution.

---

<div class="post-metadata">

**Author:** ![fgarcia](https://avatars.discourse-cdn.com/v4/letter/f/a5b964/32.png) [@fgarcia](https://forum.mautic.org/u/fgarcia)\
**Post date:** [August 28, 2016, 2:41pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/2 "2016-08-28T14:41:19Z")

</div>

Imposible to start with Mautic.

I use ubuntu 14.04 and vestacp updated and working well.

Mautic gave me this message prior to installation:

Your server does not meet the minimum PHP requirements. Mautic requires PHP version 5.6.19 while your server has 5.5.9-1ubuntu4.19. Please contact your host to update your PHP installation.

Yust starting and I have a problem without solution.

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 23, 2017, 3:24am UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/3 "2017-02-23T03:24:47Z")

</div>

I updated on my server and cleared the cache and still nothing.  
Anything you recommend I do?

Thanks

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 23, 2017, 4:09am UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/4 "2017-02-23T04:09:11Z")

</div>

from where type php -v?

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 23, 2017, 4:14am UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/5 "2017-02-23T04:14:14Z")

</div>

## We got following error while access [http://email.solidnnn.com/](http://email.solidnnn.com/)

[17-Feb-2017 21:59:32 UTC] PHP Fatal error: Class ‘LightSamlSymfonyBridgeBundleLightSamlSymfonyBridgeBundle’ not found in /home/investsolidcow/email.solidnnn.com/app/AppKernel.php on line 179

---

<div class="post-metadata">

**Author:** ![mausm](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mausm](https://forum.mautic.org/u/mausm)\
**Post date:** [February 24, 2017, 6:47pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/6 "2017-02-24T18:47:21Z")

</div>

## [quote=20473:@gamzehrealty]We got following error while access [http://email.solidnnn.com/](http://email.solidnnn.com/)

[17-Feb-2017 21:59:32 UTC] PHP Fatal error: Class ‘LightSamlSymfonyBridgeBundleLightSamlSymfonyBridgeBundle’ not found in /home/investsolidcow/email.solidnnn.com/app/AppKernel.php on line 179[/quote]  
Download composer.json from Mautic’s github, replace it with the one in your Mautic root.

php -v from the command line may be telling you what version your CLI is running. It is possible for your CLI to run different version of php than your web version.

In your mautic directory, add a phpinfotest.php file and fill it with:

```auto
<?php phpinfo();?>
```

Navigate to that file in your browser, it will tell you what version the http server is running.

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 24, 2017, 7:31pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/7 "2017-02-24T19:31:05Z")

</div>

Thank you so so so much

Are you talking about [https://github.com/mautic/MauticGeneratorBundle/blob/master/composer.json](https://github.com/mautic/MauticGeneratorBundle/blob/master/composer.json)  
Where do I replace the code? Where in the root is it?

I can email you copy of my mautic. What’s your email?

Thanks

---

<div class="post-metadata">

**Author:** ![mausm](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mausm](https://forum.mautic.org/u/mausm)\
**Post date:** [February 24, 2017, 9:15pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/8 "2017-02-24T21:15:00Z")

</div>

[https://github.com/mautic/mautic](https://github.com/mautic/mautic) the composer.json file last updated Feb 1, 2017 is what you’re looking for.

The root of your mautic is the webserver where your mautic installation is held, you’ll see composer.json there. If you don’t you aren’t in the root of mautic.

Copy/paste (or download that file to your desktop, upload it to the main directory of your mautic (you will see an existing composer.json there, rename/backup/delete it)

Make sure the composer.json you upload from your desktop is not composer.json.txt once its on your server. If it is, simply rename it to composer.json

Run composer again via CLI to include these missing bundles.

```auto
composer install
```

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [February 24, 2017, 9:44pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/9 "2017-02-24T21:44:05Z")

</div>

from where you download Mautic?

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 24, 2017, 10:21pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/10 "2017-02-24T22:21:30Z")

</div>

The composer.json is not in the root.  
I used software from hosting named soft something to install

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 24, 2017, 10:24pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/11 "2017-02-24T22:24:18Z")

</div>

softaculus apps installer

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 24, 2017, 10:27pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/12 "2017-02-24T22:27:07Z")

</div>

No change. Do you want me to email the files so you can look at?

---

<div class="post-metadata">

**Author:** ![mausm](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mausm](https://forum.mautic.org/u/mausm)\
**Post date:** [February 25, 2017, 4:04am UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/13 "2017-02-25T04:04:01Z")

</div>

> [@20569:@gamzehrealty](#):
>
> No change. Do you want me to email the files so you can look at?

No, if you used an installer you’re probably quite out of date, it’s best to update (or start fresh).

Those app installers are never good to use. I’ve never seen one that had the latest versions of software - all stuff that was grossly out of date and undoubtedly riddled with security holes.

Its always better to install yourself, the extra time it takes also allows you to become more familiar with it, so when something breaks it’ll be that much easier to track down.

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 26, 2017, 12:13am UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/14 "2017-02-26T00:13:01Z")

</div>

Thank you so much for all your help.

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 26, 2017, 5:59am UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/15 "2017-02-26T05:59:18Z")

</div>

I installed a new mautic. Now I get this error

We have detected 1 major problems. You must fix them before continuing:

PHP version 5.6.x requires the PHP configuration directive always\_populate\_raw\_post\_data be set to -1. This is handled automatically by the .htaccess file when using Apache and mod\_php5, but must be set manually in php.ini for other server configurations. Please add ‘always\_populate\_raw\_post\_data = -1’ to your php.ini and restart your web server.

[26-Feb-2017 05:45:44 UTC] PHP Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable (T\_VARIABLE) in /home/investsolidcow/email.solidnnn.com/app/bundles/CoreBundle/ErrorHandler/ErrorHandler.php on line 582

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 26, 2017, 11:33pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/16 "2017-02-26T23:33:27Z")

</div>

Thank you so much for you help but I can’t find php.ini files . Do you know where is located at?

Also should i use PHP 5.7 or php 5.6 is okay

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 27, 2017, 12:12am UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/17 "2017-02-27T00:12:34Z")

</div>

I don’t know how to do the command line.  
I am connected through ftp file. What do i do to find the php.ini file to change it to -1  
I did the command in my computer nothing came up.

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 27, 2017, 12:16pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/18 "2017-02-27T12:16:56Z")

</div>

it looks like its never ending issue even with new install.

I asked my hosting to assign it to -1 and they just send me an email.  
Now I get this error  
Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable (T\_VARIABLE) in /home/investsolidcow/email.solidnnn.com/app/bundles/CoreBundle/ErrorHandler/ErrorHandler.php on line 582

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 27, 2017, 1:03pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/19 "2017-02-27T13:03:41Z")

</div>

I have php 5.6 installed. I updated it 5.7 and get four error message now.

Mautic is unable to write your configuration file to the appropriate location. Please check your filesystem permissions to ensure the following path is writable: /home/investsolidcow/email.solidnnn.com/app/config/local.php.  
The /home/investsolidcow/email.solidnnn.com/app/cache directory must be writable. Change the permissions of the /home/investsolidcow/email.solidnnn.com/app/cache directory so that the web server can write into it.  
The /home/investsolidcow/email.solidnnn.com/app/logs directory must be writable. Change the permissions of the /home/investsolidcow/email.solidnnn.com/app/logs directory so that the web server can write into it.  
Install and enable the fileinfo extension.

---

<div class="post-metadata">

**Author:** ![gamzehrealty](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@gamzehrealty](https://forum.mautic.org/u/gamzehrealty)\
**Post date:** [February 27, 2017, 1:30pm UTC](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091/20 "2017-02-27T13:30:41Z")

</div>

I have three options in my hosting 5.5 5.6 and 5.7

I think they did not restart the web server.

PHP version 5.6.x requires the PHP configuration directive always\_populate\_raw\_post\_data be set to -1. This is handled automatically by the .htaccess file when using Apache and mod\_php5, but must be set manually in php.ini for other server configurations. Please add ‘always\_populate\_raw\_post\_data = -1’ to your php.ini and restart your web server.

[Next page](https://forum.mautic.org/t/your-server-does-not-meet-the-minimum-php-requirements-error/5091.md?page=2)
