PDA

View Full Version : Setting up 'site' on dreamweaver Mac os leopard



jarmanje
February 29th, 2008, 09:30 AM
Hi there, i have set up my apache server and php using a tutorial. and can navigate to http://localhost/ and have made a test.php which works

I'm trying to create a 'site' using dreamweaver.

When is asks me 'what URL do you want to browse to your site'

i input http://localhost/admin
(i created a folder called admin in HD - lirbary - webserver - documents.

But it gives me an error! Everytime

"dreamweaver cannot use the prefix you enter to display live data"


Why is this? I want to be able to do everything locally. I have a mysql database at the moment on my server, but i am hoping to copy that to my computer and run it all locally.

I'm very newbie to this. I have always been an uploading maniac uploading everything so i can test it...

Please help!

MikeDS
February 29th, 2008, 10:46 AM
Try puttin an extra '/' in the url (i.e. http://localhost/admin/).

I know it sounds like a petty idea, but seriously 90% of my setting up sites problem has been from missing that extra slash!!

jarmanje
February 29th, 2008, 11:51 AM
I've made a little screen capture to show my problem! :)

http://www.yoce.com/nogo.html

MikeDS
February 29th, 2008, 12:19 PM
Hmm, I'm not too sure about the whole mac folder structure (not converted...yet) but the folder you store the pages in needs to match the folder you access on localhost - ie for http://localhost/admin, you need to store in a folder called admin (from what I could make out you stored in a folder called test) Basically, just find out where the apache server stores your pages (I would offer more help, but again I don't know MAC structures that well), create a subfolder called 'admin' and store the pages in there

Hope it helps, apologies if it doesn't!

jarmanje
February 29th, 2008, 12:36 PM
Ahh brilliant it seems to work now.

How do i now set up a local mysql?

i have a mysql on my server. if i export it all to a .sql file, what do i do next?

wiifanatic
February 29th, 2008, 07:05 PM
Dude, save yourself a LOT of time, and just use MAMP

jarmanje
February 29th, 2008, 08:10 PM
F***

Why didnt you tell me that 12 hours ago?????????????????????????????????
I've got it working, but with dreamweaver have to set the Database path to :/Applications/MAMP/tmp/mysql/mysql.sock

not 'localhost'

who cares, its working

woohoo!