Emoncms on Mac OSX

Is there a how to install emoncms on Mac OSx (Server) (El Capitan) somewhere?
I struggle with Apple’s characteristics of Apache and gave up.
Currently I’m using MAMP, but prefer using the native apache.
Any help is appreciated.

Thanks in advce,

Excuse the revival on an ancient topic! In case future users were searching, and my own sense of completion :wink: I’ll post details here.

(How to Set Up Apache in OS X 10.11 El Capitan | by John Foderaro | Medium)

I would follow setup guide for whichever version of OSX one has, for El Capitan I had to update PHP

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

Using Homebrew I installed gettext for php.

brew install gettext
brew link --force gettext

I then had to install mysql using the community .dmg package from the official website
and with cloning from github the emoncms master (of version of choice) it’s fairly straight forward from there. I did the following:

  • enter line
    export PATH="/usr/local/mysql/bin:$PATH"
    into terminal to point terminal to the mysql installation.
  • change mysql default root password
  • follow this.

This is not specific to mac:
Getting as far as the user user-registration page, I had an issue registering a new user.
Log into the emoncms mysql database and follow this.
("Error creating user" at the first register on a fresh installtion · Issue #791 · emoncms/emoncms · GitHub)
I also had to do make this change to the database:
ALTER TABLE users CHANGE preferences preferences TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;

To run the line
export PATH="/usr/local/mysql/bin:$PATH"
automatically on Terminal startup for easier use of mysql, open:
sudo nano ~/.bash_profile
and add it there.

Then open up Terminal preferences to issue a command at startup:

This from the emoncms Linux setup guide needs changing for mac:

Create data repositories for emoncms feed engines

sudo mkdir /var/lib/phpfiwa
sudo mkdir /var/lib/phpfina
sudo mkdir /var/lib/phptimeseries

sudo chown www-data:root /var/lib/phpfiwa
sudo chown www-data:root /var/lib/phpfina
sudo chown www-data:root /var/lib/phptimeseries

The syntax here is “sudo chown user:group /filename”
The user:group in use by the server can be found entering
cat /etc/apache2/httpd.conf
in Terminal.

I needed to change the user and group to _www:_www