0

For some reason ever since I installed mod_wsgi on Apache 2.4 on Windows 10, the service for starting Apache on the background stopped working and no error is logged.

If I go to the bin folder where Apache is installed I can just open a CMD windows and write httpd and it starts listening and everything works fine.

I saw this similar on SO but I have already installed both x64 and x86 versions of the VC++ 2012 runtime.

If I comment out the line that loads python36.dll along with the one that loads mod_wsgi, the service starts without any issues.

P.S. I installed Apache from Apache Lounge and I'm not using XAMP, WAMP ...

Community
  • 1
  • 1
Vahid Amiri
  • 10,769
  • 13
  • 68
  • 113
  • The Apache service doesn't run as you, but a separate user. Is Python or mod_wsgi installed into your own account. If so, user Apache starts up as may not have access to the files. – Graham Dumpleton Mar 26 '17 at 19:43
  • @GrahamDumpleton, Python is installed for ALL users in the system. – Vahid Amiri Mar 27 '17 at 05:25
  • Where was mod_wsgi installed though? Into the system Python version, or a virtual environment? – Graham Dumpleton Mar 27 '17 at 06:46
  • I installed it with `pip install mod_wsgi` and not using a virtual environment. – Vahid Amiri Mar 27 '17 at 07:03
  • There must be some error in the Apache error log, or service log. What do you see? What were the actual lines you added to the Apache configuration file. There has been instances that what ``mod_wsgi-express module-config`` generated was wrong. This was not with Python 3.6 though, which would expect to work okay. – Graham Dumpleton Mar 27 '17 at 07:46
  • Hang, on. Why do you have VC++ 2012. That looks to be wrong compiler for Python 3.6. See https://wiki.python.org/moin/WindowsCompilers – Graham Dumpleton Mar 27 '17 at 07:47
  • @GrahamDumpleton, that's just the redistributable edition not the SDK, I compiled the module using Visual C++ 2015 Build Tools – Vahid Amiri Mar 27 '17 at 07:58
  • So what actual error messages are in logs? And the config? – Graham Dumpleton Mar 27 '17 at 08:01
  • @GrahamDumpleton Errors are not logged. Not in Apache logs folder and not even in event viewer. It just doesn't start. – Vahid Amiri Mar 27 '17 at 09:06

0 Answers0