I posted this question here but was told I might get better results on superuser. So here goes:
I mistakingly deleted the /etc/apache2 folder and screwed up apache. I want to re-install the stock Apache to put this directory back, is there a way to do this from the Snow Leopard install disc?
If not, how can I do this? All links I'm finding don't explain how to install it. The only alternative I found is to use macports, so that is my worst case, but I'd like to fix my install. I'd actually prefer to re-install the operating system than use macports to avoid the problem.
Someone directed me to this link, but it didn't put the folder /etc/apache2 back, so I'm still getting the same errors when I try to start apache. I want to restore or replace the stock version.
UPDATE:
NOTE: This is definitely not best practice, and it didn't completely solve my problem.
What I ended up doing is copying the directory /etc/apache2 and its contents from someone else's mac. I had to rename one file /etc/apache2/users/home-name.conf and edit its contents to account for that change. Now, when running any sudo apachectl command such as sudo apachectl -k restart, i am getting this error:
/usr/sbin/apachectl: line 82: ulimit: open files: cannot modify limit: Invalid argument
Any ideas?