After the successful installation of Xampp on my Windows 8.1 64-bit system, the Apache server is starting fine but MySQL is not starting.
There is no error showing in the control panel log. I changed the port 3306 to 3307 in the my.ini file in the lib folder, but no change has occurred.
This is the screenshot of xampp control panel log when I click on the mysql start button
let xampp run as administrator and open the services make sure you stopped running the mysql service and uninstall the mysql under service in xampp control and install and start.
Related
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.)
I am trying to install XAMPP but cannot get all the services to work. I turned off the User Account Control and reopened xampp but now my SQL was running but some were not. Apache has the error services cannot be installed or uninstalled while the service is running!
I am new to wordpress. Using windows to learn wordpress websites using a local server insead of a using wordpress online.
Would WAMP be eaiser to install and use than XAMPP?
WAMP is a windows solution. so - please install WAMP, and run your local server from there.
I am using Mysql for long time via xampp software and it is working fine. Now i installed Mysql software, While configuring Mysql software i give port 3307, to run it independently from Mysql in Xampp which is using 3306. But it is not working , I got following error when i run xampp I got screen with following error saying
MySQL Service detected with wrong path
Change XAMPP MySQL and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: "C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults- file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL
Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
Simple if you using windows Go to Administrative cmd and type the following command
sc delete MySQL
Try with windows command prompt with administrative mode
sc delete MySQL .
from above commands
My aim is getting an Apache-Microsoft SQL server 2014- PHP configuration in a Microsoft Windows Server 2008 environment
I have a vm Microsoft Windows server 2008 R2 (64bit), with SQL Server 2014 management Studio installed (80 port) that i would like not remove.
I think i have 3 options:
XAMPP and SQL Server 2014
WAMP and SQL Server 2014
Separate installation of Apache 2.4, PHP 5.6
I prefere the most easy way.
I tried with no success the second and the third points.
Below my last attempt:
After that, i installed XAMPP.
i installed the Microsoft Visual C++ 2012 Redistributable 11.06 because during the installation i was alerted for a missing dll.
After that i remove and reinstalled XAMPP but in the panel controll when i star the Apache service i was alerted that 80 port was occupied by SQL Server so i change Apache port both httpd.conf (listen 8079) and in panel control XAMPP service settings.
I disinstalled and reinstalled XAMPP and i got:
status change detected: running
but with Firefox 43 browser at localhost address i got a white page.
if i open the file index.php from the
C:\xampp\htdocs\
i got the generic error:
something is wrong with the xampp installation :-(
If i start also Mysql service nothing gonna change.
Mercury Filezilla and tomcat are stopped.
I tried also WAMP but i got the same white page.
Usually without SQL Server i have always installed easily WAMP and XAMPP!
Thank you
I have latest version of wamp i.e WAMPSERVER (64 bit & PHP 5.5) 2.5 installed. It's not starting completely, not turning to green and so MySQL is not starting even though the port is used by Apache itself.
I have also installed Visual Studio 2012 VC 11 vcredist_x64/86.exe for my Windows 8.1 64bit OS.
Very weird, all the paths are configured in paths and also extensions enabled.
Below image specifies the sufficient ports in use:
#RiggsFolly - Thanks for the neat explanation. As per your questionnaires, I wanted to confirm that I have just installed 64 bit Wamp version and not 32bit. But installed Visual Studio 2012 VC 11 vcredist_x64 and x86 thinking.
FYI: As I had stated earlier in my question I have installed MySQL_Workbench in my system. But i have disabled its services to run on startup. May I know is that causing problem?
Please find the image of errors as per the MySQL Errors logs
And please find this for windows application MySQL error logs
My last question is: can't we have both MySQL_Workbench & Wamp together?
after you installed vcredist_x64/86.exe ,
you need to reinstall the wampserver. because the instalation of mysql services are not completed without vcredist_x64/86.exe and runtime
Your first image, I assume is the result of running
wampmanager -> Apache -> Test port 80
This tests the port that Apache should be using i.e. port 80. It should report
Your port 80 is not actually used.
But only if you have not started Apache!!! If you have started the Apache service in WAMPServer, it will of course report that port 80 is being used by Apache 2.4.9 etc etc...
This looks like what you have done! So its not a problem.
One thing though You say you installed WAMPServer 64bit, but the image reports that Apache 32bit is running ??? What do you really have installed ??? Or do you have both 32bit and 64bit WAMPServer installed?
If you have installed both 32bit and 64bit I suggest that you pick one or the other. I suggest the 32bit WAMPServer as the 64bit PHP is still not a complete port and considered Experimental until PHP7.
Now you appear to be saying already that the reason the wampmanager icon is not green is that MySQL has not started, so all the above is irrelevant. MYSQL runs on port 3306 and not 80, only one program can use a port, they cannot share ports.
So to see why MySQL has not started, look at the MySQL error log.
wampmanager -> MYSQL -> Error log
If that is empty, as it is sometimes if the error is so serious that MYSQL has not had time to open its log file before the error causes it to terminate, look at the Windows Event Log
To launch Windows Event Viewer do :
Windows Key + R to launch the run dialog
then enter eventvwr.exe and press the OK button
On the left side of the windows click 'Windows Logs -> Applications'
Look for the names 'Apache Service' or 'MySQL' in the Source column which have a error symbol in the first column.
The error messages in here are normally very descriptive and will normally lead you to a speciic line number in the my.ini file where the error exists. Alternatively, they will idedntify what the issue is.
Reply to additional info
Your MySQL error log is basically saying that it cannot start MYSQL as something is already listening on port 3306 (3306 is the default MYSQL port). Almost definitely the MySQL Server that you installed with the Workbench.
I see the installer for "MYSQL Workbench" has changed since I installed "MYSQL Workbench". I expect you chose to install MYSQL Workbench and a MySQL Server. As you have MYSQL Server installed with WAMPServer, can I suggest that you uninstall "MYSQL Workbench" or at least the "MYSQL Server" that came with workbench. This should stop the other MYSQL Server from getting port 3306 before the MYSQL Server installed with WAMPServer.
Remember to backup any databases that you may have created before uninstalling.
You can then install "MYSQL Workbench" again after WAMPServer starts working and this time dont install another instance of MYSQL Server.