# Raw Post Data - Error on Shared Hostgator

**URL:** <https://forum.mautic.org/t/raw-post-data-error-on-shared-hostgator/6765>\
**Category:** Product Support\
**Created:** [December 6, 2016, 7:42am UTC](https://forum.mautic.org/t/raw-post-data-error-on-shared-hostgator/6765 "2016-12-06T07:42:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnarvaez](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jnarvaez](https://forum.mautic.org/u/jnarvaez)\
**Post date:** [December 6, 2016, 7:42am UTC](https://forum.mautic.org/t/raw-post-data-error-on-shared-hostgator/6765/1 "2016-12-06T07:42:51Z")

</div>

For a small project I had to switch servers and was starting to use Mautic. On the old server I was able to set it up just fine (kudos to [the proper cron job explanation](https://www.mautic.org/community/index.php/580-mautic-installed-on-domain-subfolder-correct-cron-jobs-code/0) btw!). But in this one I’m facing a major problem:

Code:

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.

  
I am installing it on a subdomain, just like it was on the former server.  
And currently, the .htaccess file was generated by the Mautic Installer has got this:

Code:

 # @link https://github.com/mautic/mautic/issues/1504 php\_value always\_populate\_raw\_post\_data -1

  
And the php.ini has got this lines as well:

Code:

; Always populate the $HTTP\_RAW\_POST\_DATA variable. ;always\_populate\_raw\_post\_data = -1

  
I've already contacted Hostgator support to see if there was something that was not well placed. And they told me that everything seemed to be fine. The php.ini is within the mautic directory. And I've waited a couple of days, just in case I didn't catch the server restart/update they do daily. But still no luck.  
  
Any idea what can I do?  
  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jnarvaez](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jnarvaez](https://forum.mautic.org/u/jnarvaez)\
**Post date:** [December 6, 2016, 7:42am UTC](https://forum.mautic.org/t/raw-post-data-error-on-shared-hostgator/6765/2 "2016-12-06T07:42:51Z")

</div>

For a small project I had to switch servers and was starting to use Mautic. On the old server I was able to set it up just fine (kudos to [the proper cron job explanation](https://www.mautic.org/community/index.php/580-mautic-installed-on-domain-subfolder-correct-cron-jobs-code/0) btw!). But in this one I’m facing a major problem: `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.`

I am installing it on a subdomain, just like it was on the former server.  
And currently, the .htaccess file was generated by the Mautic Installer has got this: `<IfModule mod_php5.c>
    # @link https://github.com/mautic/mautic/issues/1504
    php_value always_populate_raw_post_data -1
</IfModule>`

And the php.ini has got this lines as well: `; Always populate the $HTTP_RAW_POST_DATA variable.
;always_populate_raw_post_data = -1`

I’ve already contacted Hostgator support to see if there was something that was not well placed. And they told me that everything seemed to be fine. The php.ini is within the mautic directory. And I’ve waited a couple of days, just in case I didn’t catch the server restart/update they do daily. But still no luck.

Any idea what can I do?

Thanks in advance.

---

<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:** [December 7, 2016, 1:52pm UTC](https://forum.mautic.org/t/raw-post-data-error-on-shared-hostgator/6765/3 "2016-12-07T13:52:43Z")

</div>

Remove that App/cache folder and try again.

---

<div class="post-metadata">

**Author:** ![jnarvaez](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jnarvaez](https://forum.mautic.org/u/jnarvaez)\
**Post date:** [December 7, 2016, 4:04pm UTC](https://forum.mautic.org/t/raw-post-data-error-on-shared-hostgator/6765/4 "2016-12-07T16:04:18Z")

</div>

After a few messages on Slack, the error was that the php.ini was not well configured.

`; Always populate the $HTTP_RAW_POST_DATA variable.
always_populate_raw_post_data = -1`

That’s the correct one.

Thanks @ninjoan
