I am quite new to servers and the like and download xampp but it comes up with this error:
I have already uninstalled skype but still throws this error. What other ports could I use for apache (main port and SSL port)?
If you want to check what service is using the port:
Open the CMD with Administrator rights
type: netstat -aon | findstr :80
type: tasklist /svc /FI "PID eq 1604" "1604" its the Process ID its the number of the last column.
this answer is intended as a help, you can change the port number for apache but it could be a pain later since other programs assume it will be 80 by default, also from your image if you find there is nothing using the port it could be
missing dependencies, improper privilegies, a crash or a shutdown by another method.
Just type event viewer in your start menu search and open it:
there you should find the log which would have more info as to why apache is shutting down (this is very useful for any error you have).
Related
I just uninstalled MySQL server, restarted my laptop and reinstalled MySQL server on Windows 8.1.
When I tried to configure it, it said "Port 3306 is already in use" (or something). I know I can use another port number, but I wanted to know how to set 3306 port free and use it.
Actually the port should not be in use anymore.
Did you try out who uses that port? try netstat -ao. Will return you a list of opened ports plus the process id of the program that uses that. You can check which program it is in Task Manager.
Obviously there must be some process binding to the port.
Have a look at this answer on a similar topic to find out which process it is:
https://stackoverflow.com/questions/48198/how-can-you-find-out-which-process-is-listening-on-a-port-on-windows
Once you have the info in hand you can deal with the process - whether it is a remainder of the old mysql installation or something else.
Working with the Wampserver 2.2 64x on win8.1, suddenly it has stopped starting services.its giving the following error:
wampserver 2.2 64x could not execute menu item (internal error)[Exception] Could not execute run action: the directory name is invalid
What i have done yet is start all Services/Restart All Services and restart wampserver, didn't work!
I tried to Install Service:
wampmanager -> Apache -> Service -> Install Service.
cmd saying Actually Port 80 is used by server:Microsoft HTTPAPI/2.0
But MySQL Install Service: wampmanager -> MySQL -> Service -> Install Service. doesn't work!
And also i tried to change port 80 (httpd.conf)
#Listen 12.34.56.78:80
Listen 80
to
#Listen 12.34.56.78:80
Listen 8080
after a restart of Wampserver its try icon got active(green) but still not working (giving the error)
Even i did System restore to the date where it was working with no errors but didn't work.
Any one know whats wrong with this?
This message from the test port 80 function
Actually Port 80 is used by server:Microsoft HTTPAPI/2.0
is saying that you have recently installed or activated IIS or maybe SQLServer.
Because the IIS or SQLServer services are configured to Start Automatically after a boot they have already grabbed Port 80 so when you start Apache it cannot get hold of port 80.
So either uninstall IIS or SQLServer or change their startup type using the Services snapin to Manual or even Disable them and then reenable them when you want to use them.
Things I know can grab port 80 and are related to IIS and SQLServer installs are
IIS
Web Deploy
MS Sql Server Reporting service.
BranchCache ( Windows 8.1 )
There may be others
How to find out whats using port 80
From a command window, started using "Start as Administrator" do
netstat -anop TCP | find ":80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4852
Look at the result of this command and then put the PID number ( last number on the line ) into this command
tasklist /FI "PID eq 4852" ?FO TABLE /NH
httpd.exe 4852 Services 0 19,720 K
In this example Apache is using port 80 but yours will probably be something different
Easiest way to fix this i found was
- i uninstalled chrome so this broke down
just manually write locahost in explorer and works again.
i have a problem with MySQL Server on Gentoo. When starting with /etc/init.d/mysql it simply hangs an nothing is happening until you interrupt with CTL + C. By trying to start with mysqld directly, mysqld says:
131007 0:54:00 [ERROR] Can't start server: cannot resolve hostname!: Bad message
131007 0:54:00 [ERROR] Aborting
In many forums it was sugested to add the skip-name-resolve option to my.cnf. I tried this
but it didn't help.
Has anyone had the same problem and knows how to solve this issue ?
Errors like you are seeing from mysql or other apps are usually due to problems in the file /etc/hosts and/or /etc/conf.d/hostname. Check the contents of both.
You need an entry in /etc/hosts for the hostname set by /etc/conf.d/hostname which is executed during bootup by /etc/init.d/hostname (I assume you have this set to run in one of the initial runlevels by rc).
If you have a static ip, go ahead and put the static ip in /etc/hosts. If you are using dhcp everywhere for a laptop, than add your hostname to the localhost ip address which is supposed to always exist regardless of whether you are online or not.
You should not have to set skip-name-resolve in my.cnf, but you may be to avoid issues by binding the mysql network socket just to localhost via adding the line:
bind-address = 127.0.0.1
and removing any other references to other bind-addresses.
I installed Xampp on Windows 7 32-bit. When I try to start MySql in XAMPP control panel (v3.2.1) I have the following message and MySql does not start.
23:02:03 [mysql] Problem detected!
23:02:03 [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL"!
23:02:03 [mysql] MySQL WILL NOT start without the configured ports free!
23:02:03 [mysql] You need to uninstall/disable/reconfigure the blocking application
23:02:03 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
23:02:03 [mysql] Attempting to start MySQL service...
A similar problem was reported here but there is no working answer. When I try to install with MySql disabled, the result is that I even don't have an option even to try to run it.
I am new to Xampp and don't know where and what to look for to solve the issue
I need to run Apache and MySql with Php.
You already have a version of mySQL installed on this machine that is using port 3306. Go into the most recent my.ini file and change the port to 3307. Restart the mySQL service and see if it comes up.
You also need to change port 3306 to 3307 in xampp\php\php.ini
You have two versions of mysql using the same port 3306.
Change the port by:
Stop the xampp server, if it is already running.
Edit the value to "port" in xampp/mysql/bin/my.ini
Here:
# The following options will be passed to all MySQL clients
[client]
Password = your_password
port = 3306 #---> 3307
socket = "/ xampp / mysql / mysql.sock"
and also here:
The MySQL server
[ mysqld ]
port = 3306 #---> 3307
socket = "/ xampp / mysql / mysql.sock"
2. Start mysql service
I found out that re-installing Xampp as an administrator and running it as an Administrator worked.
Try this: really quick + worked for me:
Open Task Manager > Services Tab
Find "mysqlweb" service > right-click it to stop service
Launch Xampp again
ps: excuse image below for different language :)
Google Brings me here. The favourite answers don't help me.
I've now solved it, so maybe this will help someone else.
Problem: after UPDATE of XAMPP to a new version I get the message "MySQL WILL NOT start without the configured ports free!".
However, I only have 1 instance of mysqld running.
It seems that the control panel is not as clever as it looks. As far as I can tell, the single instance of mysqld is the new one i've just updated to, but running as a 'service'. The control panel then tries to start it, and instead of realising its already running, It assumes its another service and reports the error.
Probable cause: The uninstaller failed to remove the autostart property from the mysql service, so the new instal picked it up.
Solution:
open the Xammpp Control Panel and click on the Services Button on the right. This will open the services control panel.
Look for mysqld in the list of running processes, right-click it to get the properties and change the startup type to "Manual".
you might as well do the same for Apache2 while you're here.
Apply changes and Close the services control panel.
Now click the Config Button on xampp control panel, uncheck The Mysql (and Apache) Autostart features.
Reboot the machine.
You should now be able to start / stop Mysql & Apache without any error messages.
If this works, use the Xampp Control panel as usual to start/stop add service or add autostart as normal.
No need to mess with any ports or config files.
If there are two instances of MySql it's normal that it gives such an error if they both run at the same time. If you really need 2 servers, you must change the listening port of one of them, or if you don't it's probably better to simply uninstall one of them. This is so regarless of MySql itself, because two programs cannot listen on the same port at the same time.
Same issue on macOS and got it fixed by running the same installer again.
Whereas I COULD NOT get it fixed by
Changing port
Rebooting XAMPP
Restarting system
Note:
Make sure to select 'XAMPP Core Files' component while running the installer as by default it is not selected.
Though re-running the installer is not smart option when one has to do it every now and then. My installer is xampp-osx-7.0.13-1-installer.dmg
Update: I've got my MAMP working with this simple solution here. So, same should work for XAMPP.
If you have previously installed MySQL Workbench the problem is that another MySQL instance is running at 3306 port.
So uninstall MySQL and XAMPP and after that, reinstall only XAMPP.
This worked for me.
So if you are on a Windows machine, you can open the task manager. Check the processes list, and delete the mysqlId from it. Restart the xampp. It will work fine.
You need to uninstall/disable/reconfigure the blocking application that is using the port 3306. But, if for some reason, you can't do the above maybe because you need the other application too, then follow these steps to change the MySQL port to 3307.
Stop the Apache Server from XAMPP Control Panel (if running)
Now open XAMPP Control Panel => Config (Top Right) => MySQL and change the Main Port to 3307 => Save => Save
Click Config of MySQL (From Control Panel only) => my.ini and then Change all the occurrences of 3306 to 3307 (Search using ctrl + F and replace all)
Click Config of Apache (From Control Panel only) => config.inc.php and then search for the line: $cfg['Servers'][$i]['host'] = '127.0.0.1'; (present at 27th line in my file). Now add this below the line you found (at line 28 according to my file): $cfg['Servers'][$i]['port'] = '3307';
Now, you are good to go. Also note that you would have to change port for all your projects to 3307 for them to work properly. For eg: from $servername = "localhost"; to $servername = "localhost:3307"; in the database config file of your project.
I hope this works for you too.
My fix was to stop MySQL57 in services, Xampp now starts/stops Apache/MySQL as expected.
The is a simple and faster way to solve the problem.
You don't need to open a services or write any cmd code just follow my steps:
from XAMPP control panel click Explorer button
from directory find mysql_stop.bat file and run it.
Thats all!! super easy.
Refresh your netstat list, you will see that it has gone.
please make it as best answer.
Ive install wamp server on my PC(it has no internet or intranet connection, Windows XP -OS).
But when I access MYSQL this error popup.
Can you give any idea on how can i resolve this error.
thank you very much.
Cant connect to MYSQL server on 'localhost' (10061)
from the commandline (start/run/ type cmd, press ok), type:
telnet localhost 3306
If MySQL is running, you'll see the mysql version (and some garbage).
To see if the service is running, type:
sc query mysql
You'll see something like this if it's running:
SERVICE_NAME: mysql
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE,PAUSABLE,ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
To check to see if MySQL is running, provided its installed as a service you can go to Start -> Control Panel -> Administrative Tools -> Services (i may be a bit off on those paths, I'm an OS X / Linux user), and look for MySQL on that list. See if it is started or stopped.
You can then do a portscan if you really want to and determine if that port is open. There are all kinds of free tools online that will scan your IP and tell you which ports are open and what is listening on them.
Unless you did something during the install, I believe that the port will be standard and the service will NOT be running after install.
MySQL provides several GUI tools for managing servers: http://dev.mysql.com/downloads/gui-tools/5.0.html One of those tools is the "MySQL System Tray Monitor" which will detect the running service, and allow you to stop and start the server easily. You can also review the list of services for "MySQL" to see if that service is active.
If the service is running and you still can't connect, you need to make sure the Windows firewall is not blocking access to the port. If your firewall is not configured to notify you when it block a program (check the Windows Firewall control panel, it might not have notified you that it's detected the program).
Make sure it is running, check in my.cnf that it is really listening to the correct IP ( 127.0.0.1 ) and make sure you connect to the correct port aswell.
Try using telnet for debugging aswell and see where the problem lies, maybe mysql isnt started, or listens to a different port.
try to change a mysql port 3300 to "3306"