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,
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