PDA

View Full Version : Leopard: Install methods and Personal Web sharing weirdness (aka apache)


John David Eriksen
10-28-2007, 10:56 PM
OK..

I have now done 8 Leopard installs.. (yes guys busy weekend using a real apple disk) And.. I think I have found something...

6 INSTALLS via Update method:
Personal Web sharing is wacked..

1) I does serve pages out of the:
Library/webserver/Documents folder

2) it DOES NOT serve pages out of the:
Users/[account]/Sites folder

error says:

Forbidden
You don't have permission to access /~[accntname]/ on this server.

This has repeated on 6 different boxes and was tested using the two provided links in the sharing prefs panel (yes web sharing was checked and running)

ALL THESE BOXES ARE G5 and Up and 4 were intel boxes
ALL OF THESE BOXES ARE 10.5 INSTALLS VIA 'UPDATE"


CLEAN INSTALLS (wiping the disk)
The following two of these installs are CLEAN INSTALLS wiping the disk and starting over with Leopard

One was a G5 iMac one was an Intel core2 based iMac

In BOTH cases...
When you turn on web sharing.. the 'Test you web site' URLs are missing...

I was so tired and disgusted I didn't bother to test if they worked (stupid after all that work but....8-\

but will test tomorrow and post and update to this item

DOES ANYONE HAVE ANY IDEAS HERE...?

ALSO I HAVE been all over the net and looking for whines and rants on Leopard install issues about this but all I see is blue screen complaints.
And other minor things...

Or is this just me

Thanks in advance

go test your install and post if it seems to work or.. not work correctly.

Use the sharing Prefs panel links.. Q&D and gets the job done in under a minute.

Pls lemme know

pakkman781
10-28-2007, 11:55 PM
Either use chmod and give everyone read access or do a get info on the sites folder and make sure everything says read access. Make sure to apply the same permissions to all the files inside the folder as well.

hayne
10-29-2007, 01:22 AM
See this other thread about the same problem:
http://forums.macosxhints.com/showthread.php?p=418359
There seems to be a solution there.

Crow.mac
11-06-2007, 03:52 AM
My Web-Sharing doesn't even work in my updated Leopard System! Portscan doesnt't show an open port 80. When I try to visit http://localhost in the browser I get nothing: couldn't connect to server

Anyone got an idea about this problem? How can I start the apache server manually in Terminal?

rghartwig
11-06-2007, 06:50 AM
error says:

Forbidden
You don't have permission to access /~[accntname]/ on this server.
I had the very same thing happen and just found a solution. It wasn't a permission problem with me.

I have created this file: /etc/apache2/users/local.conf
where I put my local customizations and overrides to what's in /etc/apache2/httpd.conf
(all files in the users directory are loaded by default)
This way, I don't have to change any of the shipped files.

Adding this fixed the problem on all my virtual sites:


<Directory /Users/*/Sites>
Allow from all
</Directory>


I'm assuming Apache 2 has a different default than the older Apache. Whatever the reason, it fixed me up!

rghartwig
11-07-2007, 06:34 AM
My Web-Sharing doesn't even work in my updated Leopard System! Portscan doesnt't show an open port 80. When I try to visit http://localhost in the browser I get nothing: couldn't connect to server

Anyone got an idea about this problem? How can I start the apache server manually in Terminal?

It may be that your config files have errors that keep Apache from starting. Unlike with previous systems, which would hang up System Preferences when there was a problem with Apache, Leopard makes it look everything's fine, even if it isn't.

To check your Apache configuration, open a terminal window and type this:
apachectl -t

John David Eriksen
11-07-2007, 08:45 AM
Well.. got that all ironed out but NOW... and it works but... Now (ahhhh....)

I can get SSI to run (ie Server Side Includes.... to save my life..
and I all over every bit of documentaton I can get my hands on...

This is a simple thing to do... no more than 4-5 config statements in you httpd or hta config file.. but it just doesn't run...

Man... I am about to give birth to fully formed office furniture.. {8-D)

I am missing a step somewhere.. see this post I left...

http://forums.macosxhints.com/showthread.php?t=80692&highlight=leopard+SSI

Hmm...
Yet something else that is wacked...
LEOPARDS INSTALL OF APACHE

Thanks in advance

jeffreyleow
03-16-2009, 10:34 PM
I had the very same thing happen and just found a solution. It wasn't a permission problem with me.

I have created this file: /etc/apache2/users/local.conf
where I put my local customizations and overrides to what's in /etc/apache2/httpd.conf
(all files in the users directory are loaded by default)
This way, I don't have to change any of the shipped files.

Adding this fixed the problem on all my virtual sites:


<Directory /Users/*/Sites>
Allow from all
</Directory>


I'm assuming Apache 2 has a different default than the older Apache. Whatever the reason, it fixed me up!

hi.
sorry for this stupid question
i got directed here from (http://dougscripts.com/itunes/scripts/ss.php?sp=readdaspodcast)
how do you create this file you mentioned (/etc/apache2/users/local.conf) to solve this apache problem?