Giter VIP home page Giter VIP logo

mod_wsgi-httpd's People

Contributors

grahamdumpleton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mod_wsgi-httpd's Issues

Failing to install on Windows Server 2016 with python 2.7

Hello,

I've been following the instructions given here
The earliest (in terms of VC) binaries for Apache that I found on ApacheLounge were compiled with VC11.
These binaries contained all the necessary headers for "pip install mod_wsgi" to succeed.

(Btw, when I ran "mod_wsgi_express module_config", the output contained 'LoadModule wsgi_module "c:/python27/lib/site-packages/mod_wsgi/server/mod_wsgiNone"' instead of what I assume should have been 'LoadModule wsgi_module "c:/python27/lib/site-packages/mod_wsgi/server/mod_wsgi.pyd"')

I have Python2.7 BUT compiled with VC11.

An error occured when I ran "pip install mod_wsgi-httpd": (disregard the first two warnings. I think they're unrelated)
C:\Python27>pip install mod_wsgi-httpd
Collecting mod_wsgi-httpd
C:\Python27\lib\site-packages\pip-9.0.1-py2.7.egg\pip\_vendor\requests\packages\urllib3\util\ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
C:\Python27\lib\site-packages\pip-9.0.1-py2.7.egg\pip\_vendor\requests\packages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading mod_wsgi-httpd-2.4.27.1.tar.gz (12.3MB)
100% |################################| 12.3MB 81kB/s
Complete output from command python setup.py egg_info:
'rm' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\azureu~1\appdata\local\temp\2\pip-build-9kshfy\mod-wsgi-httpd\setup.py", line 77, ``in <module>
raise RuntimeError('Failed to build APR.')
RuntimeError: Failed to build APR.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\azureu~1\appdata\local\temp\2\pip-build-9kshfy\mod-wsgi-httpd\

It seems like the command should be "del" instead of "rm", right?

As a sidenote, I'm doing all this hoping that I will have access to the WSGIDaemonProcess command. I realise that you're previously stated that, regarding 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.

But I was hoping that, with the introduction of mod_wsgi-httpd, this would change.
What I'm trying to accomplish here is mostly a short-term fix as in the long term I'm going to have a linux web server.

Failing to install on FreeBsd 12 with python 3.7

Hello,

I have been following the instruction given here.

An error occurred when I ran pip install "mod_wsgi-standalone". I will try today with an earlier version of the os (FreeBsd 11).

` tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd-2.4.41/modules/md -I/tmp/pip-install-pricwws_/mod-wsgi- httpd/build/httpd-2.4.41/modules/arch/unix -I/tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd-2.4.41/modules/dav/main -I/tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd-2.4.41/modules/generators -I/tmp/pip-install-pricwws_/mod-wsgi- httpd/build/httpd-2.4.41/modules/mappers -prefer-non-pic -static -c passwd_common.c && touch passwd_common.lo
/tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd/build-1/libtool --silent --mode=link cc -g -O2 -L/usr/local/lib - o htpasswd htpasswd.lo passwd_common.lo /tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd/lib/libaprutil-1.la - lexpat /tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd/lib/libapr-1.la -lcrypt -lpthread -lcrypt
ld: error: /tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd/lib/libaprutil-1.so: undefined reference to libiconv
ld: error: /tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd/lib/libaprutil-1.so: undefined reference to libiconv_close
ld: error: /tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd/lib/libaprutil-1.so: undefined reference to libiconv_open
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

  Stop.
  make[2]: stopped in /tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd-2.4.41/support
  *** Error code 1

  Stop.
  make[1]: stopped in /tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd-2.4.41/support
  *** Error code 1

  Stop.
  make: stopped in /tmp/pip-install-pricwws_/mod-wsgi-httpd/build/httpd-2.4.41
  Downloading https://archive.apache.org/dist/httpd/httpd-2.4.41.tar.gz
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-pricwws_/mod-wsgi-httpd/setup.py", line 110, in <module>
      raise RuntimeError('Failed to build HTTPD.')
  **RuntimeError: Failed to build HTTPD**.
  ----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

ERROR: Command errored out with exit status 1: /usr/local/bin/python3 /usr/local/lib/python3.7/site-packages/pip install --    ignore-installed --no-user --prefix /tmp/pip-build-env-6m1r94oj/overlay --no-warn-script-location --no-binary :none: --only-    binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel mod_wsgi-httpd==2.4.41.1 Check the logs for full     command output. `

500 Internal Server Errors

I'm using mod_wsgi with mod_wsgi-httpd and I'm seeing status 500 in the access logs but after debugging it doesn't seem to be an issue from the python wsgi app. I'm trying to understand what the error is but I can't find any log files for the Apache server (other than the ones logging my wsgi app which contain no errors). Is there any log file generated by mod_wsgi-httpd that I can check for errors?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.