Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install & configure mod_wsgi for py3

I installed & configured mod_wsgi for python2.7 but now I would also like to have mod_wsgi for py3

I'm in ubuntu 12.04 My apache conf file looks like this for py2.7 :

<Directory /var/www/vhosts/my_web>     WSGIProcessGroup my_web     WSGIApplicationGroup %{GLOBAL}     Order deny,allow     Allow from all </Directory> 

Now I would like to install mod_wsgi for python3.

I think I have to do apt-get install libapache2-mod-wsgi-py3

But I can't find any instruction on how to configure mod_wsgi for py3. a) Can I keep mod_wsgi for py2.7 or do I need to remove it for apache to work with mod_wsgi_py3? b) What do I need to include in my apache conf?

like image 726
Lazik Avatar asked Oct 13 '13 10:10

Lazik


People also ask

What are the steps to install Windows?

Turn on the PC and press the key that opens the boot-device selection menu for the computer, such as the Esc/F10/F12 keys. Select the option that boots the PC from the USB flash drive. Windows Setup starts. Follow the instructions to install Windows.

How do I find and install software?

List Installed Programs Using Settings. Press Windows key + I to open Settings and click Apps > Apps & features. Doing so will list all programs installed on your computer, along with the Windows Store apps that came pre-installed.


1 Answers

sudo apt-get install libapache2-mod-wsgi-py3

This will replace libapache2-mod-wsgi and will restart the apache service.

More specific instructions (Django) are available for here: https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/modwsgi/

like image 189
davesave Avatar answered Sep 19 '22 18:09

davesave