C:\>mod_wsgi-express module-config
LoadModule wsgi_module "C:/Python27/lib/site-packages/mod_wsgi-4.5.15-py2.7-win32.egg/mod_wsgi/server/mod_wsgiNone"
WSGIPythonHome "C:/Python27"LoadModule wsgi_module "C:/Python27/lib/site-packages/mod_wsgi-4.5.15-py2.7-win32.egg/mod_wsgi/server/mod_wsgi.pyd"
WSGIPythonHome "C:/Python27"The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 179 of C:/Apache24/conf/httpd.conf: Cannot load C:/Python27/lib/site-packages/mod_wsgi-4.5.15-py2.7-win32.egg/mod_wsgi/server/mod_wsgi.pyd into server: The specified module could not be found. .--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
On 29 Aug 2017, at 10:20 am, Sheng <sheng....@gmail.com> wrote:Hi Graham,Has this problem been solved? I have the same problem,Apache2.4.16 Windows 7 (and Windows Server 2010).Python 2.7.11mod_wsgi 4.5.17 ap24vc9-cp27-win-amd64. (VC9 redistribution is there).Tried LoadModule from <python_root>/Lib/site-packages/mod_wsgi/server/mod_wsgi.pyd, didn't work. Then copied the mod_wsgi.pyd file to apache modules directory, didn't work either. Error message: The specified module could not be found. But the file is there for sure.
Please help. Thanks a lot!
On Friday, July 21, 2017 at 5:23:02 PM UTC-5, Graham Dumpleton wrote:
There is a known issue when using Python 2.7 on Windows that 'module-config' generates the wrong extension for the file. Unfortunately each time it has come up, those affected by the issue haven't help with working out the code change to fix the issue in the mod_wsgi-express.Can you start out by telling what files are in the directory:C:/Python27/lib/site-packages/mod_wsgi-4.5.15-py2.7-win32.egg/mod_wsgi/serverand it the directory even exists with that exact path?Thanks.
Graham
Apache 2.4.23-win32Windows Server 2012r2python 2.7.9 32bitmod_wsgi-4.5.15Command to get mod_wsgi path:C:\>mod_wsgi-express module-config
LoadModule wsgi_module "C:/Python27/lib/site-packages/mod_wsgi-4.5.15-py2.7-win32.egg/mod_wsgi/server/mod_wsgiNone"
WSGIPythonHome "C:/Python27"In my http.conf file:
LoadModule wsgi_module "C:/Python27/lib/site-packages/mod_wsgi-4.5.15-py2.7-win32.egg/mod_wsgi/server/mod_wsgi.pyd"
WSGIPythonHome "C:/Python27"Windows Error when I start the Apache service:
The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 179 of C:/Apache24/conf/httpd.conf: Cannot load C:/Python27/lib/site-packages/mod_wsgi-4.5.15-py2.7-win32.egg/mod_wsgi/server/mod_wsgi.pyd into server: The specified modulecould not be found. .
mod_wsgi.pyd does exist in that directory though...
Any help is much appreciated.
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
On 29 Aug 2017, at 10:40 am, Sheng <sheng....@gmail.com> wrote:Thanks Graham for the quick reply.Yes, Apache is run as service and Python is installed for all users. All of them are of x64 bit, i forgot to mention in the first message. Here is more precise in package details:Apache 2.4.16-vc11 on Windows 7 ( and Windows Server 2010 ).Python 2.7.10 64bit.mod_wsgi 4.5.17+ap24vc9-cp27-cp27m-win_amd64.whl (pip installed).The only difference is that Apache is of vc11 while mod_wsgi is vc9, but both redistribution packages are installed on the machine.