XAMPP windows 7 - Apache shutdown unexpectedly... suddenly, and I do not wyy - xampp

I have on my laptop installed XAMPP. It was running for years… (v3.1.x, not the latest version) No problem at all.
Suddenly saterday evening I try to start the appache server by xampp control panel and I get the next error:
19:33:25 [Apache] Error: Apache shutdown unexpectedly.
19:33:25 [Apache] This may be due to a blocked port, missing dependencies,
19:33:25 [Apache] improper privileges, a crash, or a shutdown by another method
19:33:25 [Apache] Press the Logs button to view error logs and check
19:33:25 [Apache] the Windows Event Viewer for more clues
19:33:25 [Apache] If you need more help, copy and post this
19:33:25 [Apache] entire log window on the forums
I have been googling and searching.
I have Skype already disabled port 80/443 at the time I have
installed Skype
I have changed httpd.conf; Listen 8080 in stead of 80; Listen 4433 in stead of 443
I have also been searching who is using port 80 by Netstat xampp panel. I do not see any PID process with porth 80
I have activate “show debub information”, but I don’t see information of an error.
There is nothing written in the error.log. When it happen it was 5-12-2015 and I the last lines in the error logs are from
3-12-2015.
I have downloaded the latest XAMPP version (zip), unzipped first put it in a different directory. Same error
I have tried to look in the windows event viewer but I couldn't find anything or I'm not looking in the good log item in windows
I have done all these command with the cmd:
net stop http
netstat –abno
netstat -abno | find ":80"
netstat -abno | find ":443"
netstat -a –b
netstat –ano
Not a result that port 80 is used. So it seems to me that it is NOT a port issue.
It is on window 7 system, bitdefender total security 2015, wich is already installed in july of this year.
I download always the XAMPP zip version and start xampp always by the control panel not as a service.
Has anybody an idea what has happen or what could be happen?
I have also read these links
XAMPP, Apache - Error: Apache shutdown unexpectedly
https://stackoverflow.com/questions/788348/how-do-i-free-my-port-80-on-localhost-windows
https://stackoverflow.com/questions/14245474/apache-wont-run-in-xampp

Related

Xampp installation difficulty

I keep on getting the following error message each time I try to install XAMPP on PC:
11:15:57 PM [Apache] Problem detected!
11:15:57 PM [Apache] Port 443 in use by ""C:\Program Files\VisualSVN Server\bin\VisualSVNServer.exe" -k runservice -C "LoadModule log_visualsvn_module bin/mod_log_visualsvn.so" -E nul" with PID 8608!
11:15:57 PM [Apache] Apache WILL NOT start without the configured ports free!
11:15:57 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
11:15:57 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
Can someone help me please.
If Xampp isn't installing due to the in-use port, you can open Task Manager, then go to the services tab, sort by PID and then find the PID as mentioned in the error message. Right-click on the matching service, then select stop from the context menu. Once the service is stopped, then try installing Xampp again.
If Xampp has installed, but won't start a server due to an in-use port, you can configure Xampp to use a different port. You can do so by following the instructs found here in the top answer on this Stackoverflow.

Unable to start XAMPP Apache server on MacOS-Sierra

Whenever I'm trying to start my Apache server from XAMPP on my Macbook (MacOS-Sierra) . I'm getting following application log :
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
And status remains Stopped. I re-install XAMPP and restarted my laptop multiple times, but I'm still having same issue. Couldn't find anything help to resolve this issue.
I found the solution:
Make sure port 80 is not being used (Use Network Utility and scan for port 80. If you found any application using port 80, then kill it)
Open terminal and execute
sudo apachectl stop
(ignore, if you get any error)
On the same terminal window execute
sudo /Applications/XAMPP/xamppfiles/bin/apachectl start
Open XAMPP control panel, your apache server might have started by now, if not then you can start manually by clicking start button.
This worked for me!!
Simply goto your terminal and type:
sudo apachectl stop
It'll ask for password. Enter your system password.
Go back to XAMPP control panel and start Apache.
It should get started now.
I had the same Problem and fixed it by deleting the lib folder in Applications/XAMPP/xamppfiles/ and installing XAMPP again. It's probably due to old lib files from previous versions not being updated properly.
Another related issue, which I faced caused Apache sever failure. And failure logs is :
[Sun Jul 30 12:43:58.747822 2017] [unique_id:alert] [pid 9188] (EAI 8)nodename nor servname provided, or not known: AH01564:
unable to find IPv4 address of "MacBook-Pro.local" AH00016: Configuration Failed
To solve this :
Executed following command
sudo -e /etc/hosts
Then, changed following entries
127.0.0.1 localhost
::1 localhost
to
127.0.0.1 localhost MacBook-Pro.local
::1 localhost MacBook-Pro.local
I had the same issue when I update my XAMPP app, if you have to do this, you first have to uninstall your XAMPP (save your HTDOCS files in another folder, NOT in XAMPP folder, or you will lose it), and after that you can install the newest version of XAMPP. It worked for me, hope for you too.

XAMPP Not Starting

I have just installed XAMPP on my PC and it doesn't seem to sart. I am getting this error:
21:34:50 [Apache] Attempting to start Apache app...
21:34:50 [Apache] Status change detected: running
21:34:51 [Apache] Status change detected: stopped
21:34:51 [Apache] Error: Apache shutdown unexpectedly.
21:34:51 [Apache] This may be due to a blocked port, missing dependencies,
21:34:51 [Apache] improper privileges, a crash, or a shutdown by another method.
21:34:51 [Apache] Press the Logs button to view error logs and check
21:34:51 [Apache] the Windows Event Viewer for more clues
21:34:51 [Apache] If you need more help, copy and post this
21:34:51 [Apache] entire log window on the forums
Try to change listen port of Apache, open "httpd.conf" file (C:\xampp\apache\conf\httpd.conf), then change line:
#Listen 12.34.56.78:80
Listen 80 to
#Listen 12.34.56.78:80
Listen 9000 or other number
Save and restart Apache Server. It works for me.
Other programs like Skype use the same ports. If you usually use Skype and you dont want to change "httpd.conf" try to unmark the option in options->advanced configuration-> connections that allows Skype, to use these ports .
This was the solution in my case.
two methods:
1-Try to change the default listen port of Apache from 80 to 81, open "httpd.conf" who is in (C:\xampp\apache\conf\httpd.conf)
#Listen 12.34.56.78:80
Listen 81
2-on windows try to stop service IIS-2, to do it open terminal with privileges and type thoses commands to stop and start it
net stop WAS
net start W3SVC

XAMPP not running on Windows 7

I have installed XAMPP on Windows 7 ulimate successfully. But the following error was found during running Apache from XAMPP Control Panel:
Problem detected!
Port 3306 in use by ""C:\Program Files\MySQL Server 5.1\bin\mysqld" - defaults-file....
MySQL WILL NOT start without the configured ports free
You need to uninstall/disable/reconfigure the blocking application
or reconfigure my SQL and the Control Panel to listen on a different port
Please help solve this problem. Thanks in advance!
The message clearly says the port 3306 is being used by MySQL server. So XAMPP fails to bind to the same port.To launch XAMPP successfully, kill the MySQL server process. Then try restarting XAMPP.

Apache 2.4.3 (with XAMPP 1.8.1) not starting in windows 8

Just got XAMPP 1.8.1 installed on my Windows 8 PC, this version includes packages mentioned below:
Apache 2.4.3
MySQL 5.5.27
PHP 5.4.7
phpMyAdmin 3.5.2.2
FileZilla FTP Server 0.9.41
Tomcat 7.0.30 (with mod_proxy_ajp as connector)
Strawberry Perl 5.16.1.1 Portable
XAMPP Control Panel 3.1.0 (from hackattack142)
When I launched and tried to start Apache, it gave following error:
12:04:41 PM [Apache] Attempting to start Apache app...
12:04:41 PM [Apache] Status change detected: running
12:04:42 PM [Apache] Status change detected: stopped
12:04:42 PM [Apache] Error: Apache shutdown unexpectedly.
12:04:42 PM [Apache] This may be due to a blocked port, missing dependencies,
12:04:42 PM [Apache] improper privileges, a crash, or a shutdown by another method.
12:04:42 PM [Apache] Check the "/xampp/apache/logs/error.log" file
12:04:42 PM [Apache] and the Windows Event Viewer for more clues
After that I checked error.log, it was empty so no help from there.
So here is the solution for this:
I check port 80 used by Skype, after that I changes port to 81 and also along with that somewhere i read this error may be because of SSL Port then I changed SSL port to 444. However this got resolved easily.
One most important thing to notice here, all the port changes should be done inside config files, for http port change: httpd.conf for SSL httpd-ssl.conf. Otherwise changes will not replicate to Apache, Sometime PC reboot is also required.
Edit: Make Apache use port 80 and make Skype communicate on other Port
For those who are struggling with Skype, want to change its port and to make Apache to use port 80.
No need to Re-Install, Here is simply how to change Skype Port
Goto: Tools > Options > Advanced > Connection
There you need to uncheck Use port 80 and 443 as alternative for incoming connections.
That's it, here is screen shot of it.
I had the exact same error.
It was because i didn't run setup_xampp.bat
This is a better solution than going through config files and changing ports.
This problem may occur due to apache not getting required port (default is 80).
The port may be being used by other services.
For example: Skype also has default port 80.
Installing Skype and Apache both on same machine will cause conflict and hence Apache will not start.
Either, you change Skype port or change Apache port as described in following steps:
Change the ports of Apache and it will work for you.
Go to httpd.conf
How to change port for Apache:
Search for:
ServerName localhost:80
Change it to:
ServerName localhost:81
Also Search For:
Listen 80
Change it to:
Listen 81
If you have created any virtual hosts, change the ports there also.
Then restart your apache.
I had the same problem, but I understand the VMware service is the problem. VMware host service and Apache service conflict together.
To Solve it »
Run your task manager » in services tab find VMwareHostd » then right click and stop it » every thing have been solved.
Enter services.msc and shutdown anything SQL you have running.
The SQL server might be taking over the port.
I had the same problem and error, I tried changing the ports for http port from 80 to 81 and ssl port from 443 to 444 but still received the same error so I reverted the ports to default and ran setup_xampp.bat which solve the problem in seconds.
Skype is usually the culprit because it uses port 80 by default. Just close it or uncheck "Use port 80 and 443 as alternatives for incoming connections" under tools > options... > advanced > connection and then restart Skype.
I had to manually edit the 2 text files (httpd.conf and httpd-ssl.conf) using the Config button for Apache to run and change in notepad from 80 > 81 and 443 > 444
Using the Xampp UI config manager doesn't save the changes into Apache.
change 80 to 81 and 443 to 444 by clicking config button and editing httpd.conf and httpd-ssl.congf. Now you can Access XAMPP from 127.0.0.1:81
An error in your httpd.conf or other Apache config files will cause this. Revert httpd.conf et al to the pristine, installer versions and see if Apache runs again.
(I tried Skype and other suggestions here, no luck, but logs [XAMPP > Apache > Logs button] showed that it ran once when first installed. That was the giveaway.)
Likely errors:
Did you edit with a Windows text editor that changes line endings to non-Unix? (Solution here.)
Missing or invalid DSO files (.so)
I had this problem and then I ran "apache_start.bat" the error in german told me there was a problem with line 51 in httpd-ssl.conf which is
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
What I did was comment lines 163 (ssl module) and 522 (httpd-ssl.conf include) in httpd.conf;
I don't need ssl for development, so that solved it for me.

Resources