Friday, May 27, 2022

[help wanted] productivity/monica initial setup needs some handling

Hi,

  I found that the port for monica needed a symlink
`/var/www/var/www/monica -> /var/www/monica` (which I had setup on my
server but forgot to add to PLIST).

The reason this is needed is because the initial setup for monica needs
to run the command `cd /var/www/monica && php-8.0 artisan
setup:production`, which sets up a few configuration files which
hardcode paths to locations for storage and cache and things. Now these
locations are absolute, so they look like `/var/www/monica/xxx/yyy`,
which php-fpm can't find when running in the chroot. The simplest
solution is the one mentioned above, to create a symlink, and things
work perfectly. I am not super sure how to replicate this inside the
Makefile for the port.

I'm thinking something like

ln -s ${PREFIX}/www/${TRUEPREFIX}/www/monica -> ../../monica

But I don't know how many levels that TRUEPREFIX can have.
Maybe just use /var for PREFIX instead of LOCALSTATEDIR and make things
easier ?

Any suggestions?

Aisha

No comments:

Post a Comment