I just did a fresh install of Apache server 2.2.
Everything works. When I go to localhost I get: "It Works!"
I just installed mySQL5.5 and when I go to localhost:3306 I just get gibberish:
J���
5.5.22�'���4[LM{D~p�ÿ÷!�€����������6[I=4/+,9z{|�mysql_native_password�!��ÿ„#08S01Got
packets out of order
I see many posts on the internet with users with similar problems, but I can't figure out a solution.
Can anyone help?
The mysql service is not a web interface - you cannot connect using a browser. You will need to install a mysql client of some kind.
If you try to start phpmyadmin then do it like this:
localhost/phpmyadmin
I'm a jsp beginner.
I have a same problem with you.
I guess it's kind of port problem.
For me, I had set the port for Apache server connector as 9090.
Later, when I installed mysql, the port for mysql was 3306 as its default port.
In my jsp file,
i loaded jdbc driver like 'jdbc:mysql://localhost:9090/dbname'
and then i call 'http://localhost:9090/my.jsp' on my web browser.
That's when I got the same problem with you.
I fixed the port part in my jsp file like 'jdbc:mysql://localhost:3306/dbname'
and I could get it all right.
I think you need to check the port for your Apache server.
You can check out \conf\server.xml file in your Apache directory.
The part starts with "Connector port=8080...." in server.xml file.
If so, you need to put 'http://localhost:8080... on your browser.
Try just to write http://localhost/ without the port and it will work , Or go to your phpmyadmin and click on My websites and it will take you immediately to your localhost
I'm having exactly the same problem, so far I have :
1)Manually changed the Collation (it seemed to be defaulting to cp850)
2)altered the ini/cnf file (located under services.msc -> MySQL)
3)Changed the max_packet_size to 2G
3)rebooted the server.
As a start to this please run this script from MySQL
'SHOW VARIABLES WHERE Variable_name LIKE 'character_set_%' OR Variable_name LIKE 'collation%';'
It should bring up a table of your collations, they should all read utf8
Possible causes
I just downloaded xampp from "https://www.apachefriends.org/index.html" this link, and switched off my defender as it asked me to, after instaling, i ran it and switched on mysql and clicked admin on the gui but i get this " The web page is not available ", even though mysql is stil higlighited green in the ui, i even tried localhost:3306 as my port is 3306 and my pid is 4584, but still got " the web page not available" am i doing anything wrong here?
Check your server error logs under <XAMPP_INSTALLATION_PATH>/apache/logs/ directory. It will guide you if any port is already occupied.
I agree with #ErasmoOliveira as most of the time I faced similar thing & exiting skype fixed this issue.
run your XAMPP, then click Setup (Apache line), click on Apache (httpd.conf). in this file find the line Listen 80, change 80 with another port, example: type 81 or 8080 or whatever you want but that it respects the format /^[8]{1}[\d]{1, 3}$/
restart apache again, you will surely work correctly by tapping to your browser http://localhost:81 (if you replaced the port to 81)
I'm using XAMPP, and I can start Apache, but, MySQL (phpMyAdmin) start!
When I start, I get this error;
10:07:49 [Apache] Error: Apache shutdown unexpectedly.
10:07:49 [Apache] This may be due to a blocked port, missing dependencies,
10:07:49 [Apache] improper privileges, a crash, or a shutdown by another method.
10:07:49 [Apache] Press the Logs button to view error logs and check
10:07:49 [Apache] the Windows Event Viewer for more clues
10:07:49 [Apache] If you need more help, copy and post this
10:07:49 [Apache] entire log window on the forums
I search on it, and, change the port of Apache in Config -> Service and Port setting. I have;
Service name: Apache 2.4
Main port: 122
SSL port: 444
I also uninstall Skype (Windows 8/10/Metro version). Nothing is working. In the httpd.conf file I have;
Listen 122
ServerName localhost:122
I start it via apache_start.bat and get;
(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:445
(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:445
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
Please note that all the log files don’t exists!
Skype is uninstalled.
Update: 15th May, 2018:
The latest Windows 10 update (re-)activated the World Wide Web Publishing Service (in German: WWW-Publishingdienst). This might depend on the options you select during the configuration of the update you can make afterwards.
Update: 4th August, 2015:
If you have done clean installation of Windows 10, you may not have the Word Wide Web Publishing Service. In that case, simple WAMP/XAMPP installation should work fine.
If it doesn't, try installing Visual C++ Redistributable and then re-install WAMP/XAMPP.
I was facing a similar problem with WAMP. In Windows 10 TP, the Word Wide Web Publishing Service comes pre-installed. This is related to IIS and you can remove it if you don't need it.
This blocks the port 80, making Apache act weirdly. You can do the following and try again.
Go to Start, type in services.msc
Scroll down in the Services window to find the World Wide Web Publishing Service.
Right click on it and select Stop.
This should make port 80 free and restarting WAMP/XAMPP should get you up and running!
There are other ways to do fix this. See Make WAMP Work On Windows 10.
Solving this problem is easy:
Open a command prompt with administrator privileges
Find "cmd", right-click on it, then select "Administrator".
In the prompt, type net stop W3SVC and Enter.
You can now click in WAMPP and restart all services. Open your browser and navigate to "localhost".
If you need to start W3SVC again,
Open a command prompt with administrator privileges
In the prompt, type net start W3SVC and Enter.
I found a way to solve this problem:
If you are using Skype as well, uncheck the field stating to use ports 80 and 443 (Extra -> Settings -> Advanced -> Connections -> Uncheck Port 80 and 443)
Restart Skype and XAMPP.
If this does not work,
Go to Start and type "services.msc"
Locate "World Wide Web Publishing Service"
Right-click on that entry, select "Stop", then restart XAMPP.
If that did not work and "World Wide Web Publishing Service" was not available,
Go to the Control Panel, navigate to "Uninstall Programs", then "Turn on/off Windows features"
Locate "Internet Information Services"
Click the checkbox and hit "OK".
Restart, then repeat the second approach (services.msc)
You can change the port of Apache:
Go to C:\xampp\apache\conf\httpd.
Find by combination Ctrl+F line #Listen 12.34.56.78:80 and change the 80 to any you like for example 81
The same with Listen 80 change to 81
The same with ServerName localhost:80 change to 81.
Go to C:\xampp\apache\conf\extra\httpd-vhosts and change 80 to 81
NameVirtualHost *:80 here
VirtualHost *:80 and here (two times)
Restart Apache
To enter your web page, type: http://localhost:81/index.html
Press Windows+R, and type regedit.
Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP
Change the value of Start to 4, which means disabled.
Reboot your computer.
I have fixed this issue with mine as well, but I had to change a couple of things. I require that on my Windows 10 machine I keep my C# and Visual Studio development environment, so I didn't want to tinker with any services. All I had to do was download the latest version of XAMPP and change the listening ports for 80 and 443. They were located in two files:
C:\xampp\apache\conf\httpd.conf
Listen 122
ServerName localhost:122
C:\xampp\apache\conf\extra\httpd-ssl.conf
Listen 444
Changing the above from port 80 to 122 and 443 to 444 allowed me to have Apache run and serve pages while keeping everything else the same for my ASP.NET development. Hopefully this helps someone out there. In the end this is a very simple fix.
Direct your browser to: http://localhost:122
I got same problem, but the previous solutions leads us to change the port instead of getting the exact solution. I've searched about the ports of simple HTTP & HTTPS Protocols and found.
If another application is already running, the HTTP or HTTPS ports on the local machine, we'll get this problem obviously just because of those ports already in use and in a busy state.
That's why after changing the port number it was working.
But instead of changing the port in the XAMPP server, I've used the following methods and it works for me.
Here's the following step which I've got during this fix up.
Error which I got in XAMPP Server application.
At the top corner there's a button named Netstat.
It's very useful for looking up the running ports on the system.
This is the Netstat application where I found an application already running and using the port number 443. In my case, it was vmware-hostd.exe. Your might be a different application. Try to search for port 80 (HTTP) or port 443 (HTTPS).
I just opened the Windows Task Manager, selected that application vmware-hostd.exe, and killed the process by using the End Process button. I've killed that process which was used port 443. And this application wasn't needed at the moment.
After killing the application in Windows Task Manager, Apache is now available at the moment. Here's the proof.
NOTE: *If you found any kind of application which is used the HTTP or HTTPS ports means port 80 or port 443 and the application isn't important or not vital then only kill the process of that application.
Otherwise, there isn't any need to follow these steps. Then you need to consider to change the port of your XAMPP application as stated in the previous answers.*
I tried everything listed in the answers here but none of them worked.
Then all I did was to re-start XAMPP with administrator rights by:
Start menu - right click on XAMPP - select run as administartor
It worked. It is that simple.
I uninstalled IIS services, stopped WWW services, changed ports back to 80, blocked all apache and mysql connections from windows 10 firewall, but yes it still works!
It looks like there are many options. The answer depends on your Windows installation. Here is my experience when having the same problem in a Windows 10 fresh install and fix the issue with the following step:
Install Visual C++ Redistributable
Open XAMPP and select configure in the Apache service
Change the port 80 to 9000 or 81 or whatever you want in file httpd.conf on the line Listen 80
Change the port on httpd-ssl.conf and change Listen 443 to Listen 441
Restart XAMPP and start the Apache service. It works for me.
Note: I'm using XAMPP version 5.6.15 and XAMPP Control Panel version 3.2.2.
Change the port number which port are available in your system By following ways
1. First open the Apache “httpd.conf” file:
#Listen 12.34.56.78:80
Listen 80
ServerName localhost:80
to
#Listen 12.34.56.78:8080
Listen 8080
ServerName localhost:8080
2. Open httpd-ssl.conf:
Listen 443
<VirtualHost _default_:443>
to
Listen 441
<VirtualHost _default_:441>
3. Follow the trick. Now “Start” Apache and if everything goes well, your Apache server should start up.
After playing around, really all you have to do is change two lines in the httpd.conf file:
Change "Listen 80" to "Listen 122" (or anything else you want)
and
"ServerName Localhost:80" to "Localhost:122" (or the port you changed above)
Then it all should fire right up :P
The World Wide Web Publishing service was not the only one responsible in my case.
I have IIS installed, so I had to stop the whole HTTP service.
These are the commands that I've executed in CMD (as administrator):
net stop W3SVC
net stop http
Go to the start menu, and type Turn Windows features on or off
Uncheck Internet Information Services
Press OK
Actually, by default IIS (Microsoft, .NET, etc.) is installed.
Go to Control Panel
Turn Windows features on or off...
Under (IIS) Internet Information Services, uncheck the (WWWS) world wide web services.
Click OK.
This could be a permanent solution. :)
This advice was great. I had the same problem, but my solution was different, because I was so stupid, that I have renamed directory where XAMPP was located and since I had installed a lot of another programs I couldn't rename it back.
In my case there was original directory C:\Programs\Xampp and renamed it to C:\PROGRAMS_\Xampp and that was the mistake.
The solution was to find all references on C:\Programs and rename them C:\PROGRAMS_ in the XAMPP directory, because for some reason during the installation it writes absolute paths, not relative. Of course, there are some references in the registry too.
It's simply a matter of making port 80 available for your Apache service.
The way I solved the problem was:
On Windows 10, right click the start button and select Run
Type services.msc and click OK
Find and right click World wide web publishing service
Select Properties
Change the Startup type value to Automatic (Delayed Start)
Restart your computer.
There you have it. All is back to normal.
In my case it was a simple case of removing IIS because Windows 10 comes with IIS (Internet Information Service) pre installed - that conflicts with XAMPP because these both servers try to use the port 80. If you don't want to use IIS and keep using XAMPP
Go to run/search in Windows 10
Search for 'optional features'
On that list untick Internet Information Service (IIS)
Then restart.
That was simple for me!
Try to run the XAMPP Control Panel as administrator.
I have tried all the above solutions. But it was not working in any way.
Finally, I just uninstalled XAMPP and installed it again. Then it worked for me.
Now I am able to run the server on any port (including 80).
I found that running apache_start in gave me the exact error and on which line it was.
My error was that I left a space in between localhost: and the port.
If you have installed SQL Server, some of its services may block the port which XAMPP needs. I solved my problem by disabling SQL Server Reporting Services and now Apache starts without any problems.
Just open the services.msc, scroll down, and find SQL Server Reporting Services. Right click on it and click Stop.
Steps:
Open the XAMMP Control Panel
Open Apache Config, and then select the Apache - xammp- configuration file
Search for "Port 443", and then change it to some other port, let’s say 4433
Then restart.
Check if your PHP installation works.
Check which php.ini file you are running in Apache's configuration and use it to run php.exe...
You may just have updated your Windows to Version 1903 (OS Build:18362.239) or have changed user passwords. Despite having eliminated all port conflicts, I still kept getting the messages described by the OP at the very start of this post.
In the end I cured it by upgrading to XAMPP to 7.3.7. (When forced to reinstall, you might as well upgrade at the same time!)
But the problem reoccurred when I again went to change the 'root' user password.
The console error messages were masking the fact that table mysql.user was corrupt.
Check file mysql_error.log. If you are seeing Fatal error: Can't open and lock privilege tables: Index for table 'user' is corrupt; try to repair it, then have a look at this.
I got the same problem and I solved it by uninstalling WAMP server.
When i run my wamp server and run localhost:80 in chrome browser, It is showing me blank page. Then i changed my port number to 84 in httpd.conf file. Even then it is showing blank page.
I tried with different port numbers(85, 86, 8084) and also stopped skype process which uses port 80.
Could any one suggest me how to solve this problem?
You'd likely get a 404 if your webserver were misconfigured. A blank page typically means a PHP error.
Check your error logs. You can find the log location in httpd.conf
Fix your PHP issue. The logs have the file and line number.
1) You have to restart wamp server every time you change something in your config
2) Set everything back to default in wamp server or just re-install it
3) Open up skype, go to Tools -> Options..., Go to Advanced -> Connection And uncheck Use port 80 and 443 as alternatives for incoming connections -> Save
4) Launch WAMP again -> enjoy :)
Same issue, here is the solution !
(there is more than one file to change in order to go to different port)
Cause :
Another program (Skype but not only) is using the port80 (which is by default the one used by wamp).
You can see it typing the following command "netstat -ano" and looking what is on "localadress 0.0.0.0.80", if you want to see the concerned program open, note the number at the end of the line (4 for example), then open taskmanager, services, and see who is on PID 4.
Solution :
Let's change wamp port to 81 !
Change wamp port from 80 to 81
Okay so a continuation from this question, where you experts intro'd me to WAMP, which can basically execute PHP within a Windows XP environment.
So now I've got it installed, but the tray icon forever shows YELLOW, and when I visit any PHP page in my browser, it just shows me the PHP source!
Also, when I visit "http://localhost/" in IE7 it gives me a 404 Not Found, FF3 just shows a blank page.
BTW I've tried "Restart All Services" and restarting my machine, but it still won't work.
Any ideas? Any of you had this problem and solved it? Please help me here, I'm desperate to execute PHP client-side and I'm just reverting to testing on-server for now!
Skype reserves port 80 for its incoming connection which conflicts with WAMP, so simply configure Skype to use another port by doing the following:
In Skype go to Tools|Options|Advanced|Connection uncheck the option --> Use port 80 and 443 as alternatives for incoming connections, that's it
For this change to take effect restart Skype and Restart all services on WAMP by doing the following:
Left-click WAMP tray icon > Restart All Services"
Now Wamp and Skype can co-exist together, hope this solves your problem!!
Got it! Under the WAMP tray icon, left-click context menu > Apache > Service > Test Port 80, it said :
"Your port 80 is actually used by - Info not available, Must be Skype"
Well, so off goes Skype, WAMP > Restart All Services, and Localhost shows "WAMP5 Homepage":
(source: wampserver.com)
And, phpMyAdmin works, PHP scripts execute too. Wow!
So now I can dubug in the proper fashion! Thank you StackOverflow!
try this one, i had the same problem and this helped me:
Wamp Server icon => Appache => Service => Install Service
Wamp Server icon => Appache => Service => Start/Resume Service
Wamp Server icon => MySql => Service => Install Service
Wamp Server icon => MySql => Service => Start/Resume Service
just go to wamp>bin>apache>apache 2.2.17>conf>httpd.conf (file)
change Listen 80 to Listen 8080
save the file
n restart the services
this time type http://localhost:8080
Glad you got it sorted - Skype is notorious for that.
If you want to use Skype and WAMP together, you can edit your httpd.conf file - change the 'listen' value from 80 to something else and restart all services.
Teamviewer can cause this too.
you can start Skype up after wamp is online or change Skypes port not to use 80
I'd like to expand on what some of the other folks have contributed here - as Skype is not always the culprit.
You can also check exactly which process is hogging your port 80 by running this from a command prompt:
netstat -ao
This will list all processes using ports with their PID. You can correlate those to processes in Task Manager, and take appropriate action from there. The bottom line is - you're looking for what's hogging port 80 and/or 443 (if you're connecting over SSL), as that is the default browser port.
For me, when I have opened the httpd.conf file I have found that I have tow Listen statement as following:
Listen 80
Listen 169.254.96.77:80
and when I have commented the second line (adding '#' at beginning of the line) I restarted all wamp services (left click of wamp icon in the task bar), the wamp icon became green!
Hope this help other.
Well, in case the above still dont help as it was with me, follow these steps:
Change your apache port (from httpd.conf) to something else, say 8056, at the two places where port 80 occurs in the file
Then change your browser proxy appropriately. i.e the proxy to "localhost" and the port to your "8056".
Save the file and restart Wamp Services
Launch localhost in your browser
Hope it works! A better approach is really needed.
Most of the time this problem happens because of conflict between apachi servers, or ports, or duplicate of wamp installation
So to fix that:
First of all if you are using SKYPE try to change the port by opening Skype, then:
Tools menu
Options
Advanced Options
Connections
Then uncheck "Use port 80 and 443 ......"
save
restart Skype
second if the problem still exists try to find if you are using - or was using - other Apache server (for example XAMPP server), if so try to remove it and after removing it, go to regedit by:
press on keyboard the "windows" button + "r" button, this will open the Run command
type "regedit" (without "")
open Edit menu then Find (you can press "CTRL" button + "F" button)
search for anything belongs to the other apache server and delete it (You should be careful while you are doing this step)
In skype:
Go to Tools -> Options -> Advanced -> Connections and uncheck the box "use port 80 and 443 as alternative".
This should help.