Testing Server doesn't work

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

  1. #1

    Default Testing Server doesn't work

    Hello,

    I'm following the tutorial to create a dynamic page with database connection.
    I survived the database connection problem. Now after I added a table to the
    document and do Live Data View, I got this error message:
    "
    The testing server did not execute any of the scripts in your document.
    Possible explanations include:
    1) The testing server is not running.
    2) The testing server ignores files with the ".php" file extension.
    3) Your document does not contain any scripts.
    "
    I think I can eliminate 3), there are scripts inside the document. But not
    sure 1) and 2). The tutorial doen't show how to start the testing server. How
    can I check if the testing server is running and ignores ".php" file
    extension???

    Thanks.

    Pw

    hypamw 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. Using CF7 as a testing server
      I'm new to Coldfusion and I need to use my own computer as a testing server without access to a remote server. I need to view live CF data on 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 for JSP doesn't work
      I am configuring the test server to process JSP pages, but it doesn't work. I have configured IIS as my web server. Copied trio.mdb on test server,...
    5. 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...
  3. #2

    Default Re: Testing Server doesn't work

    hypamw wrote:
    > Hello,
    Hello again.
    > The testing server did not execute any of the scripts in your document.
    > Possible explanations include:
    > 1) The testing server is not running.
    > 2) The testing server ignores files with the ".php" file extension.
    > 3) Your document does not contain any scripts.
    > "
    > I think I can eliminate 3),
    I'm assuming you're still using your Mac, and haven't turned to the dark
    side in the last few hours. The answer to 1 lies in System Preferences >
    Internet & Network > Sharing. Make sure that Personal Web Sharing is On.

    The answer to 2 lies in creating a simple file in your Sites folder. All
    that it needs to contain is the following code:

    <?php phpinfo(); ?>

    Save it with a .php extension, and try viewing it through a browser. If
    you get a page full of configuration details about PHP, you're in
    business. Since you installed Marc Liyanage's package, it should have
    automatically made any changes necessary to the Apache configuration
    file, so that should be all you need.

    --
    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: Testing Server doesn't work

    Hello David,

    I just followed your instruction to check the .php file (type
    "http://localhost/~guess/phpinfo.php" on the browser) and the Personal Web
    Sharing setting. The php configuration shows on the browser, and Personal Web
    Sharing is already turned on. But I'm still getting the same error message.

    I was super user when I turned on the Personal Web Sharing, installed PHP
    4.3.4 and MySql 4.1.10 and when I changed the password hashing length on root
    user on UNIX terminal. For MySql, root is the only user. And I am a normal
    user when creating web page on Dreamweaver MX 2004.

    Does the problem relate to user permission? Do I need to restart the system?
    Any suggestions?

    Thanks.

    Pw

    hypamw Guest

  5. #4

    Default Re: Testing Server doesn't work

    hypamw wrote:
    > Does the problem relate to user permission? Do I need to restart the system?
    To be honest, I don't know. Restarting is always a good idea after
    making changes, but I doubt if user permissions has anything to do with
    it, although it would do no harm to try the same thing when logged in as
    an administrative user.

    Two possibilities spring to mind:

    1. Have you got the URL prefix correct in the site definition? It must
    have a trailing slash at the end.

    2. Try using 127.0.0.1 instead of localhost. I know that DW had problems
    mapping to localhost before the release of the 7.0.1 updater. Since
    you're using Jaguar, there may still be a mapping problem.

    --
    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

  6. #5

    Default Re: Testing Server doesn't work

    Hello:

    I checked the URL prefix. It is trialed with slash, and I changed "localhost"
    to "127.0.0.1" ([url]http://127.0.0.1/~guess/MySampleApp/[/url]). I alse tried to use
    "127.0.0.1" on MySql Connection. I logged in as admin and restarted the
    system. But the problem persists.

    I notice one thing: when the error message window popped up, in the
    testing/remote folder(they are the same location), it showed a file named
    "comments-view_10credup14.php", where "10credup14" changed each time when the
    error message popped up. When click OK to dismiss the error message window,
    the "comments-view_10credup14.php" disappeared.

    There are these file and directory in the testing/remote folder:
    _mmServerScripts (dir)
    _notes (dir)
    Assets (dir)
    comments-add.php (file)
    comments-view.php (file)
    Connections (dir)
    index.html (file)
    news.html (file)

    Is the folder content OKay? Any hints and suggestions?

    Thanks.

    Pw

    hypamw Guest

  7. #6

    Default Re: Testing Server doesn't work

    hypamw wrote:
    > Is the folder content OKay? Any hints and suggestions?
    You seem to have everything set up correctly, but I've never run
    Dreamweaver on Jaguar, so there may be something getting in the way that
    I'm not aware of. All I can suggest is a visit to the Macromedia
    Knowledge Base:

    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?mode=advanced[/url]

    I did a search for "troubleshooting php mac" and selected "Dreamweaver"
    from the product list. It came up with four page with a series of
    troubleshooting suggestions. I hope you can find the answer in there.

    --
    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

  8. #7

    Default Re: Testing Server doesn't work

    Hello David,

    Happy Easter!

    (Sorry, if this message was posted for a few times. Since I had problem to
    upload it, so I keep trying.)

    Finally, it seems I can sort out the problem. I'm new to web development. I
    learned a little of html and javascript but nothing on xml.

    I followed the instruction in this link
    ([url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16383[/url]) to test:
    1. Testing Dreamweaver MX's connection to the PHP application server (create
    a simple .php file inside the original PHP site that contain the
    comments-view.php - the one having testing server problem)
    2. Testing Dreamweaver MX's connection to the PHP application server and
    MySQL database

    Both tests worked fine. then I could eliminate the 1) and 2) in the error
    message dialog box.

    Then, I created a new .php called "test.php" in the same site and copied the
    code piece by piece from comments-view.php(the problem file) to the test.php.
    Tested it with "Live Data View" button and F12 key. It worked fine until I
    added the line of "<?xml version="1.0" encoding="iso-8859-1"?>", then I got the
    same testing server is not running error message. If I took the xml statement
    out and copied the rest of the code to the end. Everything just worked fine.
    Then now I have these questions:

    1. As I understand, html and xml files are interpreted by browser. If the
    browser doen't support certain html or xml versions, the page will be messed up
    or show nothing. When I hit "Live Data View" button and it gives me the
    testing is not running message. Does it mean DM MX 2004 has problem to
    interprete the xml statement? So so, it is a bug in DM or I'm missing
    something?

    2. When I was following the tutorial, I've been quite confused about the
    concept of testing server, remote server and local root folder. What do they
    exactly mean and are they for? Why is the testing server folder same as the
    remote server folder? Can they be different?

    Thanks.

    Pw

    hypamw Guest

  9. #8

    Default Re: Testing Server doesn't work

    On Fri, 25 Mar 2005 05:27:27 +0000 (UTC), hypamw
    <webforumsuser@macromedia.com> wrote:
    > Hello David,
    >
    > Happy Easter!
    >
    > (Sorry, if this message was posted for a few times. Since I had
    > problem to
    > upload it, so I keep trying.)
    >
    > Finally, it seems I can sort out the problem. I'm new to web
    > development. I
    > learned a little of html and javascript but nothing on xml.
    >
    > I followed the instruction in this link
    > ([url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16383[/url])
    > to test:
    > 1. Testing Dreamweaver MX's connection to the PHP application server
    > (create
    > a simple .php file inside the original PHP site that contain the
    > comments-view.php - the one having testing server problem)
    > 2. Testing Dreamweaver MX's connection to the PHP application server
    > and
    > MySQL database
    >
    > Both tests worked fine. then I could eliminate the 1) and 2) in the
    > error
    > message dialog box.
    >
    > Then, I created a new .php called "test.php" in the same site and
    > copied the
    > code piece by piece from comments-view.php(the problem file) to the
    > test.php.
    > Tested it with "Live Data View" button and F12 key. It worked fine
    > until I
    > added the line of "<?xml version="1.0" encoding="iso-8859-1"?>", then I
    > got the
    > same testing server is not running error message. If I took the xml
    > statement
    > out and copied the rest of the code to the end. Everything just worked
    > fine.
    > Then now I have these questions:
    >
    > 1. As I understand, html and xml files are interpreted by browser. If
    > the
    > browser doen't support certain html or xml versions, the page will be
    > messed up
    > or show nothing. When I hit "Live Data View" button and it gives me the
    > testing is not running message. Does it mean DM MX 2004 has problem to
    > interprete the xml statement? So so, it is a bug in DM or I'm missing
    > something?
    >
    > 2. When I was following the tutorial, I've been quite confused about
    > the
    > concept of testing server, remote server and local root folder. What do
    > they
    > exactly mean and are they for? Why is the testing server folder same as
    > the
    > remote server folder? Can they be different?
    >
    > Thanks.
    >
    > Pw
    >
    The '<' and '?' is what indicates that is PHP since xml also has this
    combination the browser may confuse.

    What you want to do is to wrap it under the PHP line. somehting like this:
    When you go to File > New > Dynamic Sites > PHP you would see something
    like this:

    <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>

    --
    Alexandro Colorado
    ------------------------------
    Support Engineer
    InterAKT Online
    [url]http://www.interaktonline.com[/url]
    Tel: 40(21) 312.5312
    Alexandro Colorado Guest

  10. #9

    Default Re: Testing Server doesn't work

    Just tried it, and it's working now.

    Thanks.
    hypamw Guest

  11. #10

    Default Re: Testing Server doesn't work

    hypamw wrote:
    > 1. As I understand, html and xml files are interpreted by browser. If the
    > browser doen't support certain html or xml versions, the page will be messed up
    > or show nothing. When I hit "Live Data View" button and it gives me the
    > testing is not running message. Does it mean DM MX 2004 has problem to
    > interprete the xml statement? So so, it is a bug in DM or I'm missing
    > something?
    Alexandro has already given you a solution for the <?xml problem.
    Another solution is to set short_open_tag to "Off" in php.ini. However,
    it also needs the same setting on your remote server, and most hosting
    companies have this setting "On" by default.

    More importantly, using the xml declaration will force IE6 to render
    your CSS in quirks mode. Many developers now remove the xml declaration
    to avoid this problem. In fact, DWMX 2004 no longer inserts the xml
    declaration (although MX did).
    > 2. When I was following the tutorial, I've been quite confused about the
    > concept of testing server, remote server and local root folder. What do they
    > exactly mean and are they for? Why is the testing server folder same as the
    > remote server folder? Can they be different?
    Testing server is normally the Apache installation on your local
    computer. Remote server is the live internet server where you eventually
    plan to deploy the website. The local root folder is the folder you use
    as the top level of the site when developing it locally.

    Normally, the testing server folder and remote server folders will be
    quite separate.

    --
    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

  12. #11

    Default Re: Testing Server doesn't work

    Thanks for the explaination. It helps me to understand.
    hypamw 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