> On 1 Mar 2016, at 8:43 PM, Jaqen Nki <[email protected]> wrote:
> 
> sorry had to take a break got frustrated. figured it out, got the newest 
> version from source and used the config method instead of express.  heres how:
> 
> 
> INSTALLING FROM SOURCE:
> 
> curl -sL https://github.com/GrahamDumpleton/mod_wsgi/archive/4.4.21.tar.gz | 
> tar xz
> 
> tar xvfz mod_wsgi-4.4.22.tar.gz                #unpack if needed
> 
> ./configure        #( --with-apxs=/usr/local/apache/bin/apxs \
>                   #    --with-python=/usr/local/bin/python )
> make
> sudo make install
> 
> 
> 
> 
>         # Location of module: install src/server/.libs/mod_wsgi.so   --->   
> /usr/lib/apache2/modules/mod_wsgi.so
> 
> sudo nano /etc/apache2/mods-available/wsgi.load
> 
>         # add the next string to the file:
> 
> LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
> 
>             # save, then
> 
> sudo a2enmod wsgi
> sudo service apache2 restart
> 
> 
>        then from guide created vhost and .wsgi files:   site1.conf      
> flaskapp.wsgi
> 
> I was curious if I want to remove the mod_wsgi package and rebuild it to use 
> python3.4 instead of 2.x whats the cleanest way to delete it?

Just replace the installed /usr/lib/apache2/modules/mod_wsgi.so with the newer 
one. That is the only installed file from mod_wsgi. If rebuilding from source 
code make sure you use fresh source code, or run ‘make distclean’ in source 
code before running ‘configure’ again.

> Im also wondering if theres ways to tweak this process better for example not 
> having to do this whole process of configuration for every website I make.

That is the nature of setting boxes up unfortunately. This is where people use 
tools such as Ansible to script up the setup of new boxes or sites within an 
existing Apache so they don’t have to do it by hand.

Use of Docker, especially in conjunction with a PaaS which provides automation 
for deploying sites can make it somewhat simpler.

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to