Good Morning!
Dear php master how do I fix this error? This happened on a laptop where I have installed x.ampp version 6.5.30, the following mistakes:
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check the Windows Event Viewer for more clues.
If you need more help, copy and post this entire log window on the forums.
Thanks in advance.
Related
I have been using xampp for a while and suddenly it brings error for apache and mysql:
"Apache or mysql shutdown unexpectedly This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums". A second attempt to retry will bring "apache/mysql not found".
I check both apache and mysql bin folder and i notice it removes httpd.exe and mysqld.exe this files automatically for some reason. I have tried several troubleshooting like un-installing and re-installing completely but its all been futile.
I manage to tweak it by creating a cmd file that copies this files (httpd.exe and mysqld.exe) where they are needed in xampp folder before i run xampp which seems to be working fine but i believe it shouldnt be so and i need to find out the reasons this files get removed on my pc. Any help and suggestions is highly welcomed.
check any third party antivirus software?
Kaspersky Enterprise v10 killed my WAMP installation on win10 a few months back...
Bit more complicated but ...
if that does not fix it, you can run disk mon.. a Microsoft tool, wait for it to happen again an find the process ID in the disk mon log, that matches your file and look for the process in task manager to see what program did the delete...
https://learn.microsoft.com/en-us/sysinternals/downloads/diskmon
In order to update PHP I downloaded the latest version of XAMPP which is 3.2.3 and installed it in the newxampp directory and then I renamed it to xampp and the previously present xampp folder was renamed to xamppp or something. Now the current xampp has the latest PHP version which is php7 but when I run the Apache and MySQL, it does not start and give me the message
Error: Apache shutdown unexpectedly.
[Apache] This may be due to a blocked port, missing dependencies,
[Apache] improper privileges, a crash, or a shutdown by another method.
[Apache] Press the Logs button to view error logs and check
[Apache] the Windows Event Viewer for more clues
[Apache] If you need more help, copy and post this
[Apache] entire log window on the forums
I don't know what to do please help me.
Sometimes in that bundled servers you have defined variables that set the path for the php module directory or some other parts. So you should rename the old directory first then install the new one to that directory that you have a running version and copy the needed parts back to the new one.
Otherwise i think you get some problems in running it.
I have spent two weeks trying to get PHP installed, I want t use it to interface to MYSQL.
I first installed MYSQL and got that running perfectly OK and created a small database to record information about my family tree.
I then installed PHP manually and took some sample code from a tutorial to display Hello World, I could not get the PHP element to work, I inserted some HTML code at various points in the file, all of which displayed as expected, I also inserted a chunk of javascript to display time and date, that also worked fine, but the PHP code not even giving an error message still would not display hello world.I then installed XAMPP, but did not include MYSQL as it was already running perfectly well. , but when I came to start XAMPP control panel Apache started fine but it did not recognise that MYSQL was already installed, and I could find no way of telling it where MYSQL was installed. So I uninstalled XAMPP and MYSQL and (I think) PHP and then reinstalled XAMPP selecting all the options.
This time Apache will not start on some occasions not giving any error on others giving the following error:
Error:
Apache shutdown unexpectedly. 12:19:11
[Apache] This may be due to a blocked port, missing dependencies, 12:19:11 [Apache] improper privileges, a crash, or a shutdown by another method. 12:19:11
[Apache] Press the Logs button to view error logs and check 12:19:11
[Apache] the Windows Event Viewer for more clues 12:19:11
[Apache] Attempting to start MySQL app... 12:19:39
[mysql] Status change detected: running.
I have also installed XAMPP without having MYSQL previously on a laptop apache runs on this OK put still does not display hello world.
I have each time checked the W3SVC service and stopped it where necessary.
I am completely stuck as of now and have no idea how to proceed. I am retired 5 years, before that I worked 45 years in IT and am proficient in SQL and understand the documentation on PHP reasonably well, everything on the internet indicates put echo "Hello World" between tags and it should just happen, any help would be appreciated, all I really need is to get PHP running.
Try this:
Press Window + R, type: services.msc
Find World Wide Web Publishing Service and Stop it !
I am new to php. please help me out. i have a xampp installed on my windows. when i am trying to start apache service it throws me the error. Tried to track the error in apache error log which says "www.example.com:443:0 server certificate does NOT include an ID which matches the server name" and on the control panel i get red lines
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method
I searched over the internet and found over lot of solution but none of them worked for me.
i am using windows 7 - 64bit
I have recently installed xampp in windows 7. When I try to run Mysql I get the following error:
Error: MySQL shutdown unexpectedly.
12:27:51 PM [mysql] This may be due to a blocked port, missing dependencies,
12:27:51 PM [mysql] improper privileges, a crash, or a shutdown by another method.
12:27:51 PM [mysql] Press the Logs button to view error logs and check
12:27:51 PM [mysql] the Windows Event Viewer for more clues
12:27:51 PM [mysql] If you need more help, copy and post this
12:27:51 PM [mysql] entire log window on the forums
Within my.ini I have changed the port from 3306 to 3307 because I have a different mysql server 5.6.19 running in my computer as well. But still i get the same error. Please can anyone help me???? I also uninstalled Xampp and installed it again :(.
Just fixed this same issue not 10 minutes ago.
Open XAMPP
Click on Config
Click on Service and Port Settings
Click MySQL tab
Change Main Port
Click Save
Then restart the MySQL service
Experienced this before try to close all your chatting program like skype and etc. cause it uses the same port as xampp port 80, after closing now you can re-open it after running xamp
I had a similar problem before and the only solution I found was to use an older version of XAMPP. I'm not at my home PC at the moment and can't give you the exact version that worked for me at this moment, but I will post it in the comments later if it helps (my best guess is 1.7.5).
In the meantime, if you are using the newest version of XAMPP you might try an older version.