You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Apache symlinks in Leopard

I'm installing the Koha library catalog system on an OS X 10.5.7 server. Because of the other services running on the computer, I want to use the built-in Apache, MySQL, etc. After some struggles building some CPAN modules, I am pretty sure that I have everything up and running.

I used the instructions here <http://wiki.koha.org/doku.php?id=koha 3_install_guide_ubuntuhardy> as a guide, but altered some methods in order to get them to work with the standard Leopard Server install. Everything runs, but I am wondering what the purpose of one particular command line code is:

+sudo a2enmod rewrite && sudo a2ensite koha+

I've read the documentation and they both refer to creating symlinks for the user in question (koha), but I am not sure if the command is necessary on Leopard.

iMac 20", MacBook Pro, Mac OS X (10.5.7)

Posted on Jul 16, 2009 2:35 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 16, 2009 6:31 PM

I am wondering what the purpose of one particular command line code is:
sudo a2enmod rewrite && sudo a2ensite koha


http://www.penguin-soft.com/penguin/man/8/a2enmod.html

a2enmod is a command to enable an Apache module. You can achieve the same thing by editing /etc/apache2/httpd.conf and uncommenting the line for the rewrite module:

LoadModule rewrite_module libexec/apache2/mod_rewrite.so


Note that this is enabled by default, so shouldn't be necessary anyway.

a2ensite creates a symlink from your site's actual configuration file to the directory that Apache's actually looking in. I have no idea why they decided to do it that way, and isn't the way that Mac OS X Server employs Apache. If you've configured your site via Server Admin, this step is irrelevant, too.
2 replies
Question marked as Top-ranking reply

Jul 16, 2009 6:31 PM in response to J-Unit

I am wondering what the purpose of one particular command line code is:
sudo a2enmod rewrite && sudo a2ensite koha


http://www.penguin-soft.com/penguin/man/8/a2enmod.html

a2enmod is a command to enable an Apache module. You can achieve the same thing by editing /etc/apache2/httpd.conf and uncommenting the line for the rewrite module:

LoadModule rewrite_module libexec/apache2/mod_rewrite.so


Note that this is enabled by default, so shouldn't be necessary anyway.

a2ensite creates a symlink from your site's actual configuration file to the directory that Apache's actually looking in. I have no idea why they decided to do it that way, and isn't the way that Mac OS X Server employs Apache. If you've configured your site via Server Admin, this step is irrelevant, too.

Jul 17, 2009 9:11 AM in response to Camelot

Camelot wrote:
I am wondering what the purpose of one particular command line code is:
sudo a2enmod rewrite && sudo a2ensite koha


http://www.penguin-soft.com/penguin/man/8/a2enmod.html

a2enmod is a command to enable an Apache module. You can achieve the same thing by editing /etc/apache2/httpd.conf and uncommenting the line for the rewrite module:

LoadModule rewrite_module libexec/apache2/mod_rewrite.so


Note that this is enabled by default, so shouldn't be necessary anyway.


a2ensite creates a symlink from your site's actual configuration file to the directory that Apache's actually looking in. I have no idea why they decided to do it that way, and isn't the way that Mac OS X Server employs Apache. If you've configured your site via Server Admin, this step is irrelevant, too.


Thanks, this is exactly what I was looking for. I hadn't noticed any change in functionality, but I am writing some install docs for the software and wanted to make sure I had more information. The way the software goes about this stuff is kind of logical, it just doesn't flow into the Leopard server default install very well.

Apache symlinks in Leopard

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