Starting OSX Built in Web Server

loom001

Registered
Can anyone tell me how to start and or to see if the webserver service is running? I want to setup a development site on my Mac before I move new thing into production. I have tried:

http://127.0.0.1/user name/
http://localhost/user name/
http://worrkstation ip//user name/

all with no luck so I am begining to wonder if the service is even running. Thanks for any help that you can provide. BTW I am running Panther. Thanks in advance for any help that you can provide!

:confused:
 
The simplest route without getting your hands dirty is to go to System Preferences and click on the Sharing pref icon... Then, make sure Personal Web Sharing is checked on. That's it, Apache Web Server is now running!

At the bottom of the panel, it should give you some connection instructions. However, you will have 2 directory routes (or more depending how many users on your machine). The main one being the 'master' directory/the top-level of your machine's web server, which will be:

http://127.0.0.1/
http://localhost/
http://ipaddress/ (being your machines assigned IP address).

For your own user directory, this will be:

http://127.0.0.1/~username/
http://localhost/~username/
etc.

Note the tilde character before the username, this is needed, otherwise the browser will think the username is a directory under the main web server.

The main web server directory is found at /Library/WebServer and the user directory is:

/Users/username/Sites

or
~/Sites for your own username.

;)
 
after my upgrade to panther
my webserver serves me a standard "apache is working" page
and NOT the html in my SITES folder in my home directory

How can this be?
In jaguar the contents of my sites folder was displayed.
What should i do? It seems apache is reading the wrong folder.
 
cfleck said:
it sounds like your are forgetting the ~username part. from above...

http://127.0.0.1/~username/
http://localhost/~username/

the funny thing is...
if i use my own username here 127.0.0.1/~manitas
i get permission denied messages

if i use a username of another account
for example 127.0.0.1/~frank i get the website in my sites folder
path: manitas/Sites/index.html

franks folder is empty.... because i removed everything from frank/Sites

there seems to be something wrong

could it be that activating the php in apache made this problem?

one other thing
if i leave out the ~manitas i get this message:
url / not found

in jaguar it worked fine without the ~manitas...
 
ah i found the problem

the permissions in the info-pane of the Sites folder
(press apple-i on the sites folder)
the group should be admin

now everything works fine again and no strange things happen anymore

except the php doesnt work yet

any way thanks for thinking about my prbl
 
Back
Top