Would likely put you in a worse position as they absolve themselves from 
telling you anything about how to set it up properly.

So more than likely you would end up with something worse than what they had 
for other reasons.

Their default configuration for their installer avoids various issues, but 
using old httpd and mod_wsgi as they do is a big issue. What they should have 
done in your case was at least say to start with the Apache configuration you 
had from the initial setup. You would also need to swap crontab entries over as 
will explain later.

Using mod_wsgi-express you will at least get an Apache configuration generated 
automatically which is tailored for running a Python web application using 
mod_wsgi.

I have only just come online for the evening. I will start describing next 
steps in subsequent email.

Graham

On 05/02/2015, at 12:07 AM, Paul Royik <[email protected]> wrote:

> 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