Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

site URL prefix error - bob flynn, jeffrey bardzell

Guest
May 12, 2008 May 12, 2008
Hi am trying to set up the dynamic website from chapter 3 of training from the source book by bardzell and flynn -chapter three- p 97 -setting up testing server -
i get the following error message - when put in the location -
I am using mamp on a mac. root folder is in local_sites
the mamp folder is htpdocs in the applications folder -and the site folder is newland

the address I have typed - would be http://localhost:8888/newland/
the error message is -
The site URL prefix [/newnand] for the testing server does not match the site URL prefix [] specified in HTTP Address for the site. This may cause pages using site relative links to display incorrectly at runtime. proceed anyway?

What do i do? what is causing this?
thanks
buddy
TOPICS
Server side applications
440
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 12, 2008 May 12, 2008
Hey Buddy,

I am away from my Mac this week, but I might be able to test this on someone else's. Before I do, let me ask a couple of clarifying questions. I am assuming a couple of these are typos, but I want to confirm first.

I'm confused by your description of the root folder, saying it is in local_sites and htpdocs. Should that be htdocs? It should be in The HD:Applications:MAMP:htdocs. When you bring up the MAMP home page, what is its URL? Did you change any of the defaults in the preferences?

Did you copy and paste the error into the forum or type it? The reason I ask is because it says the site URL prefix [/new nand]... It should be "newland" with an "l". That may cause the error you have listed.

Bob Flynn
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 13, 2008 May 13, 2008
sorry for the typos
I have installed mamp 1.7 and still got the message

the root folder was
Macintosh HD:Users:[username]:Documents:local_sites:Newland Tours:

the mamp homepage
http://localhost:8888/MAMP/?language=English

i haven't changed any defaults since doing a clean install of mamp

I have followed the directions in the book - and after changing the site to php - then uploading the site to the remote folder -
it views with this address

http://localhost:8888/newland/index.php

any idea why the error message? so far so good -
i will continue with the exercise.

b
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 13, 2008 May 13, 2008
LATEST
I won't be back to my Mac until the weekend, but I'll try to see if I can get someone to install MAMP in the next few days and take a look to be certain, but I don't think you are putting the files in the correct directory. From the path you've given it looks like you are putting them in the regular Mac OS X site directory. That would work if you set up Apache and MySQL on the machine. There are plenty of online tutorials on how to do that if that is your preference. If you go that route you can leave the port number (the :8888) part of the URL out.

The MAMP installer simplifies the whole installation and configuration process. If you've installed MAMP put your newland folder in Macintosh HD:Applications:MAMP:htdocs then the URL given in the book ( http://localhost:8888/newland/index.php) should work for you.

Please double-check where that newland folder is. If it is in the MAMP htdocs folder and you are still getting the error, please let me know.

Bob
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines