Page 1 of 1

Apache unexpectedly shut down

PostPosted: 19. June 2021 14:20
by Kaworu
Hi people.

I have the exact same problem. Just I did not change anything in my configuration, it was the same way since I installed XAMPP after reinstalling Windows 10.

First I tried to fix it with according to comments posted there (https://stackoverflow.com/questions/17440727/apache-shutdown-unexpectedly) on StackOverflow, but it did not help.

Then I saw this topic.

My apache_start.bat script tells me this:

AH00526: Syntax error on line 46 of D:/xampp/apache/conf/extra/httpd-vhosts.conf:
Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the server configuration


I looked into this file and the line is as follows:

WSGIScriptAlias / /var/www/test/home.wsgi


I thought that the problem is with additonal "/" at the beginning, so I deleted that. Still, the problem did not went away, so I restored (just in case).

Is somebody would like to tell me what is wrong with this line and how to change it, I would be truly grateful.

Thank you in advance :-)

Re: Apache unexpectedly shut down

PostPosted: 19. June 2021 20:23
by Altrea
no, the problem is that you use linux syntax on a windows system.
we do not have any clue where these configuration is coming from.
xampp does not deliver any active virtual hosts.

Re: Apache unexpectedly shut down

PostPosted: 19. June 2021 20:25
by Kaworu
Hm, could be. But I am sure I have used a Windows installation.

Oh well. Should I just comment out all the virtual host stuff? Or maybe I should do something different?

Re: Apache unexpectedly shut down

PostPosted: 20. June 2021 07:59
by Altrea
i don't know. You did not show us the full vhost configuration so we are not able to findnout where this might be created.

Re: Apache unexpectedly shut down

PostPosted: 20. June 2021 12:32
by Kaworu
Ah, okay, sorry about that. The configuration is this:

<VirtualHost *:80>
DocumentRoot /var/www
WSGIScriptAlias / /var/www/test/home.wsgi
<Directory /var/www/test>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


[I hope this is what you asked for? ;-) ]

Re: Apache unexpectedly shut down

PostPosted: 20. June 2021 14:14
by Altrea
Seems like you tried to implement Python with XAMPP, but followed a very old tutorial for the wrong operating system.
I have found this code in the book "Introducing Python: Modern Computing in Simple Packages" for example: https://books.google.de/books?id=FRdOBQAAQBAJ&pg=PA240&lpg=PA240&dq=%22WSGIScriptAlias+/+/var/www/test/home.wsgi%22&source=bl&ots=xiTXLBdWeo&sig=ACfU3U2iurK5FBTir5sHnpUoLcSV95coow&hl=de&sa=X&ved=2ahUKEwiTiIGzpabxAhWe_rsIHV_OD-wQ6AEwAnoECAIQAw#v=onepage&q=%22WSGIScriptAlias%20%2F%20%2Fvar%2Fwww%2Ftest%2Fhome.wsgi%22&f=false

But the syntax is outdated and for Linux, so i would recommend to remove this whole virtualhost for now.

Re: Apache unexpectedly shut down

PostPosted: 20. June 2021 18:49
by Kaworu
Oh, thank you, now it is working ;-)

But I truly dunno why it was there in the first place, I just used Windows 10 installer and changed nothing in the settings... Oh well ;-)