Thursday, April 9, 2009

How to set up a site and connect Dreamwever 8 to wamp

First of all make sure your website files are in the WWW folder like this C:\wamp\www 


1. In DW8 Click 'New site' then click the advanced tab. 

2. In the category 'Local Info' enter your site name my id going to be 'newsite' 

3. Then enter the local route folder C:\wamp\www\newsite\ 

4. Tick the refresh first list box 

5. Enter your default images C:\wamp\www\newsite\images 

6 Tick the 'links are relative to document' radio button 

7. Enter your HTTP address which would be [localhost] site/ 

8. Click 'Enable cache' (leaving case sensitive links unticked). 

9. In the Category under 'Local Info' click the 'Remote info'. 

10. Click on the 'Access' dropdown and select 'Local/Network' 

11. Enter your remote folder C:\wamp\www\newsite\ 

12. In the Category under 'Remote info' click 'Testing Server' 

13. Select server model 'PHP MySql' 

14. 'Access' Select Local/Network' 

15. Your testing server folder should show C:\wamp\www\newsite\ 

16. Your URL prefix enter [localhost] 

17. Then click 'OK' 

Your website is set up. 


Now to connect your website to your Database using DW8. 
I'm assuming you have data in your database, other wise there are other tutorials showing you how to do that. 

1. Make sure your wamp is on and all services are running so the icon should be white. 

2. In DW8 open your index page. 

3. Go to 'window >and click Database' (so its ticked). and it should show up on the right of your screen if its not there already. 

4. under the Tab 'Databases' click on the +plus sign and select mysql connection 

5. A box comes up, the first thing its asking for is 'connection name' I'm entering 'newsite' 

6. Then it wants 'mysql server' we need to write 'localhost' 

7. Then you need to enter your username for your database 

8. Enter your password for you database. 

9. Click the select button and another box will come up asking you to select which database you want to connect to, just select the one you want then click OK. 

10. Then Click Ok in the other box. 

12. Now you should be able to view your website in your browser. Open up a browser and type in [localhost] 


And thats it. I hope I Helped.

if you still have queries you can ask me..

No comments:

Post a Comment