13 Replies Latest reply: Apr 11, 2012 2:28 PM by kevin319 RSS

    how does local folder connect to local server

    kevin319

      I have never been able to figure out the connect between the folder you keep you files in, say a folder in My Documents, and a folder in wwwroot so the localhost can find it.

       

      When you set up the site in Dreamweaver, it asks where you'll store your files.  I put mine in a folder in My Docs for easy backup.  then I give it my localhost b/s for the test server.  you'd think Dreamweaver would put the two together. when I try to display my page, it's 404 looking for the page in a folder in wwwroot.

       

      Will somebody please explain this to me?

        • 1. Re: how does local folder connect to local server
          Ben M MVP

          You can use the wwwroot as the storage for the files or you can point the wwwroot to be your MyDocs instead of the wwwroot.  But if DW is giving you an error, assuming everything is set up, can you verify that the server is running when you go to preview the page?

          • 2. Re: how does local folder connect to local server
            kevin319 Community Member

            "you can point the wwwroot to be your MyDocs instead of the wwwroot."  I'm not sure what that means.  How do you do something like that?

            • 4. Re: how does local folder connect to local server
              kevin319 Community Member

              That's for that, but then tell me why, oh why would Dreamweaver ask for two different locations?   Why would it ask where I store my files and then ask what directory in wwwroot I'm going to use? 

               

              It sounds to me that you're saying they have to be the same directory.  Am to still missing something?

              • 5. Re: how does local folder connect to local server
                hans-g. MVP

                Hi Kevin,

                 

                in addition to SnakEyez02's and John's hints I would like to ask you this:

                 

                Do you "produce" your files in DW and store them with DW in the corresponding directories?

                After that you load them up into one or some other directories?

                If yes, did you control the pathes of the "new" directories?

                 

                Nonetheless and for me in particular (due to language barrier), it would be better you could send us a link to the website on your test server.

                 

                Hans-Günter

                • 6. Re: how does local folder connect to local server
                  Ben M MVP

                  Kevin, DW asks for a few things and here is a brief rundown:

                   

                  Local Site Folder - Where your Site Resides on your local computer

                  Servers --> Server Folder - The local directory of your files on the testing/remote server.  If the testing and local are the same this address can be identical to the Local Site Folder.

                  Web URL - This is the URL that you would use in a browser to access your site.  If you are using a testing server this should be either an IP, Alias, or "localhost" address to your server.  Let's say your testing server was on the network and not your local machine, DW would then put the files on the remote server and when you hit Live View it would use the remote URL to access your site.  In a small/single-user environment, this is not typically the case, but as you work with larger sites that demand more resources and work in collaborative teams, this becomes a more likely scenario.  So they don't have to be the same directory, but they can be.

                  • 7. Re: how does local folder connect to local server
                    kevin319 Community Member

                    OK, maybe a picture's worth, whatever. 

                     

                    When I create a site in Dreamweaver, it asks me where I want to store and work on files.  Since I backup My Docs every night, I put them there.

                     

                    When it asks me about servers, in particular, the testing site:

                     

                    Now, I know localhost uses wwwroot so I give it a folder there.

                     

                    From what I'm getting from you guys, both of these locations should be the same.

                     

                    It seems like Dreamweaver could skip asking twice.  I guess you don't actually need a test server so the first question is relevant.  DOS being what it is, the second is relevant if you're using a test server.  What if you added the test server later.  Seems like Dreamweaver could put them together w/o having to move everything or sync the folders all the time. 

                     

                    Maybe I'm just being silly.

                     

                    PS-looks like the pictures didn't stick.  Sorry.

                    • 8. Re: how does local folder connect to local server
                      John Waller MVP

                      Re: pictures - use the camera icon in the toolbar when you reply

                      • 9. Re: how does local folder connect to local server
                        kevin319 Community Member

                        OK, let's try again:

                         

                        OK, maybe a picture's worth, whatever. 

                         

                        When I create a site in Dreamweaver, it asks me where I want to store and work on files.  Since I backup My Docs every night, I put them there.

                        localfolder.jpg

                         

                        When it asks me about servers, in particular, the testing site:

                        testserver.jpg

                         

                        Now, I know localhost uses wwwroot so I give it a folder there.

                         

                        From what I'm getting from you guys, both of these locations should be the same.

                         

                        It seems like Dreamweaver could skip asking twice.  I guess you don't actually need a test server so the first question is relevant.  DOS being what it is, the second is relevant if you're using a test server.  What if you added the test server later.  Seems like Dreamweaver could put them together w/o having to move everything or sync the folders all the time. 

                         

                        Maybe I'm just being silly.

                        • 10. Re: how does local folder connect to local server
                          Ben M MVP

                          From what I'm getting from you guys, both of these locations should be the same.

                           

                          It seems like Dreamweaver could skip asking twice.  I guess you don't actually need a test server so the first question is relevant.  DOS being what it is, the second is relevant if you're using a test server.  What if you added the test server later.  Seems like Dreamweaver could put them together w/o having to move everything or sync the folders all the time.

                           

                          Maybe I'm just being silly.

                           

                          It appears some images are not loading from your post but from the two I see they appear to be corerct.  In your case you have a separate local, testing and remote locations (mydoc, inet and FTP).  The local and testing don't have to be the same.  They can be, but do not have to be.

                           

                          The only bad thing I see about your setup is the FTP.  The fact that your host has not given you SFTP or FTPS, basically a secure FTP connection, that's bad.  I would definitely recommend discussing that with your host, but outside of that as long as all your details are setup correctly everything should work fine for you at this point.

                          • 11. Re: how does local folder connect to local server
                            kevin319 Community Member

                            You did notice that the local site folder and the address of the local host are different. 

                             

                            From what I'm understanding from this conversation, the local site folder and the address of the local host have to be the same location.  That is if I want to view my pages on my local test server.

                            • 12. Re: how does local folder connect to local server
                              Ben M MVP

                              From what I'm understanding from this conversation, the local site folder and the address of the local host have to be the same location.  That is if I want to view my pages on my local test server.

                               

                              No, that's not correct.  Localhost is the name of a local address of a computer.  It's just replaces an IP address, an Alias or a URL.  The local site folder is where your site is stored on your computer.  The testing server is your inetpub address which you are using localhost.  The Testing Server doesn't even have to be your own computer, it can be another server that is not the Remote server and is not your developing machine.

                               

                              Let's go back to your original post though.

                               

                              you'd think Dreamweaver would put the two together.

                              When you started this thread you asked why DW asks you for the information.  But it's not duplicate, although it can be.  There is nothing for DW to put together because each setup is different.  At the end of your post you said you were getting a 404 error.

                               

                              So next, get us a screenshot of the Site setup for the Testing Server.  When you click to Manage Sites and Edit that site.  Then click on the Servers, and go to Edit your Testing Server.  You should see a Basic and Advanced tab here.  Take a screenshot of the Basic tab only.

                              • 13. Re: how does local folder connect to local server
                                kevin319 Community Member

                                basic.jpg

                                 

                                No, let me restate.

                                 

                                From what I'm understanding from this conversation, the local site folder (the folder where i store my files, in My Docs, in my case as shown below) and the address of the local host (here I mean the folder under wwwroot, in my case, inetpub\wwwroot\clienttrax as shown above) have to be the same location.

                                 

                                localfolder.jpg

                                My point was that if I want to store my files in Documents(as above), then I have to copy them to a folder under iNetPub to display them with the test server on my LOCAL machine.

                                 

                                Or is there another way?