I am in the XAMPP control panel with the Start buttons to Aoache and MySQL enabled. While clicking on the Start button to MySQL works fine, showing the available port, when I click on the Start button to Apache, I first get a message saying "Attempting to start Apache service" Then I get a popup window appears, asking if I want Net Command to make a change to my device. I initially clicked yes, but nothing happened.
I later saw these three red lines when I launched the XAMPP control panel:
2:36:34 PM [Apache] Uninstall/disable the other service manually first
2:36:34 PM [Apache] Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
2:36:34 PM [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
Now I used to have Apache2.4 installed prior to installing XAMPP, but I had completely uninstalled it before installing XAMPP. I see no trace of Apache2.4 remaining, nor do I see the folder that the above three lines referred to.
I'm trying to get the Apache server launched in XAMPP, so I can get started with PHP, but I don't know how to resolve this issue with the previous Apache2.4, which I'd already uninstalled, but somehow, there's some dangling reference to Apache2.4.
What do I need to do so that Apache on XAMPP launches correctly? Is there something I'm missing?
I tried uninstalling the old Apache2.4, expecting to see this in the list of apps to uninstall, but it's not there (from when I'd previously uninstalled Apache 2.4). Given that, I don't see why XAMPP seems to think there's a previous Apache server existing on my computer.
Once you uninstall the Apache2.4 restart your device and then install XAMPP. It works to me, I hope it'll works to you.
Related
I couldn't able to "start apache" in XAMPP control panel v3.2.4 in my laptop ie; on Windows 7 .
IT SAYS "the program can't start because VCRTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem".
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 button to view error logs and check the Windows Event Viewer for more clues if you need more help,and post this entire log window on the forums.
Do you have C++ Redistributable for Visual Studio 2015 RC?
Check this question: installing apache: no VCRUNTIME140.dll
I am sure this is not a replication issue. I already red about :
Apache not starting on windows 7 and XAMPP on Windows - Apache not starting.
But still I haven't found a solution to my concern which seem to be particular.
I am on Windows 7 64bits. It is a fresh installed OS with all important updates made.
I did install xampp 7.x to work on Drupal 7. But apache error "0xc000007b".
After a lot of research I found out that new versions of Apache have a lot of difficulties working on Windows 7.
So I found "XAMPP 1.8.2" (a very old version), binary files that I just donwloaded, uncompressed and place on root drive "c:\". I lauched "XAMPP Control Panel", "Apache" and "MySQL". It worked fine. I could work on Drupal 7.
But now I need to work on Drupal 8 which requires PHP 5.5.9. And PHP 5.5.9 requires APACHE 2.4.
Attempt 1 : New binary files for "apache" and "php"
I upgraded PHP and APACHE (downloading binary PHP and APACHE and replacing folder "php" and overidding folder "apache" on my XAMPP folder). When I launch XAMPP Control Panel, MySQL still works but Apache show this error :
11:42:18 AM [Apache] Port 80 in use by "Unable to open process" with PID 4!
11:42:18 AM [Apache] Apache WILL NOT start without the configured ports free!
11:42:18 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
11:42:18 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
11:42:18 AM [Apache] Attempting to start Apache app...
11:42:19 AM [Apache] Status change detected: running
Attempt 2 : Complete new 7.x version install file
When I install a complete new version (with the xampp 7.x install file) such as "7.x", the error message is now : 0c000007b.
How do you think I can solve this issue ?
Thank you a lot.
11:05:16 AM [Apache] Apache Service detected with wrong path
11:05:16 AM [Apache] Change XAMPP Apache and Control Panel settings or
11:05:16 AM [Apache] Uninstall/disable the other service manually first
11:05:16 AM [Apache] Found Path: "C:\xampp\apache\bin\httpd.exe" -k runservice
11:05:16 AM [Apache] Expected Path: "c:\newxampp\apache\bin\httpd.exe" -k runservice
11:05:16 AM [mysql] MySQL Service detected with wrong path
11:05:16 AM [mysql] Change XAMPP MySQL and Control Panel settings or
11:05:16 AM [mysql] Uninstall/disable the other service manually first
11:05:16 AM [mysql] Found Path: C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
11:05:16 AM [mysql] Expected Path: c:\newxampp\mysql\bin\mysqld.exe --defaults-file=c:\newxampp\mysql\bin\my.ini mysql
11:05:16 AM [mysql] Problem detected!
11:05:16 AM [mysql] Port 3306 in use by "C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql"!
11:05:16 AM [mysql] MySQL WILL NOT start without the configured ports free!
11:05:16 AM [mysql] You need to uninstall/disable/reconfigure the blocking application
11:05:16 AM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
I want to run 2 xampp on my local server I have install one following the normal installation the other one I changed the folder name to newxampp. I have changed the ports being used by second xampp in httpd.conf as well as the mysql ports.
Questions is why the xampp apache and mysql of the second xampp is not running and getting the above error.
Reason for installing 2 xampp:
I have done projects running in 5.5 php and currently I want to learn to use zend framework but I cant install composer because it needs 5.6 php and up so I installed new xampp with 7.0. I cant just update the old xampp because I have many project using the old version and its hard to update for now
Xampp versions are :
one is v3.2.1 other is v3.2.2
You can change the port both servers
80 8080 3306 3307 if you want run servers the same time
I suggest you to use virtual hosts to manage multiple versions of PHP.
With virtual hosts you can configure your PHP version that should be used with a specific "htdocs" sub-directory.
This was already answered before here:
Is there way to use two PHP versions in XAMPP?
A workaround may be to install Apache/mysql/php separately instead of the package running a different version.
When I had wamp running I did this and Apache server for both were running.
Google how to Install separately
You can.
Just change the ports
and you can use one MySQL for both
in my case they are of different versions,
XAMPP 3.2.2 and XAMPP 3.2.1 running different versions of mySQL an PHP.
My point is the versions differences may be the reason why it works for me perhaps because of the processes names in the OS.
I have seen this question asked on multiple occasions, but many times the missing clue is not mentioned. Changing the ports is not enough.
If you rename the xampp folder to something else, you need to run <xamppdir>/setup_xampp.bat to make the new xampp dir work
Excavating long dead thread for anyone who tried to do the same, running two instances of Xampp on the same local machine.
These logs say you're trying to start services (https and mysql) but these are already installed - check your services.msc (Apache2.x and Mysql are already there and they belong to first Xampp instance, check binary paths).
You need to manually install required services and change their names at Control Panel.
Run elevated cmd, cd into second instance of your Xampp and install services manually.
For httpd, assuming it is in c:\xampp2 and new name is "Apache2.4_1"
cd \xampp2
cd apache\bin
httpd -k install -n "Apache 2.4_1"
C:\xampp2\apache\bin>httpd.exe -k install -n "Apache2.4_1"
Installing the 'Apache2.4_1' service
The 'Apache2.4_1' service is successfully installed.
Testing httpd.conf....
(my failed here due to some syntax errors generated by lack of coffee)
Next you run control panel (from secondary instance), click "config" in upper-right corner, then "service and port settings" button. In the last window input values as shown at screenshot, save. Then, change your ports in httpd* configs. Start apache, #profit.
Repeat for other services that start as services.
For clarification, I only run two httpd this way. For other services you need to find right cmdline to install service with different name as in httpd and register it in Control Panel with changed names.
You can simply delete or stop the apache service (apache2.4) from services in using run > services.msc. And then try to start apache from the xampp control panel.(In my case delete worked.)
So I'm starting to use MySQL and phpMyAdmin and I firstly installed Apache2.4. After installing Apache2.4 there were numerous errors so I decided to install XAMPP instead. Now me not thinking through the consequences deleted the Apache2.4 Folder completely along with all its contents.
So now when I start XAMPP, MySQL runs fine but Apache is stuck on "Attempting to start Apache service..." Now when I look at the services tab Apache2.4 is still on my list, I have disabled it but it's made no difference. I have checked through my computer for any remaining Apache2.4 files but I can't find any.
If anyone can help me with this, it would be extremely helpful!
UPDATE: I have restored Apache24 from my recycling bin, should I attempt a uninstall using cmd?
It appears that an instance of apache 2.4 is running on the system. It is probably locking port 80 which the reason why XAMPP apache is unable to start.
Shutdown apache 2.4 from it's control panel, shutdown the service, and ensure there is no "httpd" process running using task manager. If there is kill it.
Once the above are done you should be able to start xampp.
Follow those steps:
1- Uninstall Apache 2.4
2- Clean Windows Registry with a tool like CCleaner
3- Restart Windows
4- Install XAMPP
Before I installed Xampp, I had manually configured php, phpmyadmin, apache, and mysql on my computer using a youtube tutitorial. However after writing a few login scripts for my website in php I was getting alot of errors with mysql, so I decided to uninstall/delete everything and try using xampp. Now on the control panel in xampp, I am getting this error message:
Apache Service detected with wrong path
Change XAMPP Apache and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: "c:\Apache24\bin\httpd.exe" -k runservice
Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
I deleted this folder that xampp is saying it has found? I have no idea why it is saying it has found this or what to do. Any help would be appreciated!