# Cannot get Cockpit CMS running on MacOS

**URL:** <https://discourse.getcockpit.com/t/cannot-get-cockpit-cms-running-on-macos/453>\
**Category:** Support\
**Created:** [December 11, 2018, 8:24pm UTC](https://discourse.getcockpit.com/t/cannot-get-cockpit-cms-running-on-macos/453 "2018-12-11T20:24:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elee49](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@elee49](https://discourse.getcockpit.com/u/elee49)\
**Post date:** [December 11, 2018, 8:24pm UTC](https://discourse.getcockpit.com/t/cannot-get-cockpit-cms-running-on-macos/453/1 "2018-12-11T20:24:04Z")

</div>

Hello,

I am currently trying to get Cockpit CMS working on my mac running High Sierra. However I am quite new to this so please let me know if I am doing something wrong.

- I have configured Apache to server content from a directory called Sites, and enabled PHP
- I was able to install cockpit-cms but when I try to go to the login page, I only get warnings. Here are the warnings:

**Warning** : strpos(): Empty needle in **/Users/eric/Sites/cockpit-master/bootstrap.php** on line **40**

**Warning** : session\_start(): Cannot send session cache limiter - headers already sent (output started at /Users/eric/Sites/cockpit-master/bootstrap.php:40) in **/Users/eric/Sites/cockpit-master/lib/Lime/App.php** on line **1523**

**Warning** : Cannot modify header information - headers already sent by (output started at /Users/eric/Sites/cockpit-master/bootstrap.php:40) in **/Users/eric/Sites/cockpit-master/lib/Lime/App.php** on line **404**

- I have enabled mod\_rewrite and I installed gd using brew (brew install gd)

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [December 12, 2018, 11:45am UTC](https://discourse.getcockpit.com/t/cannot-get-cockpit-cms-running-on-macos/453/2 "2018-12-12T11:45:37Z")

</div>

Is your `$_SERVER['DOCUMENT_ROOT']` an empty string? - Than add a `DocumentRoot` to your Apache config. I just guessed, because I never had to do this myself.

The first warning means, that the searched needle `$COCKPIT_DOCS_ROOT` is an empty string.

See: [https://github.com/agentejo/cockpit/blob/master/bootstrap.php#L37](https://github.com/agentejo/cockpit/blob/master/bootstrap.php#L37)

The both other warnings appear, because `session_start` must be called before any output - and there is already some output from warning 1.
