Apache unexpectedly shut down

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

Apache unexpectedly shut down

Postby Kaworu » 19. June 2021 14:20

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 :-)
Kaworu
 
Posts: 8
Joined: 19. June 2021 14:14
XAMPP version: 3.3.0
Operating System: Win 10

Re: Apache unexpectedly shut down

Postby Altrea » 19. June 2021 20:23

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache unexpectedly shut down

Postby Kaworu » 19. June 2021 20:25

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?
Kaworu
 
Posts: 8
Joined: 19. June 2021 14:14
XAMPP version: 3.3.0
Operating System: Win 10

Re: Apache unexpectedly shut down

Postby Altrea » 20. June 2021 07:59

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache unexpectedly shut down

Postby Kaworu » 20. June 2021 12:32

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? ;-) ]
Kaworu
 
Posts: 8
Joined: 19. June 2021 14:14
XAMPP version: 3.3.0
Operating System: Win 10

Re: Apache unexpectedly shut down

Postby Altrea » 20. June 2021 14:14

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache unexpectedly shut down

Postby Kaworu » 20. June 2021 18:49

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 ;-)
Kaworu
 
Posts: 8
Joined: 19. June 2021 14:14
XAMPP version: 3.3.0
Operating System: Win 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 154 guests