Install Mod_python Xampp Windows

 

Mod Python installation problem in XAMPP. I am installing mod python for python 2.5 in XAMPP with apache 2.2.7. During installation, I got the following errors. I assume that your are running Windows if so you can try the following: Install python 2.5.2 as standalone - this should be no problem. Our first technical task is to work through the installation steps including installing a text editor, installing MAMP or XAMPP (or equivalent), creating a MySql Database, and writing a PHP program.

Active2 years, 2 months ago

Good day.I am currently trying to host my Django website locally using XAMPP Apache. I have followed several tutorials but one of those works. I was wondering if you could tell me what are the steps I have missed or did wrong. Here is the specs of the installed packages on my Django dev site:

  • Python = 2.7.12, 32-bit
  • Apache = 2.4, 32-bit
  • Visual C++ Version 9
  • OS: Windows 7 64-bit

Here is the procedure I have followed:

  1. Download mod_wsgi from https://code.google.com/archive/p/modwsgi/downloads. I have tried [mod_wsgi-py26-vc9.so, mod_wsgi-py27-vc9.so, mod_wsgi-win32-ap22py27-3.3.so and mod] **but none seems to work.

  2. Rename the mod_wsgi file to mod_wsgi.so and save it to C:/xampp/apache/modules

    (Features will not be publish her for copyright reasons.) We do provide free support and updates, please let us know if something went wrong. Don’t forget to read instructions after installation. Enjoy Endnote x7 Crack Product key Generator + Serial Key Free Download. Endnote 6 0 1 keygen generator. Endnote x7 Crack – Endnote x7 Crack Product key Generator + Serial Key Free Download How to install: – Download, extract and run.exe file, (If your antivirus blocking file, pause it or disable it for some time.) – Choose destination folder. How to Use: Open destination folder and locate file notes.txt, open it and read step by step.

  3. Run xampp and edit apache httpd.conf file by adding

I have also tried

But still have same result. The XAMPP does not display any errors but does not run Apache even after restarting XAMPP and the machine itself. I have also tried to run the app in administrator privileges but it is still not working. Other XAMPP modules are working except Apache.

jonilyn2730
Windows
jonilyn2730jonilyn2730

Xampp For Windows 10

1 Answer

I have resolved this problem by downloading the binary file at the author's GitHub account and building my own binary file. To do this, I need to extract the downloaded zip file and open the win32 folder and read the README.rst for the instructions.

Excerpt from the instructions:

  1. Know the windows and python versions you are using (Windows 7 32-bit and Python 2.7 in my case)
  2. Install Microsoft C/C++ compiler suitable for your Python version:
    • Python 2.6 - VC9
    • Python 2.7 - VC9
    • Python 3.3 - VC10
    • Python 3.4 - VC10
  3. Start Visual C++ Command Prompt and:

    • Navigate back to the extracted mod_wsgi file and find the appropriate makefile for your combination of Apache and Python (ap22py27-win32-VC9.mk in my case). If you are not sure your Apache version read this for XAMPP or just navigate to localhost for WAMP.
    • Edit the .mk file and define the correct path for APACHE_ROOTDIR and PYTHON_ROOTDIR. Example:

      APACHE_ROOTDIR = C:xamppapache

      PYTHON_ROOTDIR = C:Python27

    • Run nmake -f apXYpyXY-winNN-VC?.mk install. Substitute 'XY' in eachcase for the version of Apache and Python being used. Substitute 'NN'with either '32' or '64' and substitute '?' with '9' or '10'. Example: nmake -f ap22py27-win32-VC9.mk install. The line builds the mod_wsgi for your platform and installs it to the modules directory of your Apache installation

    • Add the following line in your WAMP/XAMPP http.conf: LoadModule wsgi_module modules/mod_wsgi.so and

      WSGIPythonHome 'C:/Python27'

      WSGIPythonPath 'ProjectPath'

      WSGIApplicationGroup '%{GLOBAL}'

      WSGIPassAuthorization 'On'

    • Restart your Apache or your computer and you're good to go.

Note: There's no need for you to add mod_wsgi in the installed apps of your python since it was already installed in your Apache server

jonilyn2730jonilyn2730

Mcrypt Xampp Install Windows

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Download Xampp For Windows 10

Not the answer you're looking for? Browse other questions tagged pythondjangoapachexamppmod-wsgi or ask your own question.