On 5 September 2012 23:35, Qitong Hu <[email protected]> wrote: > Hi, > Thanks for your reply. > I do have tried to restart, stop/start Apache, it does not work.
The SIGKILL means that 'stop' of Apache is doing what it is meant to. It outputs that and force kills the child worker process when the child process does not shutdown in the required 3 seconds. The error opening the file is because something in your program is trying to open a file in a directory which the user that Apache runs as doesn't have permission to open. Read: http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Access_Rights_Of_Apache_User That or you aren't using absolute path names and it isn't opening the file in the location you think it is. Read: http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_Working_Directory > I'm following > http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/ > as a guide to deploy it. (Sorry that I'm a newbie, cannot tell if it is > embedded or daemon) Suggest you read the documentation on the mod_wsgi site. Being a newbie it would be much safer for you to use daemon mode. http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide#Delegation_To_Daemon_Process http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Embedded_Or_Daemon_Mode http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading Graham > On Wednesday, September 5, 2012 8:42:27 AM UTC-4, Graham Dumpleton wrote: >> >> Are you using embedded mode or daemon mode? >> >> Are you trying to restart or shutdown Apache when you get the error? >> >> Graham >> >> On 5 September 2012 22:17, Qitong Hu <[email protected]> wrote: >> > Hi all, >> > I am trying to use wsgi with django. >> > Now, when I use django's python manage.py runserver, it works fine. >> > But when I use apache directly, there is an error [error] child process >> > 11571 still did not exit, sending a SIGKILL and Error opening file for >> > reading: Permission denied >> > [Wed Sep 05 12:07:36 2012] [error] [client ****] Premature end of script >> > headers: django.wsgi >> > >> > In the python code, I think it is caused by gensim and nltk module >> > loading, >> > since if I comment that, the apache works fine. >> > Does any one have experienced similar situation and could help me here >> > to >> > solve this problem? >> > Thanks a lot >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "modwsgi" group. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msg/modwsgi/-/esNfoCEdx4QJ. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group at >> > http://groups.google.com/group/modwsgi?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/modwsgi/-/gXcM2vmUfdYJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
