Questions tagged [mod-wsgi]

The mod_wsgi module is a python WSGI adapter module for Apache.

The mod_wsgi module is a python WSGI adapter module for Apache. For details on the official channel for getting mod_wsgi help, see http://modwsgi.readthedocs.io/en/develop/finding-help.html.

3241 questions
1
vote
0 answers

Module not found under wsgi setup but works fine with Werkzeug server

My dir Structure: ├── app │   ├── static │   │   ├── css │   │   └── js │   └── templates │   ├── graphs │   ├── layout │   └── login_and_home ├── auth └── views.py I am deplying a Flask app with that structure, I have…
dsuma
  • 1,000
  • 2
  • 9
  • 30
1
vote
0 answers

wsgi is unable to load app from different location

When I am loading my class directly from some location I am able to load it. >>> import sys >>> sys.path.append('/path/to/my/flask/application') >>> from myfile import app as application >>> Now from wsgi when I am doing the same thing.. it's not…
Suhadri
  • 43
  • 7
1
vote
1 answer

Deploying flask application factory on apache

I'm not having any luck getting this to work. my run.py file which works fine looks like this : from dpc import create_app if __name__ == '__main__': app = create_app("config.py") app.run("0.0.0.0",debug=True,port=666,threaded=True) my…
danspants
  • 3,099
  • 3
  • 27
  • 33
1
vote
0 answers

Apache mod_wsgi is showing no errors in FLASK but calling API is showing 404

While I can run the repo code using python in terminal, So I assume there is no problem in rest.py While running apache, everything seems to work in apache error.log, Even warnings are generated for flask-sqlalchemy which is supposed to run after…
1
vote
1 answer

Multiple django projects on apache [UPDATE]

After help, I have come to a proj.conf of this: WSGIScriptAlias /f_app /home/4rsenal/f_proj/f_proj/wsgi.py ErrorLog ${APACHE_LOG_DIR}/error.log CustumLog ${APACHE_LOG_DIR}/access.log combined Alias /static/…
4rsenal
  • 41
  • 8
1
vote
1 answer

Jelastic Apache+mod_wsgi: 'module' object is not callable

I have unsuccessfully tried to install my Flask application to a Jelastic server. I have there Apache 2.4 and Python 3.5. The problem shows as a 500 Internal Server Error when I try to access my "/" page. [Point 1.] When restarting the Apache…
Juha M
  • 380
  • 3
  • 13
1
vote
0 answers

Errno 13 Permission denied: '/var/www/.config' - biopython

I have tried everything out there to try and get rid of this error including this stack post Tried setting media root as mentioned elsewhere. This post seems to have outlined the problem but no solution was given. Any help would be greatly…
1
vote
2 answers

Django Apache: Target WSGI Script Cannot Be Loaded as Python Module

I am getting the following error. I tried the other answers provided for the same error but nothing is working. Any help would be appreciated. Apache error log: [Thu Aug 10 19:51:22.397653 2017] [wsgi:error] [pid 10908:tid 3048807232] [remote…
Sharan
  • 59
  • 8
1
vote
0 answers

What determines which ErrorLog Apache logs an error to (httpd.conf vs. vhost.conf)?

Background I have a Django site served by Apache, set up in its own virtualhost and using mod_wsgi. I want all of the errors associated with this virtualhost to be logged to a single file. Currently, some errors are being sent to Apache's default…
Peter Henry
  • 443
  • 4
  • 13
1
vote
0 answers

How to prevent against Apache server hacking attempts

I started up an apache server on a raspberry pi to learn to build python servers and have noticed unsuccessful attempts to locate phpmyadmin files. I figure this is a good a time as any to start learning about security... Upon looking up on the…
user8395102
  • 51
  • 1
  • 7
1
vote
1 answer

Flask beginner - error logging

So I have a flask app which is going to run a website on Apache (mod_wsgi). However, it keeps crashing, and the Apache error logs are not recording anything. While there is some documentation here…
1
vote
1 answer

Deploy mod_wsgi Hello world app on apache server

I am trying to deploy mod_wsgi Hello world app on apache server. (C:\xampp\apache) (http://localhost/wsgi.py) but it was not working. Please tell me how we configure apache conf file to run wsgi enable app. My apache httpd config.. # # This is…
manish dhomne
  • 41
  • 2
  • 7
1
vote
1 answer

Cant make mod_wsgi-3.3 in trying to use it with xampp and django

raz@T43:~/Downloads/mod_wsgi-3.3$ sudo ./configure --with-apxs=/opt/lampp/bin/apxs --with-python=/usr/bin/python2.6 checking Apache version... 2.2.14 configure: creating ./config.status config.status: creating…
1
vote
0 answers

Django - No display on browser after deployment on ubuntu server

I have deployed my django project in our personal ubuntu server using apache2 and mod-wsgi. However I am unable to display anything on browser. All it shows is "ERROR" at the corner of the page. Please suggest if I am doing anything wrong. My…
surajitM
  • 239
  • 2
  • 4
  • 11
1
vote
0 answers

DistributionNotFound when moving a python pyramid application?

How to correctly and safely move a python pyramid application? SEE BELOW, I updated the details after feedback in the comments. I first used the following command to prepare the environment: virtualenv --relocatable ENV After that, the app was…
edbras
  • 4,145
  • 9
  • 41
  • 78