Reputation: 1649
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
Upvotes: 0
Views: 11778
Reputation: 36
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?
Upvotes: 1
Reputation: 41
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.
Upvotes: 0
Reputation: 164
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.)
Upvotes: -1
Reputation: 56
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
Upvotes: 1
Reputation: 1108
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.
Upvotes: 0
Reputation: 429
You can change the port both servers 80 8080 3306 3307 if you want run servers the same time
Upvotes: 1
Reputation:
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
Upvotes: 0