This may be due to a blocked port, missing dependencies, ...

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

This may be due to a blocked port, missing dependencies, ...

Postby rocchr » 29. October 2021 21:54

At starting, Apache error :

22:30:17 [Apache] Checking default ports...
22:30:17 [Apache] Attempting to start Apache app...
22:30:17 [Apache] Executing "c:\xampp\apache\bin\httpd.exe"
22:30:17 [Apache] Return code: 0
22:30:17 [Apache] Status change detected: running
22:30:18 [Apache] Status change detected: stopped
22:30:18 [Apache] Error: Apache shutdown unexpectedly.
22:30:18 [Apache] This may be due to a blocked port, missing dependencies,
22:30:19 [Apache] improper privileges, a crash, or a shutdown by another method.
22:30:19 [Apache] Press the Logs button to view error logs and check
22:30:19 [Apache] the Windows Event Viewer for more clues[[b]/b]
22:30:19 [Apache]
If you need more help, copy and post this
22:30:19 [Apache] entire log window on the forums

I changed port 80 to 8080 in httpd.conf and httpd-ssl.conf, but doesn't work !!!

Need help please
Thank you
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: This may be due to a blocked port, missing dependencies,

Postby Altrea » 29. October 2021 22:29

Please double click the apache_start.bat script and tell us its response
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: 11936
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: This may be due to a blocked port, missing dependencies,

Postby rocchr » 29. October 2021 22:42

@echo off
cd /D %~dp0
echo Diese Eingabeforderung nicht waehrend des Running beenden
echo Bitte erst bei einem gewollten Shutdown schliessen
echo Please close this command only for Shutdown
echo Apache 2 is starting ...

apache\bin\httpd.exe

if errorlevel 255 goto finish
if errorlevel 1 goto error
goto finish

:error
echo.
echo Apache konnte nicht gestartet werden
echo Apache could not be started
pause

:finish
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: This may be due to a blocked port, missing dependencies,

Postby Altrea » 29. October 2021 22:44

I don't want to know the contents of the file.
I want you to execute this file and tell us what the output is.
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: 11936
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: This may be due to a blocked port, missing dependencies,

Postby rocchr » 29. October 2021 22:50

Executing :

Diese Eingabeforderung nicht waehrend des Running beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...
AH00526: Syntax error on line 257 of C:/xampp/apache/conf/httpd.conf:
<Directory> directive missing closing '>'

Apache konnte nicht gestartet werden
Apache could not be started
Appuyez sur une touche pour continuer...
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: This may be due to a blocked port, missing dependencies,

Postby rocchr » 29. October 2021 22:51

At line 257, I corrected and apache works successfully !

Thank you for your help !
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: This may be due to a blocked port, missing dependencies,

Postby Altrea » 29. October 2021 22:53

AH00526: Syntax error on line 257 of C:/xampp/apache/conf/httpd.conf:


So what is the contents of C:/xampp/apache/conf/httpd.conf around line 257 (+- 10 lines should be enough)?
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: 11936
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: This may be due to a blocked port, missing dependencies,

Postby rocchr » 30. October 2021 10:21

It was <Directory ... I have forgotten the caracter ">" to close it !!!
But, now apache works normally.
Thank you
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 93 guests