[Flask] Using Flask with Apache2.4 on Windows 7?

Alex Hall ahall at autodist.com
Wed Apr 20 17:10:39 EDT 2016


Thanks. I'd looked on that page, but couldn't remember why it failed. Now,
having tried it again, I do. I'm on 64-bit Windows, which the readme for
Windows (linked to on the page you sent) says is problematic. I followed
the instructions, but when Apache starts, it gives me an error that
mod_wsgi.so is not a valid win32 application. Plus, the Windows readme is
full of warnings, caviats, and the like.

Is there a web server that is as robust as Apache, but that is more
friendly to Flask? I've never had so much trouble getting Python to work,
and that counts trying to use Py2Exe on an app that uses WX. :)

On Wed, Apr 20, 2016 at 4:48 PM, David Lord <davidism at gmail.com> wrote:

> The docs <http://modwsgi.readthedocs.org/en/develop/installation.html>
> link to this
> <https://github.com/GrahamDumpleton/mod_wsgi/blob/638ac9efa49cb119a0a7016e069780efeca9f3e9/win32/README.rst#using-the-pre-compiled-binaries>
> :
>
> Occassionally precompiled binaries will be made available for mod_wsgi.
> These may not be updated on every release because more often than not code
> changes are being made which relate only to mod_wsgi daemon mode, or
> mod_wsgi-express, neither of which are available for Windows.
>
> When pre-compiled mod_wsgi binaries are made available they will be
> downloadable from the github release page for the mod_wsgi project at
> <https://github.com/GrahamDumpleton/mod_wsgi/releases>
> https://github.com/GrahamDumpleton/mod_wsgi/releases.
>
> Look back at older releases if the most current version doesn’t have them
> associated with it.
>
> Looking at the latest release on the linked page shows that the last
> Windows builds needed generating for the 4.4.12 release
> <https://github.com/GrahamDumpleton/mod_wsgi/releases/tag/4.4.12>, which
> has a Windows download link. Within that archive you would extract
> /Apache24-win32-VC9/modules/mod_wsgi-py27-VC9.so. (Assuming you’re using
> the 32-bit install which is the default on Windows.)
>
> On 04/20/2016 01:31 PM, Alex Hall wrote:
>
> Hello list,
> The other major difficulty I'm running into is getting Apache to host my
> Flask project. I have WAMP installed on Windows 7 64-bit, which gives me
> Apache2.4
>
> The instructions from Flask's site say to use Mod_WSGI, and offer a link
> to setup instructions. However, the Flask docs then state that the linked
> page is Unix-only, and offer nothing for Windows. I went to the page on the
> off chance that I could gleen something useful, and found that it's only
> for Apache 2.2 or below. I've searched out how to install Mod_WSGI on
> Apache2.4, and only been able to find confusing instructions. For instance,
> one page said I'd need to know the version, not of Apache, but of the MS
> compiler that was used to generate my version of Apache. Others point me to
> download pages, but I'm never able to find installers or scripts for
> Apache2.4 and Python2.7.
>
> What's the trick to getting Flask hosted by Apache2.4 under Windows 7? I
> can't use a shared or cloud server, because this project is an intranet one
> that must be on my work's local network to talk to the databases I'm
> querying. It'll have to be hosted under either IIS or Apache, and I really
> dislike IIS. Hopefully this is possible and I've just managed to miss the
> instructions that will reveal the secrets. If anyone has any suggestions,
> I'd greatly appreciate hearing them. Thanks in advance!
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ahall at autodist.com
>
>
> _______________________________________________
> Flask mailing listFlask at python.orghttps://mail.python.org/mailman/listinfo/flask
>
>>
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
>
>


-- 
Alex Hall
Automatic Distributors, IT department
ahall at autodist.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20160420/843b4406/attachment-0001.html>


More information about the Flask mailing list