Please someone help with mod_wsgi

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Please someone help with mod_wsgi

Postby handa.abhishek » 16. February 2015 17:49

Hello everyone..I am very new to django and apache also. I have been able to install and run apache server through xampp. but when i download and install mod_wsgi.so file and paste it in module folder and just add this line LoadModule wsgi_module modules/mod_wsgi.so to httpd.conf file and try to restart the server it doesnt start and i am getting the following error:-
10:18:17 PM [Apache] Error: Apache shutdown unexpectedly.
10:18:17 PM [Apache] This may be due to a blocked port, missing dependencies,
10:18:17 PM [Apache] improper privileges, a crash, or a shutdown by another method.
10:18:17 PM [Apache] Press the Logs button to view error logs and check
10:18:17 PM [Apache] the Windows Event Viewer for more clues
10:18:17 PM [Apache] If you need more help, copy and post this
10:18:17 PM [Apache] entire log window on the forums
the error log file is:-


[Mon Feb 16 21:56:23.048734 2015] [ssl:warn] [pid 4916:tid 228] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 21:56:23.278735 2015] [core:warn] [pid 4916:tid 228] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Feb 16 21:56:24.188736 2015] [ssl:warn] [pid 4916:tid 228] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 21:56:26.386741 2015] [mpm_winnt:notice] [pid 4916:tid 228] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 configured -- resuming normal operations
[Mon Feb 16 21:56:26.386741 2015] [mpm_winnt:notice] [pid 4916:tid 228] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Mon Feb 16 21:56:26.386741 2015] [core:notice] [pid 4916:tid 228] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Feb 16 21:56:26.406741 2015] [mpm_winnt:notice] [pid 4916:tid 228] AH00418: Parent: Created child process 1288
[Mon Feb 16 21:56:28.938747 2015] [ssl:warn] [pid 1288:tid 240] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 21:56:29.918748 2015] [ssl:warn] [pid 1288:tid 240] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 21:56:30.098748 2015] [mpm_winnt:notice] [pid 1288:tid 240] AH00354: Child: Starting 150 worker threads.
[Mon Feb 16 21:59:03.474299 2015] [ssl:warn] [pid 3832:tid 344] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 21:59:03.644299 2015] [core:warn] [pid 3832:tid 344] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Feb 16 21:59:04.494300 2015] [ssl:warn] [pid 3832:tid 344] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 21:59:04.614301 2015] [mpm_winnt:notice] [pid 3832:tid 344] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 configured -- resuming normal operations
[Mon Feb 16 21:59:04.614301 2015] [mpm_winnt:notice] [pid 3832:tid 344] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Mon Feb 16 21:59:04.614301 2015] [core:notice] [pid 3832:tid 344] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Feb 16 21:59:04.624301 2015] [mpm_winnt:notice] [pid 3832:tid 344] AH00418: Parent: Created child process 6132
[Mon Feb 16 21:59:06.695305 2015] [ssl:warn] [pid 6132:tid 244] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 21:59:07.708307 2015] [ssl:warn] [pid 6132:tid 244] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 21:59:07.838307 2015] [mpm_winnt:notice] [pid 6132:tid 244] AH00354: Child: Starting 150 worker threads.
[Mon Feb 16 21:59:20.864952 2015] [mpm_winnt:notice] [pid 3832:tid 344] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Feb 16 21:59:22.900955 2015] [mpm_winnt:notice] [pid 6132:tid 244] AH00364: Child: All worker threads have exited.
[Mon Feb 16 21:59:23.060955 2015] [mpm_winnt:notice] [pid 3832:tid 344] AH00430: Parent: Child process 6132 exited successfully.
[Mon Feb 16 22:04:13.950522 2015] [ssl:warn] [pid 4804:tid 344] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 22:04:15.330524 2015] [ssl:warn] [pid 4804:tid 344] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 22:04:15.480524 2015] [mpm_winnt:notice] [pid 4804:tid 344] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 configured -- resuming normal operations
[Mon Feb 16 22:04:15.480524 2015] [mpm_winnt:notice] [pid 4804:tid 344] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Mon Feb 16 22:04:15.480524 2015] [core:notice] [pid 4804:tid 344] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Feb 16 22:04:15.490524 2015] [mpm_winnt:notice] [pid 4804:tid 344] AH00418: Parent: Created child process 5100
[Mon Feb 16 22:04:17.743529 2015] [ssl:warn] [pid 5100:tid 244] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 22:04:18.843531 2015] [ssl:warn] [pid 5100:tid 244] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 16 22:04:18.983531 2015] [mpm_winnt:notice] [pid 5100:tid 244] AH00354: Child: Starting 150 worker threads.
[Mon Feb 16 22:17:57.627251 2015] [mpm_winnt:notice] [pid 4804:tid 344] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Feb 16 22:17:59.973293 2015] [mpm_winnt:notice] [pid 5100:tid 244] AH00364: Child: All worker threads have exited.
[Mon Feb 16 22:18:00.696305 2015] [mpm_winnt:notice] [pid 4804:tid 344] AH00430: Parent: Child process 5100 exited successfully.

Please someone help me make my first django application..
thanks in advance
handa.abhishek
 
Posts: 1
Joined: 16. February 2015 17:40
Operating System: windows 7

Re: Please someone help with mod_wsgi

Postby Nobbie » 16. February 2015 19:42

handa.abhishek wrote:Hello everyone..I am very new to django and apache also. I have been able to install and run apache server through xampp. but when i download and install mod_wsgi.so file and paste it in module folder and just add this line LoadModule wsgi_module modules/mod_wsgi.so to httpd.conf file and try to restart the server it doesnt start and i am getting the following error


This is completely wrong and cannot work. It is similar to put Diesel into your Ferrari instead of high octane gasoline.

I am very sorry, but your goal (installing Django with mod_wsgi on a WIndows PC) is a very,very, very, very sophisticated task and I am very sure, that you wont ever succed. You have to compile the module by yourself and cannot simply take any binary.

Maybe you will be more lucky by using a Linux Distribution (Ubuntu), as it is supported far better and there are plenty of tutorials how to install Django on a Ubuntu / Apache Server, which is still a sophisticated task. This forum cannot help you, you should go for Django / Ubuntu forums for further help. It is a long way. Sorry, but thats as it is.

P.S.: If i were you, i would go for a professional hoster which applies a Django environment. For example http://djangoeurope.com/
Anything else is a very hard job and will cost you all your hairs and lots of time....
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 62 guests