开发者

Mac OS X - Apache path? Ruby on Apache?

开发者 https://www.devze.com 2023-01-25 16:25 出处:网络
I can activate an 开发者_如何学Capache webserver in the System Preferences. Now I want to install some mods but I can\'t find the path. Everybody suggests it is /usr/local/apache, but that doesn\'t ex

I can activate an 开发者_如何学Capache webserver in the System Preferences. Now I want to install some mods but I can't find the path. Everybody suggests it is /usr/local/apache, but that doesn't exist. Where can I find my apache path to install the mods?

Thanks, MrB

[edit]

Specifically, I want to install Ruby integration so I can include <% %> Ruby tags in my HTML. If anyone has any hints on how to do this, or tutorials, please say so. All the Ruby folks seem to be using Mongrel, but I have apache and want it to work there, if possible. Thx.


On Mac OS X 10.6, the modules are located in /usr/libexec/apache2.

You can look into the configuration file in /etc/apache2/httpd.conf to figure out the path if you're not finding them there.

As for using ruby you can use MacPorts to install FastCGI. Follow the instructions to install MacPort and then run:

port install fcgi

Using MacPorts you get the benefit of easy updates (port selfupdate; port upgrade outdated )


The config files are in /private/etc/apache2/ on my system (Mac OS 10.6). The apachectl script is in /usr/sbin/apachectl. The actual httpd binary is in /usr/sbin/httpd.


The conf files are located in /private/etc/apache2 and the mod files are in /usr/libexec/apache2

0

精彩评论

暂无评论...
验证码 换一张
取 消