Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

245
Views
hosting Django on Apache

I'm following a tutorial trying to host Django on apache server, now as I finally installed mod_wsgi using cmd, I try to use the command:

mod_wsgi-express module-config

now i get another bugging error - which is:

  Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

(Adwy) C:\Users\Adwy>mod_wsgi-express module-config
Traceback (most recent call last):
  File "C:\Users\Adwy\AppData\Local\Programs\Python\Python35\Scripts\mod_wsgi-express-script.py", line 11, in <module>
    load_entry_point('mod-wsgi==4.5.20', 'console_scripts', 'mod_wsgi-express')()
  File "c:\users\adwy\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "c:\users\adwy\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 2859, in load_entry_point
    return ep.load()
  File "c:\users\adwy\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 2450, in load
    return self.resolve()
  File "c:\users\adwy\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "c:\users\adwy\appdata\local\programs\python\python35\lib\site-packages\mod_wsgi\server\__init__.py", line 24, in <module>
    from . import apxs_config
  File "c:\users\adwy\appdata\local\programs\python\python35\lib\site-packages\mod_wsgi\server\apxs_config.py", line 27
    LIBEXECDIR = 'C:\xampp\apache\/lib'
                    ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-4: truncated \xXX escape


I'm looking for help!

thanks,

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Looks like you might need to set the MOD_WSGI_APACHE_ROOTDIR environment variable with forward slashes. example:

"C:/foo/bar/apache"

To apply this changes you need to reinstall mod_wsgi:

pip uninstall mod_wsgi
pip install mod_wsgi
over 4 years ago · Santiago Trujillo Report

0

Looks like you might need to set the MOD_WSGI_APACHE_ROOTDIR environment variable with forward slashes. example: "C:/foo/bar/apache"

Take a look at this issue, which looks similar: https://github.com/GrahamDumpleton/mod_wsgi/issues/345

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!