Running Symfony under FileMaker server on OS X

CWP, FileMaker, Symfony

Running Symfony under FileMaker server on OS X

We’ve been doing increasingly more work recently using Symfony as the framework for our CWP solutions – any new projects we start are definitely being built that way (to make this simple we’ve been working on a Doctrine Driver for FileMaker which may be of interest to you).

One of the things that needs to be taken care of when testing or deploying a Symfony application are permissions on the content of the /var folder. The Symfony docs provide a mechanism to determine the user which your webserver is running as:

HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1)

Which is all well and good when using Apache or Nginx, but not with the FM-version of Apache.

The secret – you need to have the /var folder (and its contents) owned by your user account and belonging to the group fmsadmin, and with the extended permissions (as per the docs linked above) applied – so:

sudo chmod +a "fmsadmin allow delete,write,append,file_inherit,directory_inherit" var

Hope this helps someone out!

Leave A Comment

*
*