+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 20
Like Tree1Likes

Thread: Wamp Server

  1. #1
    paul-holmes83 is offline x10Hosting Member paul-holmes83 is an unknown quantity at this point
    Join Date
    Jul 2011
    Location
    UK
    Posts
    27

    Wamp Server

    Does anybody know how to configure Wamp server running on Vista and using firefox.

    I cannot access PHPmyAdmin.

    When I first installed it when I tried to go to PHPmyAdmin I just got a blank white page, after some digging around on the internet I found that my Hosts file needed to have 127.0.0.1 localhost added.

    After I added the above line I now get an error page as below.

    Welcome to phpMyAdmin

    Error

    MySQL said: Documentation
    #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

    I have not been able to find any info on this.

    Not sure if it makes a difference but I keep my hosts file as read only.

  2. #2
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: Wamp Server

    Make sure you don't have any other web servers running locally (so no using WampServer while trying to test ASP.NET development locally using IIS) and that MySQL is listed as allowed for local access in whatever firewall software you're using (you'll probably need to be an admin to make the change if you usually run as a restricted user). The default MySQL port is 3306.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  3. #3
    paul-holmes83 is offline x10Hosting Member paul-holmes83 is an unknown quantity at this point
    Join Date
    Jul 2011
    Location
    UK
    Posts
    27

    Re: Wamp Server

    I have looked at the services and I do not see either ASP.NET or IIS in the list so I don't think it is them.

    I see Mysql.exe listed in the allowed aplications of my firewall, it says any local port and any remote port, I use Bullgaurd if that makes a difference.

  4. #4
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: Wamp Server

    Odd, that -- WampServer has always been plug-and-play for me. It comes properly configured out of the box (usually). Is MySQL running when you start the server (check your task list)?
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  5. #5
    paul-holmes83 is offline x10Hosting Member paul-holmes83 is an unknown quantity at this point
    Join Date
    Jul 2011
    Location
    UK
    Posts
    27

    Re: Wamp Server

    It appears to be I see in the services section of task manager

    wampapache (pid5972) running
    wampmysqld (pid5160) running

    A suggestion made in the wampserver forum said that the hosts file should contain only the line
    127.0.0.1 localhost

    mine included some other lines so I made a copy then I deleted all lines except the above.

    I have a spare PC here that just needs an HD and a mouse, I think I will rebuild that and try it on that one, only problem there is I have no spare space on my router

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Wamp Server

    One tool that may help is TCPView, which you can use to see which programs have what ports opened.

    Check the connection settings in the MySQL and PHP configuration files to see what ports or named pipe each uses, and make sure they are the same. With PHP, you can use phpinfo instead of checking php.ini; XAMPP should make it available at http://localhost/phpinfo.php.

    Check whether other MySQL clients (such as the command-line client or MySQL Workbench) can connect. This may help you narrow down the problem to PHP or MySQL.

    As for the firewall, disable it temporarily while testing. Don't leave it off for long, but a short period shouldn't hurt.
    Last edited by misson; 09-23-2011 at 02:29 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  7. #7
    paul-holmes83 is offline x10Hosting Member paul-holmes83 is an unknown quantity at this point
    Join Date
    Jul 2011
    Location
    UK
    Posts
    27

    Re: Wamp Server

    Can I deal with your sugestions 1 at a time

    I have downloaded TCPView and run it the entries tat look like they belong to Wamp are

    httpd.exe (pid, 4164) (Protocol, TCP) (Local Port, http) (remote Port, 0) (State, Listening)
    mysqld.exe (pid, 968) (Protocol, TCP) (Local Port, 3306) (Remote Port, 0) (State, Listening)
    mysqld.exe (pid, 968) (Protocol, TCPV6) (Local Port, 3306) (remote Port, 0) (state, Listening)

    the mysqld pid is supposed to be 968 , don't know where the smiley came from

    there does not seem to be anything else using the local Ports.

    phpinfo says (if I am looking at the correct parts!)

    In the Apache2Handler section entry for hostname:port = localhost:80
    In the php Variables Section entry for _SERVER["HTTP_HOST"] = localhost
    In the php Variables Section entry for _SERVER["SERVER_PORT"] = 80

    I disabled my firewall before starting the Wamp server, but it made no difference.

    on the command line client following the example given in the link, but leaving out password, I have not set one
    I got the following output ERROR 2003 (HY000): Can't connect to MySQL sever on 'localhost' (10060)

    I have downloaded MySQL Workbench, but I am unsure how to use it?
    Last edited by callumacrae; 09-25-2011 at 04:07 PM. Reason: Disabled smilies

  8. #8
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: Wamp Server

    Not to answer the question, 'cuz it's baffling and oh, so wrong...

    The smiley comes from putting an eight and a close parenthesis right side-by-each. Graphic emoticons must die!
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  9. #9
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Wamp Server

    Quote Originally Posted by paul-holmes83 View Post
    mysqld.exe (pid, 968) (Protocol, TCP) (Local Port, 3306) (Remote Port, 0) (State, Listening)
    mysqld.exe (pid, 968) (Protocol, TCPV6) (Local Port, 3306) (remote Port, 0) (state, Listening)
    From this, you know which ports the MySQL server is listening on. If a MySQL client is using one of these ports and can't connect, that tells you something is blocking the connection.

    Quote Originally Posted by paul-holmes83 View Post
    phpinfo says (if I am looking at the correct parts!)
    That isn't the relevant information. Since you need to check how PHP is configured to connect to MySQL, you should be looking at the MySQL configuration. phpMyAdmin before 3.4 defaulted to the outdated mysql extension. Starting with 3.4, phpMyAdmin defaults to mysqli. Check the settings for whichever extension phpMyAdmin is using on your install.

    Quote Originally Posted by paul-holmes83 View Post
    I disabled my firewall before starting the Wamp server, but it made no difference.
    Make sure you leave the firewall disabled while testing, not just when starting the server. PHP connects to MySQL when it handles a request, not when Apache starts.

    Quote Originally Posted by paul-holmes83 View Post
    on the command line client following the example given in the link, but leaving out password, I have not set one
    I got the following output ERROR 2003 (HY000): Can't connect to MySQL sever on 'localhost' (10060)
    This is the most useful information so far. A web search for the exact error message will turn up many pages, including the manual page for MySQL error 2003 (10060).

    If this error is caused by network connectivity problems, one resolution is to use named pipes, bypassing networking altogether.

    Quote Originally Posted by paul-holmes83 View Post
    I have downloaded MySQL Workbench, but I am unsure how to use it?
    MySQL workbench is a graphical alternative to the command line utilities. You don't need both (though you may find MWB useful for other things).

    Quote Originally Posted by paul-holmes83 View Post
    the mysqld pid is supposed to be 968 , don't know where the smiley came from
    The advanced post editor has a "Disable smilies in text" in the "Additional Options" section.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  10. #10
    paul-holmes83 is offline x10Hosting Member paul-holmes83 is an unknown quantity at this point
    Join Date
    Jul 2011
    Location
    UK
    Posts
    27

    Re: Wamp Server

    I will look at this shortly to see if I can make sense of it.

    I will just say that I downloaded Wamp from the same place onto a friends PC who is using the same version of Vista, but different Anti Virus software and it run straight out of the box with no problems at all, so it is my PC configaration that is causing the problem somewhere.

    ---------- Post added at 09:16 PM ---------- Previous post was at 09:09 PM ----------

    Quote Originally Posted by misson View Post
    Make sure you leave the firewall disabled while testing, not just when starting the server. PHP connects to MySQL when it handles a request, not when Apache starts.
    What I meant was that I disabled the firewall before starting the Wamp sever, then I tested it with the firewall still off.

    Sorry for not being clear

    ---------- Post added at 11:26 PM ---------- Previous post was at 09:16 PM ----------

    Just a further note I shut down my antivirus completly to test it, but it made no difference.

    ---------- Post added at 11:33 PM ---------- Previous post was at 11:26 PM ----------

    Although Wamp is on the local machine could the router be causing the problem.

    ---------- Post added at 11:45 PM ---------- Previous post was at 11:33 PM ----------

    Quote Originally Posted by misson View Post
    From this, you know which ports the MySQL server is listening on. If a MySQL client is using one of these ports and can't connect, that tells you something is blocking the connection.
    Looking at the Tcpview window there is nothing else using this port.


    Quote Originally Posted by misson View Post
    That isn't the relevant information. Since you need to check how PHP is configured to connect to MySQL, you should be looking at the MySQL configuration. phpMyAdmin before 3.4 defaulted to the outdated mysql extension. Starting with 3.4, phpMyAdmin defaults to mysqli. Check the settings for whichever extension phpMyAdmin is using on your install.
    Sorry I do not understand what information you needed from phpinfo, but I can tell you what the version numbers are.
    Apache 2.2.17
    PHP 5.3.5
    MySQL 5.5.8

    Quote Originally Posted by misson View Post
    This is the most useful information so far. A web search for the exact error message will turn up many pages, including the manual page for MySQL error 2003 (10060).
    Sorry I did not understand the information in that link

    Quote Originally Posted by misson View Post
    If this error is caused by network connectivity problems, one resolution is to use named pipes, bypassing networking altogether.
    Again this went right over my head.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Which is better Xampp Vs Wamp
    By islamis4u in forum Crossfire
    Replies: 17
    Last Post: 11-23-2011, 12:00 PM
  2. Making Wamp White
    By Wizet in forum Off Topic
    Replies: 0
    Last Post: 12-20-2008, 04:57 PM
  3. Hello and new to Wamp Server 2
    By bachstrad in forum Introductions
    Replies: 3
    Last Post: 09-01-2008, 06:54 PM
  4. Wamp
    By Superted in forum Programming Help
    Replies: 11
    Last Post: 03-11-2008, 07:53 AM
  5. Try WAMP server is Better
    By ridwans in forum Computers & Technology
    Replies: 5
    Last Post: 08-31-2006, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers