Invoking ConTeXt from inside php web appliction
Dear Hraban, Sorry that this has taken me so long. The report card application has been deployed, and although I am still going through and resolving minor bugs, it is very much in use (350 students leaving on Tu who already have their foundation work marked and commented within the system; output via ConTeXt). Anyway, I have updated the Wiki, but am unsure if I missed anything. So can everyone have a look and let me know: http://wiki.contextgarden.net/ConTeXt_Standalone#Apache_webserver_installati... Regards.
Henning Hraban Ramm texml at fiee.net Fri Jun 17 20:49:11 CEST 2016
Please document this in the wiki (I had similar problems, should have done it at that time )
-- Pavneet Arora m: 647.406.6843 Waroc Informatik w: 416.937.9276
Am 2016-07-09 um 17:45 schrieb Pavneet Arora
Sorry that this has taken me so long. The report card application has been deployed, and although I am still going through and resolving minor bugs, it is very much in use (350 students leaving on Tu who already have their foundation work marked and commented within the system; output via ConTeXt).
Nice to hear about your success! In my case, my customer, a publisher of several special interest magazines, uploads lists of customers and their ad bookings into my web app and gets nicely TeXed voucher shipping documents.
Anyway, I have updated the Wiki, but am unsure if I missed anything. So can everyone have a look and let me know: http://wiki.contextgarden.net/ConTeXt_Standalone#Apache_webserver_installati...
I’m quite sure it’s a bad idea to install ConTeXt (or anything like that) in a public, i.e. web-accessible, directory! Even if I can’t imagine an attack via accessing files from the ConTeXt tree, experienced attackers might. I don’t use PHP any more, but I’m quite sure there’s a better way. I run ConTeXt from a Django (Python) web app behind Nginx, and there only static files (i.e. images, CSS etc.) are directly accessible, and I can call a system-wide installed ConTeXt owned by root (i.e. nobody else can change it). Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD
I believe that public in this case refers to public assets such as CSS, js, etc., where one puts custom files rather than publicly accessible, e.g., wp-uploads for WordPress. In the case of most frameworks, URL access is limited to specified routes only which point to controller methods. ConTeXt, when installed in this manner, can only be run as www-data:www-data, i.e., by httpd. I wasn’t able to get it work using any of the other suggestions. Is there another template you can suggest? Pavneet Arora m: +1 (647) 406-6843 e: pavneet_arora@waroc.com From: Henning Hraban Ramm
participants (2)
-
Henning Hraban Ramm
-
Pavneet Arora