# Error message after changing PHP mode

**URL:** <https://forum.mautic.org/t/error-message-after-changing-php-mode/1650>\
**Category:** Product Support\
**Created:** [March 12, 2015, 7:47am UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650 "2015-03-12T07:47:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsieber](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@rsieber](https://forum.mautic.org/u/rsieber)\
**Post date:** [March 12, 2015, 7:47am UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650/1 "2015-03-12T07:47:24Z")

</div>

Hi Alan,  
  
  
  
congratulations for release 1.0!!  
  
  
  
I recently changed the php mode of my server from CGI to Apache-Module. Afterwards I changed the owner of all mautic files and directory to www-data which is the php user. Now I see the follwoing error message in the admin panel and other erros in my forms:  
  
  
  
Warning: curl\_setopt\_array(): CURLOPT\_FOLLOWLOCATION cannot be activated when an open\_basedir is set in /www/htdocs/rsieber/mautic/vendor/joomla/http/src/Transport/Curl.php on line 155  
  
  
  
Warning: curl\_setopt\_array(): CURLOPT\_FOLLOWLOCATION cannot be activated when an open\_basedir is set in /www/htdocs/rsieber/mautic/vendor/joomla/http/src/Transport/Curl.php on line 155  
  
  
  
Also the update seems not to work anymore.  
  
  
  
Robert

---

<div class="post-metadata">

**Author:** ![rsieber](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@rsieber](https://forum.mautic.org/u/rsieber)\
**Post date:** [March 12, 2015, 7:47am UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650/2 "2015-03-12T07:47:24Z")

</div>

Hi Alan,

congratulations for release 1.0!!

I recently changed the php mode of my server from CGI to Apache-Module. Afterwards I changed the owner of all mautic files and directory to www-data which is the php user. Now I see the follwoing error message in the admin panel and other erros in my forms:

Warning: curl\_setopt\_array(): CURLOPT\_FOLLOWLOCATION cannot be activated when an open\_basedir is set in /www/htdocs/rsieber/mautic/vendor/joomla/http/src/Transport/Curl.php on line 155

Warning: curl\_setopt\_array(): CURLOPT\_FOLLOWLOCATION cannot be activated when an open\_basedir is set in /www/htdocs/rsieber/mautic/vendor/joomla/http/src/Transport/Curl.php on line 155

Also the update seems not to work anymore.

Robert

---

<div class="post-metadata">

**Author:** ![dbhurley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dbhurley/32/2_2.png) [@dbhurley](https://forum.mautic.org/u/dbhurley)\
**Post date:** [March 12, 2015, 8:28am UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650/3 "2015-03-12T08:28:01Z")

</div>

I believe this is an issue with the settings of PHP and safe mode. I thought it was resolved in PHP 5.4 and newer but perhaps I am mistaken. An alternative may be a problem with your hosting provider setting the open\_basedir.

I believe these warnings will also keep the update from working properly via the AJAX call. I’ll verify this as well and update this thread. Please provide any relevant hosting provider information (e.g. version of PHP, status of open\_basedir and safe\_mode)

Thanks!  
David

---

<div class="post-metadata">

**Author:** ![rsieber](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@rsieber](https://forum.mautic.org/u/rsieber)\
**Post date:** [March 12, 2015, 12:16pm UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650/4 "2015-03-12T12:16:40Z")

</div>

David,

thanks for getting back to me!

I use PHP Version 5.5 - as cgi it was 5.6

[https://different-thinking.de/infophp.php](https://different-thinking.de/infophp.php)

Robert

---

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [April 13, 2015, 9:50am UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650/5 "2015-04-13T09:50:00Z")

</div>

I’m running into the same thing with mautic 1.0.2 on PHP 5.5.23 (fast-cgi)

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [April 13, 2015, 9:43pm UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650/6 "2015-04-13T21:43:49Z")

</div>

@menolo, can you report this at [https://github.com/mautic/mautic/issues](https://github.com/mautic/mautic/issues)?

Thanks,  
Alan

---

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [April 14, 2015, 5:32am UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650/7 "2015-04-14T05:32:56Z")

</div>

Hey Alan,

Done. See [https://github.com/mautic/mautic/issues/299](https://github.com/mautic/mautic/issues/299)

Wim

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 11:00pm UTC](https://forum.mautic.org/t/error-message-after-changing-php-mode/1650/8 "2020-02-02T23:00:19Z")

</div>

Closed on February 2, 2020, 11:00pm UTC


