I'm sorry if this is a duplicate question, but after searching for 3 pages for "Dingo subprances" , I one, could not find the answer to my particular problem.
I am trying to run the tex file on pdflatex , but for some reasons it does not generate anything in the regulation, it is a regular Python works fine in scripts, though. I have left most of the code here, but this is basically a significant bit I'm running with mod_wsgi on apache2, and I suspect that this may be an Apache permissions related problem, though do not know in advance thanks.
subprocess testing = subprosec Log in ("/ home / sheepz / log.log", 'w'), log in to POPE (['pdftex', '/ home / wolf / test.Text'], shell = true, standout = subprances. Write (str (test.communicate ()) log.close () The contents of the file "log.log": ('This PDFEx, version 3.1415926-1.40.10 (Tex Live 2009 / Debian) \ n Restricted \\ writing 18 is enabled. \ N ** \ n! End of file at terminal ... why? \ N ', none) Edit: The solution to this problem is quite simple. I want to add it here, so everyone is having trouble with this, can find it. Actually using this configuration instruction involves running the site as a separate user instead of www-data. There is a minimum configuration here:
server name www.mysite.com server alias * mysite.com WSGIDaemon Process www.mysite.com user = joe group = joe home = / home / joe / wsgiprocess group Www.mysite.com In addition to this, the WSGIRestrictStdout off will be advised to add your code, because, as far as I think, mod_wsgi Stdout Thanks for using, Graham. Specify the full path for 'pdflatex' in the command
. The Apache user PATH may not appear in the same directory as your personal account. Apart from this, Apache goes as a special user, as long as you can say where you can use it. Suggest that you use mod_wsgi daemon mode and specify that the daemon process runs as you do and the Apache user is not. Read documentation on Mod_wsgi site like how to do it.
Comments
Post a Comment