Re: [NTG-context] Invoking ConTeXt from inside php web appliction
Ah, we were thinking along the same lines! ;) I had just initiated a local install inside .../www/public when I received your email, which is in fact the DocumentRoot for this website, and did: $ chmod -R www-data:www-data context So ConTeXt is installed in .../www/public/context. Now I can source: $ . .../www/public/context/tex/setuptex .../www/public/context/tex and it all works. Many thanks, Luigi, for all of your suggestions. On 17Jun16, luigi scarso wrote:
(off list)
On Fri, Jun 17, 2016 at 3:39 PM, Pavneet Arora
wrote: That is really the crux of the issue, since www-data does *not* have a login shell. It is used only by apache.
Can setuptex be made to point to the home directory explicitly where the website is housed, e.g., '/home/wwwuser' with user 'wwwuser'?
Is it an option to make a context installation only for apache ? I mean a context that is owned by www-data (if this is the apache user), into a folder readable by apache.
-- luigi
-- Pavneet Arora m: +1 (647) 406-6843 Waroc Informatik t: +1 (416) 937-9276
Am 2016-06-17 um 20:57 schrieb Pavneet Arora
$ chmod -R www-data:www-data context
So ConTeXt is installed in .../www/public/context.
Now I can source:
$ . .../www/public/context/tex/setuptex .../www/public/context/tex
and it all works.
Please document this in the wiki (I had similar problems, should have done it at that time…) E.g. "Webserver_Setup", linked from http://wiki.contextgarden.net/ConTeXt_Standalone#Unix-like_platforms_.28Linu... I’ll add my setup behind a Django/Nginx installation. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) GPG Key ID 1C9B22FD
participants (2)
-
Henning Hraban Ramm
-
Pavneet Arora