New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.5 - 403 on localhost


Post Reply New Thread Subscribe

 
Thread Tools
drolleke

 
Member Since: Oct 26, 2007
Posts: 9
drolleke is on a distinguished road
Mac Specs: MacBook Pro 10.5

drolleke is offline
Whenever I try to reach http://<computer-name>.local/~<user>/ or http://localhost/~<user> I get a 403 forbidden message.

I have turned web sharing on.
My Sites folder has chmod to 777

Help ?
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
what if you try chmod 755? Still the same error?
QUOTE Thanks
drolleke

 
Member Since: Oct 26, 2007
Posts: 9
drolleke is on a distinguished road
Mac Specs: MacBook Pro 10.5

drolleke is offline
Yes
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
Are you using Apache Web Serving?
QUOTE Thanks
drolleke

 
Member Since: Oct 26, 2007
Posts: 9
drolleke is on a distinguished road
Mac Specs: MacBook Pro 10.5

drolleke is offline
Yes, the one that comes with 10.5 (I think its 2.2)
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
Reason I asked is I found this and it mentions something about enabling PHP ... the article is dated and I'm not sure if it'll help but I gotta try ..
QUOTE Thanks
drolleke

 
Member Since: Oct 26, 2007
Posts: 9
drolleke is on a distinguished road
Mac Specs: MacBook Pro 10.5

drolleke is offline
no that didn't solve it.

I tried to restart Apache (with apachectl -k restart), but I get this:

httpd not running, trying to start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
Quote:
Originally Posted by drolleke View Post
no that didn't solve it.

I tried to restart Apache (with apachectl -k restart), but I get this:

httpd not running, trying to start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
In Terminal:

sudo apachectl start
QUOTE Thanks
drolleke

 
Member Since: Oct 26, 2007
Posts: 9
drolleke is on a distinguished road
Mac Specs: MacBook Pro 10.5

drolleke is offline
I get this:
Quote:
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
org.apache.httpd: Already loaded
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
Ok, just what I was thinking would happen ... it's telling you that your server is already running ... but where is httpd?

BTW make sure Web Sharing is off in Sys Prefs ..... that can muck things up

Some more things to try:

Check the Advanced Options in your Firewall Settings:

Sys Prefs ~> Sharing ~> Firewall ~> Advanced,

and make sure that the Stealth Mode is turned off.

Try a search from a Terminal window to try and find your httpd.conf file, so try this command:
cd /etc/httpd
and then
ls -la
Then let me know what transpired ...
QUOTE Thanks
drolleke

 
Member Since: Oct 26, 2007
Posts: 9
drolleke is on a distinguished road
Mac Specs: MacBook Pro 10.5

drolleke is offline
this is what showed up after ls -la

Quote:
total 448
drwxr-xr-x 11 root wheel 374 Oct 17 17:51 .
drwxr-xr-x 101 root wheel 3434 Oct 27 12:31 ..
-rw-r--r-- 1 root wheel 38334 Oct 17 17:51 httpd.conf
-rw-r--r-- 1 root wheel 37417 Jan 13 2006 httpd.conf.bak
-rw-r--r-- 1 root wheel 38334 Jan 13 2006 httpd.conf.default
-rw-r--r-- 1 root wheel 38334 Jan 13 2006 httpd.conf.entropy.backup
-rw-r--r-- 1 root wheel 12965 Jan 13 2006 magic
-rw-r--r-- 1 root wheel 12965 Jan 13 2006 magic.default
-rw-r--r-- 1 root wheel 15201 Jan 13 2006 mime.types
-rw-r--r-- 1 root wheel 15201 Jan 13 2006 mime.types.default
drwxr-xr-x 4 root wheel 136 Oct 17 17:51 users
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
Is Web Sharing running? What about your Firewall & Stealth Mode?
QUOTE Thanks
drolleke

 
Member Since: Oct 26, 2007
Posts: 9
drolleke is on a distinguished road
Mac Specs: MacBook Pro 10.5

drolleke is offline
I tried with Websharing on and off, same result, and Stealth Mode is off.
QUOTE Thanks
drolleke

 
Member Since: Oct 26, 2007
Posts: 9
drolleke is on a distinguished road
Mac Specs: MacBook Pro 10.5

drolleke is offline
I sorted it out.

When I browsed to /private/etc there was a httpd folder and an apache 2 folder. the apache 2 folder didn't have any users set, so I copied the user.conf from httdp and now it works.

only problem now is that php Isn't installed. I tried the entropy installer for apache 2 but no luck.
QUOTE Thanks
Njugle

 
Member Since: Nov 13, 2007
Posts: 18
Njugle is on a distinguished road
Mac Specs: G4 (Graphite)1.4GHz, Macbook Pro 15" 2.2Ghz.

Njugle is offline
I'm having the same problem as above:

localhost, or 127.0.0.1 or http://<my mac>/~<my name> give 403 forbidden errors
If i just try , http://<my mac>/ then i get the apache default page.

web sharing off gives "server not found"

I've tried changing permissions on terminal to no avail [chmod 755 Sites and chmod 777 sites]

I don't know enough to try this last post above, ie where is private/etc
I've searched for an httpd file and all i found was a u nix exec file, and a couple of others with suffixes.

also, checking console i see this as the second last line:
26/03/2008 14:33:34 com.apple.launchd[1] (org.apache.httpd) Unknown key: SHAuthorizationRight

does this mean i'm just not authorized to access my own localhost?
drollecke are you still around, or has anyone else come across this?

(I'm on 10.5, upgrade from 10.4)

I just want to use the "Sites" localhost!<cries>
Any help please?
QUOTE Thanks

Post Reply New Thread Subscribe


« Installing Leopard on a new HDD | Installing someone else's copy »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
My Macbook is attempting to authenticate with my school's domain w/o authorization walmartconnect Internet, Networking, and Wireless 19 03-17-2009 06:48 PM
internet connection hangs irvin65 OS X - Operating System 0 10-03-2007 03:46 AM
Crash on boot - CIFSPlugin: LdapKerbDomainInit failed with error x0x0 OS X - Operating System 5 07-31-2007 09:00 PM
Mac Pro keeps crashing when using with KVM. where to start my investigation? AlexUK Apple Desktops 6 06-20-2007 06:50 AM
Localhost Andy_M OS X - Development and Darwin 0 11-15-2006 04:17 PM

All times are GMT -4. The time now is 11:14 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?