Hi guys,
Mac OS X Leopard can easily run Apache through it's Web Sharing feature. However, if I do turn Web Sharing on, people anywhere in the world with my computer's IP address will be able to access some of my files. So, I need to edit my httpd.conf file and change some "Allow"s and "Deny"s around in the <Directory "/Library/WebServer/Documents"> node.
So, I go into Terminal and type in nano /private/etc/apache2/httpd.conf (this is where my httpd.conf file is located: you can find this easily by running httpd -V, d'oh). It opens up the file, I change some Allows and Denys around in the node and I get this error when going to WriteOut (^O) the file:
Hmm... so how do I write to my httpd.conf file if I don't have permission? I'm the only user on my Mac and I'm the first, master user. Soo... I should have permission to write this, shouldn't I? How do I fix this? Thanks!
Mac OS X Leopard can easily run Apache through it's Web Sharing feature. However, if I do turn Web Sharing on, people anywhere in the world with my computer's IP address will be able to access some of my files. So, I need to edit my httpd.conf file and change some "Allow"s and "Deny"s around in the <Directory "/Library/WebServer/Documents"> node.
So, I go into Terminal and type in nano /private/etc/apache2/httpd.conf (this is where my httpd.conf file is located: you can find this easily by running httpd -V, d'oh). It opens up the file, I change some Allows and Denys around in the node and I get this error when going to WriteOut (^O) the file:
Error writing /private/etc/apache2/httpd.conf: Permission denied
Hmm... so how do I write to my httpd.conf file if I don't have permission? I'm the only user on my Mac and I'm the first, master user. Soo... I should have permission to write this, shouldn't I? How do I fix this? Thanks!