Professional Web Applications Themes

Site definition for php - Macromedia Dreamweaver

I have what appears to be a functioning localhost apache / php / mysql installation, that is to say [url]http://localhost/phpdev/phpinfo.php[/url] and [url]http://localhost/phpdev/[/url] work. How do I upload DW pages to this local testing server? Using the F12 preview gives me 404 errors. Is this something in my site definition or is my apache install the problem? Never done this before and have no idea how to diagnose the problem....

  1. #1

    Default Site definition for php

    I have what appears to be a functioning localhost apache / php / mysql
    installation, that is to say [url]http://localhost/phpdev/phpinfo.php[/url] and
    [url]http://localhost/phpdev/[/url] work. How do I upload DW pages to this local
    testing server? Using the F12 preview gives me 404 errors. Is this
    something in my site definition or is my apache install the problem? Never
    done this before and have no idea how to diagnose the problem.


    Johnny Bagadonuts Guest

  2. #2

    Default Re: Site definition for php

    On Tue, 15 Jul 2003 22:54:38 -0400, "Johnny Bagadonuts"
    <rob_robster-AT-hotmail.com> wrote:
    >I have what appears to be a functioning localhost apache / php / mysql
    >installation, that is to say [url]http://localhost/phpdev/phpinfo.php[/url] and
    >[url]http://localhost/phpdev/[/url] work. How do I upload DW pages to this local
    >testing server? Using the F12 preview gives me 404 errors. Is this
    >something in my site definition or is my apache install the problem? Never
    >done this before and have no idea how to diagnose the problem.
    >
    When you derfine the testing server in the site definition, make sure
    the URL prefix is [url]http://localhost/phpdev/[/url] and not just
    [url]http://localhost/[/url], which is what DW gives you by default.

    If [url]http://localhost/phpdev/phpinfo.php[/url] works, you can be sure that you
    have sorted out both Apache and PHP correctly. There can be no
    possibility of error! So it must be your site definition.


    Paul Taylor
    Paul Taylor Guest

  3. #3

    Default Re: Site definition for php

    "Paul Taylor" <pftaylortechnocurve.co.uk> wrote in message
    news:uivahv84duhiq67he93fcc4hrn9rv4h52l4ax.com...
    > On Tue, 15 Jul 2003 22:54:38 -0400, "Johnny Bagadonuts"
    > <rob_robster-AT-hotmail.com> wrote:
    >
    > >I have what appears to be a functioning localhost apache / php / mysql
    > >installation, that is to say [url]http://localhost/phpdev/phpinfo.php[/url] and
    > >[url]http://localhost/phpdev/[/url] work. How do I upload DW pages to this local
    > >testing server? Using the F12 preview gives me 404 errors. Is this
    > >something in my site definition or is my apache install the problem?
    Never
    > >done this before and have no idea how to diagnose the problem.
    > >
    >
    > When you derfine the testing server in the site definition, make sure
    > the URL prefix is [url]http://localhost/phpdev/[/url] and not just
    > [url]http://localhost/[/url], which is what DW gives you by default.
    >
    > If [url]http://localhost/phpdev/phpinfo.php[/url] works, you can be sure that you
    > have sorted out both Apache and PHP correctly. There can be no
    > possibility of error! So it must be your site definition.
    >
    >
    > Paul Taylor
    Well what else could be wrong with the site definition? I have the url set
    to [url]http://localhost/phpdev/[/url] and I still get a 404 error when trying to view
    [url]http://localhost/phpdev/index.php[/url]. Even the "test url" button works
    successfully in the site definition.

    [url]http://localhost/phpdev/phpinfo.php[/url] definitely works without a hitch - php
    version 4.2.3 I do not have any problems with the tests included with the
    phpdev download - the phpinfo test above and the "dodgy digital clock" test.

    Any other ideas? Thanks.


    Johnny Bagadonuts Guest

  4. #4

    Default Re: Site definition for php

    "Johnny Bagadonuts" <rob_robster-AT-hotmail.com> wrote in message
    news:YmSdnZ1J2ZijnIuiXTWJhgcomcast.com...
    > "Paul Taylor" <pftaylortechnocurve.co.uk> wrote in message
    > news:uivahv84duhiq67he93fcc4hrn9rv4h52l4ax.com...
    > > On Tue, 15 Jul 2003 22:54:38 -0400, "Johnny Bagadonuts"
    > > <rob_robster-AT-hotmail.com> wrote:
    > >
    > > >I have what appears to be a functioning localhost apache / php / mysql
    > > >installation, that is to say [url]http://localhost/phpdev/phpinfo.php[/url] and
    > > >[url]http://localhost/phpdev/[/url] work. How do I upload DW pages to this local
    > > >testing server? Using the F12 preview gives me 404 errors. Is this
    > > >something in my site definition or is my apache install the problem?
    > Never
    > > >done this before and have no idea how to diagnose the problem.
    > > >
    > >
    > > When you derfine the testing server in the site definition, make sure
    > > the URL prefix is [url]http://localhost/phpdev/[/url] and not just
    > > [url]http://localhost/[/url], which is what DW gives you by default.
    > >
    > > If [url]http://localhost/phpdev/phpinfo.php[/url] works, you can be sure that you
    > > have sorted out both Apache and PHP correctly. There can be no
    > > possibility of error! So it must be your site definition.
    > >
    > >
    > > Paul Taylor
    >
    > Well what else could be wrong with the site definition? I have the url
    set
    > to [url]http://localhost/phpdev/[/url] and I still get a 404 error when trying to
    view
    > [url]http://localhost/phpdev/index.php[/url]. Even the "test url" button works
    > successfully in the site definition.
    >
    > [url]http://localhost/phpdev/phpinfo.php[/url] definitely works without a hitch - php
    > version 4.2.3 I do not have any problems with the tests included with the
    > phpdev download - the phpinfo test above and the "dodgy digital clock"
    test.
    >
    > Any other ideas? Thanks.
    >
    >
    I just began doing this as well (except I'm doing it with a remote testing
    server), and I had a similar problem...my errors were produced because I
    specified "wwwroot/" in the 'host directory' field, and it was searching for
    [url]www.######.net/wwwroot/wwwroot[/url] instead of [url]www.######.net/wwwroot[/url], so I
    cleared the 'host directory' field and everything began working fine.
    This probably doesn't help much, but maybe play with the 'host directory'
    field a little bit.
    -rt


    Robot Tree Guest

Similar Threads

  1. Add Category in Site Definition
    By ryanmhuc in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 1
    Last Post: November 4th, 09:52 AM
  2. is there a way to read site definition data?
    By E Michael Brandt in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 3
    Last Post: July 30th, 01:24 PM
  3. Losing Contribute settings in site definition
    By Steve84 in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: September 7th, 09:18 AM
  4. DW site definition problems
    By djhicks in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: August 12th, 02:47 PM
  5. setup Site Definition for php
    By MLangner-MMTS in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: July 15th, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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