mod-wsgi

Apache stops processing requests (mod_wsgi?)

不羁的心 提交于 2019-12-02 15:01:19
问题 At some point my site, running on Apache2 with mod_wsgi just stops processing requests . The connection to server is maintained and client waits for responce, but it never is returned by apache. The server at this time is at 0% CPU , and nothing is processing. I think, apache just sends request to queue and never gets them out of there. When I perform apache2ctl graceful the problem does not resolve. Only after apache2ctl restart . My site is a 4 instance wsgi application of Pyramid and 2

Django memory usage going up with every request

巧了我就是萌 提交于 2019-12-02 14:10:44
I moved my first Django project from DjangoEurope to Webfaction, and that started an issue looking like a memory leak. With every single request memory usage of the server process goes up about 500kb. It never goes down. This goes on until Webfaction kills it for using too much memory. I can clearly see this when I refresh the Django's admin interface in my browser (although this happens with every single page, not only with admin interface - I though admin interface would be a nice test case, because there is no my code directly there). With every browser reload the memory usage goes up

My Apache WSGI Flask web-app cannot import its internal python module

一个人想着一个人 提交于 2019-12-02 12:54:30
问题 I have developed Flask-Web-App which runs fine if I use python command-line directly. However, when I deployed to Apache2 with mod-wsgi it can't import its internal modules. I have read all the relevant posts similar to mine but couldn't figure out the issue yet. Firstly, I tried all below: 1 - Made sure all files and sub-folder under the application folder have rwx permission for www-data ("the Apache2 service account"). 2 - Added the module path to the Apache config file using:

WSGI ( is caching mysql result until script code is modified ) code included. ( want to stop this caching )

こ雲淡風輕ζ 提交于 2019-12-02 12:01:36
This is the basic wsgi code. import MySQLdb conn = MySQLdb.connect (host = "localhost", user = "root", passwd = "", db = "a") cursor = conn.cursor () cursor.execute ("select * from `01` where id in (1,2) limit 2") rows = cursor.fetchall() cursor.close () conn.close () test = rows[0][1] test2 = rows[1][1] def application(environ, start_response): start_response('200 OK', [('content-type', 'text/html')]) yield test the problem here is the mysql result is being cached.. it is not mysql caching it.. i suspect it is this script doing it. i would like a solution to stop this unwanted caching.

How to deploy django server into production environment without a full source code?

六眼飞鱼酱① 提交于 2019-12-02 11:50:24
问题 I am still a newbie to Python and Django. I am developing a application using Django which will eventually go to the production server. It's a customized web application for the client. After doing some research, I found out Apache with mod_wsgi is the best option for Django deployment. I just have to copy and paste the code into the production server and the application is accessible. But what if I don't want to give the whole source code and give only the executable application to the

Apache stops processing requests (mod_wsgi?)

好久不见. 提交于 2019-12-02 10:08:43
At some point my site, running on Apache2 with mod_wsgi just stops processing requests . The connection to server is maintained and client waits for responce, but it never is returned by apache. The server at this time is at 0% CPU , and nothing is processing. I think, apache just sends request to queue and never gets them out of there. When I perform apache2ctl graceful the problem does not resolve. Only after apache2ctl restart . My site is a 4 instance wsgi application of Pyramid and 2 instances of Zope 3. It is running normaly and does not have speed problems, that I am aware of. versions:

Django application hosted on Ubuntu VM with Apache and mod_wsgi not showing up

徘徊边缘 提交于 2019-12-02 09:50:56
问题 I have uploaded my first Django Application but I am having trouble accessing it. The application is called survey and has been uploaded onto an Ubunto VM running Apache with mod_wsgi . My VM has been made public using a Proxy pass at http://phaedrus.scss.tcd.ie/bias_experiment Per the urls.py file below, the survey should be available at http://phaedrus.scss.tcd.ie/bias_experiment/surveythree/ When I access it locally it works at http://127.0.0.1:8000/surveythree/ I have posted two questions

My Apache WSGI Flask web-app cannot import its internal python module

和自甴很熟 提交于 2019-12-02 03:11:56
I have developed Flask-Web-App which runs fine if I use python command-line directly. However, when I deployed to Apache2 with mod-wsgi it can't import its internal modules. I have read all the relevant posts similar to mine but couldn't figure out the issue yet. Firstly, I tried all below: 1 - Made sure all files and sub-folder under the application folder have rwx permission for www-data ("the Apache2 service account"). 2 - Added the module path to the Apache config file using: WSGIPythonPath /var/www/FlaskApp/FlaskApp/Base/:/var/www/FlaskApp/FlaskApp/Base/Form/:/var/www/FlaskApp/FlaskApp

How to deploy django server into production environment without a full source code?

五迷三道 提交于 2019-12-02 03:10:31
I am still a newbie to Python and Django. I am developing a application using Django which will eventually go to the production server. It's a customized web application for the client. After doing some research, I found out Apache with mod_wsgi is the best option for Django deployment. I just have to copy and paste the code into the production server and the application is accessible. But what if I don't want to give the whole source code and give only the executable application to the client (P.S client wants to deploy the application to their own server) . Is something like this possible in

No module named os found — Django, mod_wsgi, Apache 2.2

倖福魔咒の 提交于 2019-12-02 00:28:25
I'm trying to set up apache, mod_wsgi, and django. I'm getting an internal server error with this in my apache error log: [Wed Jun 22 21:31:55 2011] [error] [client ::1] mod_wsgi (pid=2893): Target WSGI script '/django/internal/django-development.wsgi' cannot be loaded as Python module. [Wed Jun 22 21:31:55 2011] [error] [client ::1] mod_wsgi (pid=2893): Exception occurred processing WSGI script '/django/internal/django-development.wsgi'. [Wed Jun 22 21:31:55 2011] [error] Traceback (most recent call last): [Wed Jun 22 21:31:55 2011] [error] File "/django/internal/django-development.wsgi",