Xampp Apache Service Not Starting - apache

I have installed xampp 3.2.1 in my virtual machine windows xp.i need mysql and apache services for my project mysql service starts easily but apache service is not staring even if it starts for few seconds it shut downs immediately.
checked that no other service or application like skype or any other is running on port 80 using xampp control panel Netstat
change the configurations of ports in httpd.conf and httpd-ssl.conf tried different ports like 1337 and 7331 , 3333 and 4444 , 81 and 444 and many others but no luck.
Tried disabling IIS as recommended in forums but again no luck.
Stopped Web Client in Services but no solution also recommended to check the path of mysql and apache services in services tab but there is no mysql and apache services in services tab.
Am I missing any configuration or is it virtual machine problem.
Any help is highly appreciated.

Exactly, skype application running on your pc is a factor that might disabled the xampp from working.. So ensure you signed out from the skype and start the xampp / wamp again.
Yes, it works after running.

you must change Port 443 to some other available port number in httpd-ssl.conf file

I've just solved the same problem. In my event it was about virtual hosts configuration (httpd-vhosts.conf). Probably there was a kind of typo or a wrong command. I deleted all my added virtual hosts, restarted apache in xampp (to see that it is starts running), then added the virtual hosts anew, and one more time restarted xampp.
Best,
Eugene
PS. Make a copy of the file httpd-vhosts.conf for recovery.

Related

XAMPP 1.7.7 - Apache won't start (ports already changed)

I installed XAMPP 1.7.7 for testing on the old php version. Current XAMPP is running fine. I changed the ports in httpd.conf from 80 to 8081, and in httpd-ssl.conf from 443 to 4434.
Still, when trying to start apache, I get the error
"error: apache was stopped unexpected. This might be caused by a blocked port, missing dependencies,..."
I also changed these ports again (they were not used in both cases).
I run XAMPP as an administrator and I disabled my firewall without any results... What are other possible options? (Error-)Logs are empty.
maybe the following information might help:
I am using windows 10, xampp 1.7.7 portable, and although I changed the ports, when I run XAMPP, it tells me the following:
Problem detected!
Port 80 in use by "Unable to open process" (PID 4)!
Apache will NOT start without the configured ports free!
Try to do this:
Run -> CMD, type services.msc and stop the program:
Web Deployment Agent Service
Afterwards try restarting XAMPP and say if it works or not!
I fixed it via reinstalling into another directory.

Apache is not running from XAMPP

I have IIS and skype like things on my system. So, i changed my port from 80 to 8081 and PID from 443 to 4433 or any other. And it was working after installation well and good. But then i restarted my system again. Apache didn't run and i tried to stop the ports and also changes my PORT and PID but it's still not working. Can anyone help me on this situation and i don't under all this now.
these are the I have done this too
I have installed xampp. but apache is not starting showing is program can't start because api-ms-win-crt-runtime-I1-1-0. dil is missing from your computer. Try reinstalling the program to fix this program

XAMPP on Windows - Apache not starting

I have installed XAMPP on my windows 7 machine but can't get Apache to work.
On start I get the following errors:
13:09:21 [apache] Apache Service Detected With Wrong Path
13:09:21 [apache] Uninstall the service manually first
13:09:21 [apache] Possible problem detected!
13:09:21 [apache] Port 80 in use by "system"!
13:09:21 [tomcat] Tomcat Service Detected With Wrong Path
13:09:21 [tomcat] Uninstall the service manually first
After opening the XAMPP panel and installing Apache service: I have tried start it, it always get stuck "Starting apache service..."
Any advice on how I could resolve this ?
Thanks
Jamil
I was able to fix this!
Had the same problems as stated above, made sure nothing was using port 80 and still not working and getting the message that Apache and Mysql were detected with the wrong path.
I did install XAMPP once before, uninstalled and reinstalled. I even manually uninstalled but still had issues.
The fix. Make sure you backup your system first!
Start Services via Control Panel>Admin Tools (also with Ctrl+R and services.msc)
Look for Apache and MySQL services. Look at the patch indicated in the description (right click on service then click on properties). Chances are that you have Apache listed twice, one from your correct install and one from a previous install. Even if you only see one, look at the path, chances are it's from a previous install and causing your install not to work. In either case, you need to delete those incorrect services.
a. Got to command prompt (run as administrator): Start > all programs > Accessories > right click on Command Prompt > Select 'run as administrator'
b. on command prompt type sc delete service, where service is the service you're wanting to delete, such as apache2.1 (or sc delete Apache2.4). It should be exactly as it appears in your services. If the service has spaces such as Apache 2.1 then enter it in quotes, i.e. sc delete "Apache 2.1"
c. press enter. Now refresh or close/open your services window and you'll see it`s gone.
DO THIS for all services that XAMPP finds as running with an incorrect path.
Once you do this, go ahead and restart the XAMPP control panel (as administrator) and voila! all works. No conflicts
my friend this the will fix ur problem ;)
in root of folder ( xampp ) just run this file ( setup_xampp.bat ) then press enter
and try to start the apache server
every things will work like charm ;)
The most likely reason would be that something else is using port 80. (Often this can be Skype, IIS, etc.)
This tutorials shows How to Change the Apache Port in XAMPP
I spent over 3 hours to find out solution. Actually port 80 was being used by "system" service so I tried to change port from 80 to 8080 in "httpd" file but same problem raised "port 80 is used by system". It had driven me mad for 3 hours as every thing was changed like port , localhost server etc pointing to 8080.
At last I found mistake that was server root. Basically "Server Root" in "httpd" should be pointing to apache foler of xampp. In my case that's was
ServerRoot "xampp/apache"
I just changed it as follows:
ServerRoot "C:/xampp/apache"
It has worked successfully and now everything is running with OK status.
refer this:- http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/
and to enable telnet http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx
I encountered the same issue after XAMPP v3.2.1 installation. I do not have Skype as most people would believe, however as a Software Developer I assumed port 80 is already in use by my other apps. So I changed it by simply using the XAMPP Control Panel:
Click on the 'Config' button corresponding to the APACHE service and choose the first option 'Apache (httpd.conf)'. In the document that opens (using any text editor - except MS Word!), locate the text:
Listen 12.34.56.78:80
Listen 80
And change this to:
Listen 12.34.56.78:83
Listen 83
This can be any non-used port number.
Thanks.
I know this is somewhat of an old topic, but in case anyone reads this in the future...
I uninstalled xampp, deleted everything under the c:\xampp folder, then reinstalled xampp as administrator and it worked like a charm.
For me, the problem was I had two installations of Apache Tomcat
The following steps solved my problem:
Open up services.msc in command prompt
Select the Apache Tomcat service, right click and select properties
Check the path to the executable of the service
Follow the instructions in
https://stackoverflow.com/questions/7190480/modifying-the-path-to-executable-of-a-windows-service
to change the path to "\tomcat\bin\tomcat7.exe" //RS//Tomcat7
Restart XAMPP Control Panel
I had my Apache service not start same as MySQL one.
Please follow these steps if none of above tips works :
Open regedit.exe on any windows this available . Run as administrator. (Only on windows 7 and later editions )
Go to local machine/system/controlset001/services
Find and delete folders of services apache and mysql .
Uninstall xampp . Delete folder of xampp.
Restart computer and reinstall Xampp . After that your Xampp apache and Mysql should work.
Note: Ports 80 and 443 must be unused by any program.
If it is in use . Just edit ports. There is a lot of tutorials about that .

Unable to start Apache in XAMPP

I have downloaded xampp-win32-1.7.7-usb-lite.7z and unzip it to C drive in my VirtualBox. Then i tried to start Apache through xampp-control.exe. when i press Start button in-front of Apache label, apache started port 80 display in text area in that window. but nothing happen. Start button not change to stop. but mysql is start properly. how could i start Apache ?
Try ZendServer CE, it works great in a Virtual Box. Apache gives problem inside a Virtual Box.
You can also refer this post: Apache won't start in VirtualBox
Try to Restart Xampp from the option Explore
Xampp Contorl-> Explore-> Xampp-Restart
If you have other service installed like .NET SQL Server it may block xampp
Xampp Contorl-> SCM -> SQL server-> Manual from Automatic
Xampp Control-> SCM-> Web client->Disabled
If you like to run service always Check SVC for both Apache Mysql It will ask you to install service click YES to install
Finally Restart your machine
i don't know whether your issue is resolved or not,if not please try the below mentioned cases
1.if your Skype account is logged in,please log out from that(usuall skype uses default Ports numbers 80 and 443 )
2.check whether any other application is running on the port 80,if so please change that port number to other.to see that from a command prompt, run netstat -a. This will output a list of ports that are currently running.
(how to change the default port number is open your httpd.conf file and search for localhost you will find 80 there and change that to your desired number)
i think these are the main cases so please go through this cases also..

XAMPP PORT 80 is Busy / EasyPHP error in Apache configuration file:

This problem has completely shot my entire day. I reformatted my old windows XP comp and tried installing XAMPP only to find that when i try to start Apache xampp claims port 80 is busy....WHAT DOES THAT EVEN MEAN?
So I tried just uninstalling and moving to EasyPHP instead and when I installed that I get the error "error in Apache configuration file: the system cannot execute the specified program"
No, I do not have Skype or any other programs really for that matter at this point, like I said I JUST REFORMATTED so idk whats going on.
I would love to get this fixed, but if you leave me a answer please be specific on directions bc I'm only programming, never been to big on IT and playing with command lines and what not for me isn't to much fun.
Things to be done to free port 80:
check if skype is running, exit from skype
check services.msc if web deployment agent service is running
check if IIS is running, stop it.
Once you start apache, you can sign into skype.
Only one process can use port 80 at a time. Port 80 is the default port for web servers, so when you navigate to websites over HTTP, you are actually navigating to that server's port 80 by default (when you use HTTPS, the port is 443).
You can try to hunt down all the programs that are running on port 80, but there's an easier way that will work for development. When running XAMPP, click "Config" under "Apache". Replace Listen 80 with Listen 8080 and ServerName localhost:80 to ServerName localhost:8080.
Then, when you want to look at your masterpiece, navigate to http://localhost:8080 in your browser.
SQL Server Reporting Services (SSRS) SSRS can remain active even if you uninstall SQL Server.
To stop the service:
Open SQL Server Configuration Manager.
Select “SQL Server Services” in the left-hand pane.
Double-click “SQL Server Reporting Services”.
Hit Stop.
Switch to the Service tab and set the Start Mode to “Manual”.
Skype
Irritatingly, Skype can switch to port 80. To disable it, select Tools > Options > Advanced > Connection then uncheck “Use port 80 and 443 as alternatives for incoming connections”.
IIS (Microsoft Internet Information Server)
For Windows 7 (or vista) its the most likely culprit. You can stop the service from the command line.
Open command line cmd.exe and type:
net stop was /y
For older versions of Windows type:
net stop iisadmin /y
Other
If this does not solve the problem further detective work is necessary if IIS, SSRS and Skype are not to blame. Enter the following on the command line:
netstat -ao
The active TCP addresses and ports will be listed. Locate the line with local address “0.0.0.0:80″ and note the PID value. Start Task Manager. Navigate to the Processes tab and, if necessary, click View > Select Columns to ensure “PID (Process Identifier)” is checked. You can now locate the PID you noted above. The description and properties should help you determine which application is using the port.
Run this in command prompt:
netstat -ano | find ":80"
It will show you what process (PID) is listening on port 80.
From there you can open task manager, make sure you have PID selected in columns view option, and find the matching PID to find what process it is.
If its svchost.exe you'll have to dig more (see tasklist /svc).
I had this happen to me recently and it wasn't any of the popular answers like Skype either, could be Adobe, Java, anything really.
Port 80 might be busy with other application like IIS. If you don't want to stop it, you can change the apache port. Here is the way..
go to the C:\xampp\apache\conf (directory where you installed xampp). Now, locate the httpd.conf.
Open it with any text editor (like notepad) and go the line that says Listen 80
Change this with any other port (like Listen 1234)
Save the file. Restart the server and go ahead.
xampp port 80 is busy when some other application is using the same port at that time. This can be solved by using one of the following methods:
Detect the application which is using the port 80 and close it.
This one is more efficient. xampp installs apache server with default port 80. So, you can change this port manually to any number.
Just find the httpd.conf file in xampp installation and replace the following line of code.
#Listen 12.34.56.78:1234
Listen 80
to any port number of your choice. Here, i have taken 8000.
#Listen 12.34.56.78:1234
Listen 8000
Find the following code in the same file httpd.conf
ServerName localhost
Replace with the following, take the same number you have used in upper code.
ServerName localhost:8000
For detailed answer, check http://webolute.com/blog/programming/this-may-be-due-to-a-blocked-port-missing-dependencies
Just do one thing
open skype > tools > advance or advance settings Change port 80 to something else 7395
Restart your system then start Apache
I've found that the biggest culprit for taking up port 80 on newer Windows installs is the BranchCache Service (#3) in this list...
SQL Server Reporting Services
Web Deployment Agent Service
BranchCache
World Wide Web Publishing Service
These 4 service probably cover 90% of the native Windows Services that take up port 80.
The other 10% is the hidden HTTP.sys service/driver which takes port 80 when another service requests it. Run this to disable it, and reboot.
sc config http start= disabled
Aside from Skype, TeamViewer is also very commonly installed software, and will take port 80 if not configured otherwise.
List taken from: Opening Up Port 80 For Apache to Use On Windows
If you are running VMWare Workstation , you need to stop the VmWare Workstation server - port 443 as well
So I have faced the same problem when trying to start apache service and I would like to share my solutions with you.
Here is some notes about services or programs that may use port 80:
Skype: skype uses port 80/443 by default. You can change this from tools->options->
advanced->connections and uncheck the checkbox "use port 80 and 443 for addtional incoming connections".
IIS: IIS uses port 80 be default so you need to shut down it. You can use the following two commands
net stop w3svc
net stop iisadmin
SQL Server Reporting Service: You need to stop this service because it may take port 80 if IIS is not running. Go to local services and stop it.
These options work great with me and I can start apache service without errors.
The other option is to change apache listen port from httpd.conf and set another port number.
Hope this solution helps anyone who face the same problem again.
This happens because some other programs running in your system is using the default port 80 used for http service by apache server in xampp/easy php.
Some programs like skype usually use port 80.
so find such program and remove it ...
For finding programs listening port 80 refer Port 80 listening programs
Try finding the Service running on the PID that is blocking the service from Task manager->Services
In case this isn't of help go to Task Manager->Services
Go to the Services button on bottom right of window and stop the Web Deployment Agent Service. Retry starting Apache . That might solve the problem.
This problem is because port 80 is used by some other application. Try to reconfigure port.