Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't connect to sites folder server

I've just enabled Web Shareing, I think for the first time, on an old Powerbook G4. From the links in the System Preferances panel, I was able to see the 'computer' web site, but not the 'personal' one. Taking the problem to be that described in https://discussions.apple.com/thread/1994142?start=0&tstart=0, I followed the instructions in http://support.apple.com/kb/TA25038.


Rather than the 403 I was getting, I now just see 'Safari can’t open the page “http://macintosh.lan/” because Safari can’t connect to the server “macintosh.lan”.'


After googling around a bit, I found the suggestion of running the apachectl configtest commend. I did that, and got the following:


/usr/sbin/apachectl: line 73: ulimit: open files: cannot modify limit: Invalid argument

Syntax error on line 1 of /private/etc/apache2/users/James.conf:

Invalid command 'James/Sites/"', perhaps misspelled or defined by a module not included in the server configuration


Can anyone translate that into instructions for how to get the sites folder running?

PowerBook, Mac OS X (10.5.8)

Posted on Jun 14, 2012 1:50 PM

Reply
Question marked as Best reply

Posted on Jun 15, 2012 5:47 AM

Solved it. The instructions in the http://support.apple.com/kb/TA25038 Apple support article have a broken user.conf template. This blog has a correct one: http://www.gigoblog.com/2007/11/08/configure-apache-web-sharing-for-user-account s-in-mac-os-x-105-leopard/


It's the last line and beginning of the first that are missing from Apple's template. The full version is:

<Directory "/Users/username/Sites/">

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

</Directory>

1 reply
Question marked as Best reply

Jun 15, 2012 5:47 AM in response to James Clayton

Solved it. The instructions in the http://support.apple.com/kb/TA25038 Apple support article have a broken user.conf template. This blog has a correct one: http://www.gigoblog.com/2007/11/08/configure-apache-web-sharing-for-user-account s-in-mac-os-x-105-leopard/


It's the last line and beginning of the first that are missing from Apple's template. The full version is:

<Directory "/Users/username/Sites/">

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

</Directory>

Can't connect to sites folder server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.