No Testing server error

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default No Testing server error

    I am a student trying to learn Dreamweaver MX 2004. I'm trying to setup a PHP
    page and connect to a MySQL Database. MySQL is running and using the default
    directories. I can access the database and tables using Navicat so I know they
    are working. I went through the steps of setting the site and document type
    and then tried to setup the testing server. I chose a name, used "localhost"
    as the url, put in the user and password and then tried to select the Database.
    When I click the select button, it tries to load but then comes back with an
    error saying "There is no Testing Server running on the server machine. What
    am I doing wrong?

    erickia Guest

  2. Similar Questions and Discussions

    1. Testing Server problem: Server name or address couldnot be resolved!
      Not sure if this helps but I was going step by step in the Getting Started Experience Tutorial and when it got to the Database tab -- RDS Login...
    2. Testing Server
      I have been trying to set up a web site in Dreamweaver to run dynamic scripting (ASP pages) and when trying to set up a testing server I follow the...
    3. Using Server Behaviors without Testing Server
      Because of the way my company sets up ColdFusion I dont' have a testing server and thus can't use the database connection tool, server behavior,...
    4. testing server.?
      Good evening, ok i trying to set up a site and use php and mysql testing server, i have installed everything apache, mysql, made edits to code as...
    5. Testing Server Error
      Please help... I'm trying to set up a database connection via an IP address and always get this error when testing the database connection: HTTP...
  3. #2

    Default Re: No Testing server error

    erickia wrote:
    > When I click the select button, it tries to load but then comes back with an
    > error saying "There is no Testing Server running on the server machine. What
    > am I doing wrong?
    The first thing you are doing wrong is not checking the forum archives.
    This must be the most frequently asked question.

    Have you set up a PHP site in site definitions?
    Have you set the URL Prefix correctly in Testing Server? It must have a
    trailing slash on the end, for example [url]http://localhost/myphpsite/[/url]
    Have you checked that MySQL is enabled in your version of PHP? It's not
    enabled by default in PHP 5

    There are several other possibilities, but those are the most frequent
    causes of failure.

    --
    David Powers
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    Co-author "PHP Web Development with DW MX 2004" (Apress)
    [url]http://computerbookshelf.com[/url]
    David Powers Guest

  4. #3

    Default Re: No Testing server error

    Have you actually set up a testing server in your site definition? You need
    to have a web server running, either on your own PC, or on your web hosts
    server to allow Dreamweaver MX to connect to the MySQL database.

    Take a look at my MySQL connection guide at:

    [url]http://www.dreamweavermxsupport.com/index.php?type=article&pid=60&sid=61[/url]

    Explains how the connection works and give troubleshooting information to
    help get the connection working.


    --
    Gareth - TMM Dreamweaver
    [url]http://www.dreamweavermxsupport.com/[/url]
    [url]http://www.garethdp.com/[/url]

    PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
    [url]http://www.phploginsuite.co.uk/[/url]

    Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
    Co-Author: Practical Intranet Development - Apress
    Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
    Co-Author: Dreamweaver MX: PHP Web Development - Wrox


    gareth Guest

  5. #4

    Default Re: No Testing server error

    First of all, I did try the archives and didn't find anything that helped.
    MySQL is enabled in PHP5. When I place the following code in a file titled
    today.php and then place the address [url]http://localhost/today.php[/url] in the address
    bar, the date is displayed and the Success message is displayedl.
    Code:
    <!DOCTYPE html PUBLIC "-/W3C/DIT XHTML 1.0 Strict/EN"
    "http://www.w3.org//TR/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Today's Date</title>
    <meta http-equiv="content-type"
    content="text/html; charset=iso-8859-1" />
    </head>
    <body>
    <p>Today's Date (according to the Web server) is
    <?php
    
    echo date('1, F ds Y.');
    
    ?></p>
    <?php
    if (@mysql_connect("localhost", "root", "########"))
    echo "Successfully Connected to Database";
    else
    echo "ERROR Connecting to Database";
    ?>
    </body>
    </html>
    The site info points to a folder under the user's documents folder. The MySQL
    server location is set to 'http://localhost/" and the user and password are
    the same as in the above code. What next?


    erickia Guest

  6. #5

    Default Re: No Testing server error

    erickia wrote:
    > The site info points to a folder under the user's documents folder. The MySQL
    > server location is set to 'http://localhost/" and the user and password are
    > the same as in the above code. What next?
    Is the user's documents folder inside the web server document root? All
    PHP pages must be in the server root, a virtual host, or a virtual
    directory.

    The correct address for MySQL is "localhost", *not* "http://localhost".

    --
    David Powers
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    Co-author "PHP Web Development with DW MX 2004" (Apress)
    [url]http://computerbookshelf.com[/url]
    David Powers Guest

  7. #6

    Default Re: No Testing server error

    Thanks David. That did the trick. I hope that it is OK that I pass that site on?
    erickia Guest

  8. #7

    Default Re: No Testing server error

    erickia wrote:
    > Thanks David. That did the trick. I hope that it is OK that I pass that site on?
    Which site? If you're referring to my installation instructions at
    [url]http://computerbookshelf.com/phpdw/install1.php[/url], please do.

    --
    David Powers
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    Co-author "PHP Web Development with DW MX 2004" (Apress)
    [url]http://computerbookshelf.com[/url]
    David Powers Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139