Forum Moderators: travelin cat

Message Too Old, No Replies

How do you set up a local site for testing on OSX

should be easy but I'm having troubles

         

basenotes

10:57 am on Nov 1, 2004 (gmt 0)

10+ Year Member



Hello all,

I've been upgraded to X for nearly a year now and thought it was about time I used its built in Apache to be able to test my websites out without having to upload to the internet. I've looked through the Help files and on the Internet but can't find a simple-step-by-step-guide for idiots like me.

Anyone know of such a resource / or know how to do it in easy steps?

sonjay

10:33 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



If all you want is to run Apache, just go into System Preferences -> Sharing -> Services tab and check "Personal Web Sharing." This turns on the Apache server software.

Then put your site into /Library/WebServer or /Users/you/Sites. If you put the files into /Library/WebServer, you can view your site by calling 127.0.0.1, or localhost, in your browser. If you put them in /Users/you/Sites, you view it by calling 127.0.0.1/~you (or localhost/~you).

mivox

4:25 am on Nov 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I had no problem getting that far myself, but when I tried to get perl and php running, I really messed something up...

...haven't worked up the motivation to go back and try again yet, but if anyone could point to a handy set of instructions for the "advanced" stuff like that, I might just do it.

basenotes

8:40 am on Nov 2, 2004 (gmt 0)

10+ Year Member



Got my apache working now (thanks!). Just need to sort out PHP / Perl etc -- There's a good bunch of resources on O'Reilly's macdevecenter which I'll try and look at later. I won't link (don't think I'm allowed) but sticky me if you want a link

Ta

dcrombie

10:35 am on Nov 2, 2004 (gmt 0)



The site you need is <snip> by Marc Liyanage ;)

<edit>Only inks to autoritative sites are allowed, and needs to be linked. More details in link below. Thanks</edit>

[edited by: Macguru at 3:52 pm (utc) on Nov. 2, 2004]
[edit reason] Linkless URL [webmasterworld.com] [/edit]

dcrombie

4:57 pm on Nov 2, 2004 (gmt 0)



FYI: The site I referred to is _the_ authoritative site for OSX software installation - even Apple links to his site. I'll include the 'http://' next time as it seems that was the offence ;).

mivox

9:51 pm on Nov 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dcrombie, please repost the full link, or stickymail me with it... (and I'd like to get the addy of the MacDevCenter info too! ;) )

basenotes

8:35 am on Nov 3, 2004 (gmt 0)

10+ Year Member



and I'd like to get the addy of the MacDevCenter info too!

sticky sent

dcrombie

10:24 am on Nov 3, 2004 (gmt 0)



Mac OS X Packages [entropy.ch]

mivox

7:15 pm on Nov 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks both of you! :)