Defining a Dynamic Site in Dreamweaver

When using a testing server and creating dynamic PHP pages, you will need to define your Dreamweaver site, to store your website’s files in the right location for testing. This process can be done at any time, but should be completed prior to starting a new website.

The following tutorial shows you how to define your dynamic site in Dreamweaver to work best with WebAssist Dreamweaver extensions.

What you need to start:

Configure your testing server

Defining a site in Dreamweaver should be done before you begin creating you website.  The Local Info category allows you to specify the details for where you will store your website on your local computer.

  1. In Dreamweaver, choose Site >New Site.
    If you already defined a site, but need to modify it to use your testing server, select Manage Sites.  Then, select your site to modify, and click Edit.
  2. From the Site category, enter a name for this site.
  3. Choose the Local Site Folder Browse icon.
  4. Navigate to the folder on your computer, where your testing server stores your websites.
    If you installed XAMPP, this will most likely be located at C:\xampp\htdocs.If you installed MAMP, this will likely be OSX:Applications:MAMP:htdocs
  5. Choose the Create New Folder icon to create a new folder within this directory.

    new folder icon

  6. Enter a name for this folder that is similar to the Site name you specified.
    This will help you keep track of your websites.  As you create multiple websites, you will want each website to be stored in its own sub-folder.
  7. Click Select to confirm this selection.
  8. Choose the Servers category from the side navigation to proceed.
  9. To add your first server, click the Add (+) icon.
  10. In the Basic settings, enter a Server Name.
    For example, 'localhost' would be appropriate since this will be your testing server.
  11. From the Connect using dropdown, select Local/Network.
  12. Choose the Server Folder browse option and navigate to the location of your testing server where you plan on saving this site's files.
    In most cases, this is the same as the setting you chose for the Local Site Folder (step 4).
  13. In the Web URL field, enter the URL for viewing this site on your testing server.
    This will be something such as http://localhost/’directoryname’ where ‘directoryname’ should be replaced with the sub-directory you created in step 5.

  14. Choose the Advanced option to proceed.
  15. From the Server Model dropdown, choose PHP MySQL.

  16. Click Save to save the settings for this server.
  17. Now that your testing server has been configured, uncheck the checkbox in the Remote column and select the Testing checkbox.

Configure your remote server

Next, you will configure the Remote (Live) server.  When properly configured, you can upload your website's files directly to your live server from within Dreamweaver.

 
NOTE:Certain WebAssist products rely on a properly configured Remote Server in order to work properly with your remote database. This is particularly important for users of PowerCMS Builder.
  1. To add your remote server, click the Add (+) icon again.
  2. In the Basic settings, enter a Server Name.
    For example, 'remote server' would be appropriate since this will be your remote server.
  3. From the Connect using dropdown, select FTP.
    FTP is the standard method of uploading your site's file to your remote server. If you intend to use a different method, choose that instead.
  4. In the FTP Address field, enter the address for accessing your remote server via FTP.
    If you do not know this, log into your Hosting Provider's Control Panel and check the FTP settings.
  5. In the Username field, enter the FTP username for your remote server.
  6. In the Password field, enter the FTP password for your remote server.
  7. Select the Test option to confirm that your settings are correct.
    If the test is unsuccesful, you should check with your hosting provider to ensure you have the correct FTP credentials and do not need to change any additional settings.
  8. In the Root Directory field, enter the name (or path) for the directory on your remote server where you wish to store this site's files.
  9. In the Web URL field, enter the live URL to your website on your remote server.
  10. Choose the Advanced option to proceed.
  11. From the Server Model dropdown, choose PHP MySQL.
  12. Click Save to save the settings for this server.
  13. Leave the Remote column checkbox selected.
  14. Click Save to save your Dreamweaver site definition.
What to do next...

You've now defined your dynamic site in Dreamweaver, and you are ready to start creating your website's dynamic pages. Your first step should be to create a database connection to tell Dreamweaver what kind of pages you intend to create with this site and where your database is stored.

For instructions on accomplishing this task, view the tutorial on creating a PHP database connection.

Feedback on this tutorial?

If you did not find this helpful or you are stuck on a particular step, click here to let us know what we can do to improve this tutorial.

    • Required *
    • Invalid format.Please enter a full email address
      Please provide a comment
    • Security Code
      Entered text does not match; please try again

This form was built using CSS Form Builder.