All Questions

Tagged with
Filter by
Sorted by
Tagged with
7 votes
3 answers
24k views

How can I install wsgi on CentOS using yum?

How can I install wsgi on CentOS using yum? Is there any repository with mod_wsgi?
sorin's user avatar
  • 8,046
5 votes
2 answers
6k views

Error installing mod_wsgi in centos with python2.7

When i do "make" in mod_wsgi folder i get this error I configured using following ./configure --with-apxs=/usr/local/apache/bin/apxs --with-python=/opt/python27/bin/python /usr/bin/ld: /opt/...
Mirage's user avatar
  • 571
4 votes
1 answer
6k views

Apache mod_wsgi installation error

I'm running CentOS 6.7, I'm trying to install mod_wsgi (https://code.google.com/p/modwsgi/) Normally I'd just do: yum install mod_wsgi But since I need to make sure it compiles under Python 2.7 (...
Jorg Ancrath's user avatar
2 votes
1 answer
3k views

Running multiple Django projects within Apache, sys.path being over written

I have been trying to research how to do a multiple Python / Django deployment using Apache VirtualHosts. The issue I am encountering seems straight forward, ImportError: Could not import settings '...
Tim's user avatar
  • 23
1 vote
2 answers
3k views

Running two web applications on Apache 2.4

I am trying to run two applications on my Linux apache server: OpenProject pgAdmin (which is WSGI application) And, in order to connect them from remote computer, I use those httpd configuration ...
Michał Turczyn's user avatar
1 vote
2 answers
5k views

How to enable/load mod_wsgi in apache server in centos 8 VPS

I am not able to enable/load module mod_wgsi in apache webserver in cent os 8 VPS. It works very easily in ubuntu by running the command sudo apt install libapache2-mod-wsgi-py3 Please Help me getting ...
Manav Sengupta's user avatar
1 vote
1 answer
1k views

CentOS 7 / Apache / mod_wsgi - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2727: ordinal not in range(128)

I've deployed a Python web application (uses Pyramid) in Apache (httpd) using mod_wsgi. After starting the Apache service the error below (from Apache log) occurs when we make a http request to the ...
Eduardo Lucio's user avatar
1 vote
1 answer
1k views

Installing mod_wsgi error - config.status: error: cannot find input file: Makefile.in [closed]

Below, I'm trying to install mod_wsgi. [root@server]# ./configure --with-python=/usr/local/bin/python2.7 checking for apxs2... no checking for apxs... no checking Apache version... ./configure: line ...
User's user avatar
  • 1,405
1 vote
2 answers
442 views

mercurial updated, mod_wsgi runs old version

I have a VPS with Centos 5.5, installed Python 2.6 following Setup Python 2.5, mod_wsgi, and Django 1.0 on CentOS 5 (cPanel) tutorial and Mercurial 1.6 via easy-install. Now I wanted to update to ...
frnhr's user avatar
  • 125
1 vote
2 answers
2k views

Where is WSGI installed on Centos?

I am getting a permissions issue when running django in daemon mode. Reading here https://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets I think the solution is to ...
petey's user avatar
  • 572
1 vote
1 answer
553 views

Apache fails to work/hangs when including mod_wsgi.so

I am running Centos 5 on 64 with apache 2.2. When I include wsgi_module apache restarts ok with no errors, but it fails to serve any requests. It just says waiting in the browser when I access an URL....
Gabriel Solomon's user avatar
0 votes
3 answers
7k views

Apache/httpd error: Invalid command 'WSGIPythonHome'

ISSUE: My Apache/httpd server will not launch. journalctl -xe reveals: Feb 27 01:50:12 localhost.localdomain httpd[4398]: AH00526: Syntax error on line 355 of /etc/httpd/conf/httpd.conf: Feb 27 01:...
Josh's user avatar
  • 131
0 votes
1 answer
3k views

503 errors on Apache+Mod_wsgi+Django

I'm new to Python and trying to setup Django on my VPS that is running CentoOS 6.5. My Apache version is 2.2.15. Python is running on version 2.7. I created a virtualenv under /var/www/html/...
Jorg Ancrath's user avatar
0 votes
1 answer
2k views

Unable to install mod_wsgi on CentOS 5.5 VPS

I am trying to install mod_wsgi on my VPS, but it won't work. This is what I am doing: wget http://modwsgi.googlecode.com/files/mod_wsgi-2.5.tar.gz tar xzvf mod_wsgi-2.5.tar.gz cd mod_wsgi-2.5 ./...
jasonaburton's user avatar
0 votes
1 answer
184 views

How to get to modwsgi 4+ on Centos7

On Centos7, yum pulls in mod_wsgi 3.4 using a yum install. I'm having some problems and multiple resources I have looked at regard this version as ancient and ask the users to upgrade to 4+. I'm not ...
mcweens's user avatar
0 votes
1 answer
343 views

centos,django, mod_wsgi & different python installations

I am getting this error File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module TemplateSyntaxError: Caught ImportError while rendering: No module named ...
Jibin's user avatar
  • 111
0 votes
1 answer
1k views

Segmentation Fault (11) with modwsgi on CentOS 5.7 when running pyramid app

I'm getting Segmentation fault error when trying to access the "Hello World" pyramid app. This error only occurs when running against CentOS 5.7 setup, but no problem whatsoever when tested against ...
carbotex's user avatar
  • 103
0 votes
1 answer
221 views

Centos 5.2 x86_64 install mod_wsgi.so error undefined symbol: ap_close_listeners

I am trying to install mod_wsgi.so on my VPS runninr Centors 5.21. I installed python 2.6 and compiled mod_wsgi. It all worked with ought an error. When i include the mod_wsgi.so in Apache i get the ...
Gabriel Solomon's user avatar
0 votes
1 answer
2k views

Cant make mod_wsgi-3.3 on centos, is there a python2.7-dev(el) package?

I'm trying to get mod_wsgi to work om my CentOs server so I can run Django sites on apache. I've installed python2.7 paralel to 2.4 (because you have to keep 2.4 in order to keep yum happy), the root ...
Jasper Kennis's user avatar
0 votes
1 answer
7k views

503 Error: Service Temporarily Unavailable (Mod_wsgi, Apache, Django)

I followed the tutorial to mount a Djando application on Apache here. The Django project was created under its own directory in /opt. Any suggestions or other tutorials I can use? I reviewed few ...
thinkux's user avatar
0 votes
2 answers
3k views

Deploying Django in CentOS - Internal Server Error 500

My system: CentOS: 5.5 x86_64 GNU/Linux Apache/2.2.16 mod_wsgi-3.2-1.el5.x86_64 python 2.6.6 django 1.2.3 My file example.wsgi: #!/usr/local/bin/python import os, site, sys # add the virtual ...
anhtran's user avatar
  • 101
0 votes
0 answers
48 views

Coworkers think latest Django 3.1.7 needs a mod_wsgi newer than the 3.4.18 provided by Centos 7.9

My coworkers are asking me why we are using the Centos 7.9 provided apache + mod_wsgi for the sake of Django 3.1.7 VERSUS hand assembling a custom build of either Centos 7.9's apache or a custom ...
FormerAtariUser's user avatar
0 votes
1 answer
384 views

Need .py files to execute in the same directory with .html and .php files using mod_wsgi

I'm running CentOS 8.1 with Python 3.6.8, and Apache/2.4.37. I'm new to mod_wsgi. I found this "hello world" example and got it to work: https://www.ionos.com/community/hosting/python/use-mod-wsgi-...
Edward_178118's user avatar
0 votes
1 answer
860 views

Django site running in Apache 2.4.6 on Centos giving 503 server error

Please assist. I have a Django site that i'm trying to configure to run in apache using mod_wsgi. I have setup my virtualhost as follows: <virtualhost *:80> ServerName mysite.com ...
Dean's user avatar
  • 129
0 votes
0 answers
2k views

Cannot load /etc/httpd/modules/mod_wsgi.so into server: libpython2.7.so.1.0

I've been working for the past 2 days trying to get mod_wsgi setup properly so it will work with my virtualenv and Django site in Python 1.7. [root@server mod_wsgi-3.4]# service httpd restart ...
User's user avatar
  • 1,405
0 votes
1 answer
2k views

mod wsgi picks up wrong libpython2.7.so.1.0

I've compiled python 2.7.8 with: mkdir -p /usr/local/python2p7/lib ./configure --prefix=/usr/local/python2p7 --with-threads --enable-shared LDFLAGS="-Wl,-rpath /usr/local/python2p7/lib" make make ...
brian's user avatar
  • 113
0 votes
1 answer
106 views

Issue configuring Apache virtualHost with modwsgi

Hello i have a problem configuring apache with Virtualhosts and ModWSGI, see i want to run a Python Script when i access to the domain, but it keeps showing me the content of my folder instead ...
hidura's user avatar
  • 115
0 votes
1 answer
445 views

mod_wsgi Causing httpd to Segmentation Fault

I have just installed python2.6 and mod_wsgi on my MediaTemple CentOS5.8 server. I had to install python2.6 along side the default python version of 2.4. I then compiled mod_wsgi telling it to use ...
OpIvy's user avatar
  • 113
0 votes
1 answer
262 views

centos default apache log location for virtualhost

may i know what is the default location for the error logs for inidividual sites/virtualhost in apache + centos? Also, if I want to customize the location of the log file, do I define errorLog under ...
amateur's user avatar
  • 123
-1 votes
1 answer
7k views

trouble deploying django under apache on centos with mod_wsgi

EDIT 2: I got this running mostly! It was indeed a SELinux issue. So most things work, I get a cannot write to a read only database error. And some of my things that seem like static are not found,...
Codejoy's user avatar
  • 129
-1 votes
1 answer
6k views

Permission denied error while creating files from a python script using mod_wsgi on apache

I'm running a python script under mod_wsgi on apache. The script attempts to create some files under a directory. The path of that directory is defined by this variable named tmpdir in the script. ...
Omnipresent's user avatar