Completely forgot, but webfaction sent me a manual for installing new 
apache and mod_wsgi. Can you look at it and tell me your thoughts. Maybe it 
will help you.


Both apache and mod_wsgi have extensive documentation at:

 - http://httpd.apache.org/docs/2.4/install.html
 - https://code.google.com/p/modwsgi/wiki/QuickInstallationGuide

Please do look into them. If you do start using a custom Apache/mod_wsgi 
stack you will need to be able to configure and maintain it on your own, 
since it is outside the scope of our support.

The steps you need to take over an ssh session, according to the above 
documentation, to have a working Apache 2.4/mod_wsgi 4.4.6 stack is:

cd ~
mkdir src
cd src
wget http://mirrors.gigenet.com/apache/apr/apr-1.5.1.tar.gz
wget http://mirrors.gigenet.com/apache/apr/apr-util-1.5.4.tar.gz
wget http://mirrors.gigenet.com/apache/httpd/httpd-2.4.10.tar.gz
wget https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.4.6
tar xzvf httpd-2.4.10.tar.gz
tar xvzf 4.4.6
cd httpd-2.4.10/srclib
tar xvzf ../../apr-1.5.1.tar.gz
tar xvzf ../../apr-util-1.5.4.tar.gz
mv apr-1.5.1 apr
mv apr-util-1.5.4 apr-util
cd ..
/configure --prefix=$HOME/webapps/<app>/apache24/ --with-included-apr
make
make install
cd ../mod_wsgi-4.4.6/
 ./configure --with-apxs=$HOME/webapps/<app>/apache24/bin/apxs 
--with-python=/usr/local/bin/python2.7
make
make install
cd $HOME/webapps/<app>/apache24/conf

Then change the Listen directive in the httpd.conf file to the port your 
application is going to use according to our control panel.

Also add the following line near the LoadModule stanza:

LoadModule wsgi_module modules/mod_wsgi.so

Other changes to the httpd.conf file might be needed, like removing 
unneeded modules that stack up memory, and set up django as per 
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/modwsgi/

When that's done, you should be able to start apache using 
~/webapps/<app>/apache24/bin/apachectl -k start.

-- 
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 http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to