0

Hi,
I have installed apache 2.2.8 and on http://127.0.0.1/ and http://localhost/ the browser is serving /usr/local/apache2/htdocs/index.html but:
1. personal web sharing just hangs waiting when I click Turn On PWS
2. http://127.0.0.1/~macuser/ does not bring up an index.html I placed there (in /Users/macuser/Sites/ )

I am not sure what am I doing wrong, as I am new to this

I run the whole compile and install process several times because it did not work and in the process I had removed the default apache 1.3 that was installed and working

It also seems like my system startup time is significantly longer than before the apache2 installation.

when I run sudo /usr/local/apache2/bin/apachectl start in terminal it says "already running"

still sys pref would not show personal web sharing is on

I am not sure how is this all related but all I want is to be able to serve pages via apache from my Sites directory

any ideas would should I check for?


PPC 10.4.11

Thanks

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by ansjos
0

The Personal Web Sharing preference pane is only meant for starting the default installation of Apache that comes with OS X -- I've never heard of someone starting a custom Apache installation from there. You'll just have to set up your virtual hosts for your home directory manually.

As far as starting Apache goes... first, make sure that any kind of web serving is disabled in your System Preferences. Next, edit the /etc/hostconfig file and ensure that WEBSERVER=-NO-.

If you want Apache to automatically start when you boot your Mac, you'll have to add the following line to your hostconfig file: APACHE2=-YES- Finally, download ApacheStartupItems.tar and extract it to /Library/StartupItems as described at the end of this article.

0

To enable PWS with your new installation just: sudo cp /usr/local/apache2/bin/apachectl /usr/sbin/apachectl

But be aware that everytime you make a security update of os x it will change back to default (I don't now how to solve that...)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.