简体   繁体   中英

Running 2 xampp on same local computer

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 

如果要同时运行服务器,则可以更改两个服务器的端口80 8080 3306 3307

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

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.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM