May 22
Some months ago I installed a git repository in our Mac server to manage all our projects, but now we are migrating to another machine (another Mac). I think that it has taken me more time to set up all system this time than the first one, I couldn’t remember how to do it.
It is not going to happen next time! So I’m writing this small manual to not forget any step becouse I have had several problems configuring gitosis, a tool that helps hosting git repositories in an easy and safe way.
This how-to is an adaptation of gitosis readme applied to Mac OS.
Continue reading »
Related Posts
Tags: Git, git-daemon, gitosis, How-to, install, Leopard, Mac, read access, share, write access
May 19

Download git source code from project’s home page.
Unzip the tar file and open a Terminal app to type:
./configure --prefix=/usr
make
sudo make install
Now, git version control system is fully working.
Related Posts
Tags: Git, How-to, install, Leopard, Mac
May 18
This post describes step by step how to install Trac using MacOS X Leopard’s Apache and mod_python.

First of all, you must install mod_python. I have written a post in this blog explaning how. There are options like WSGI or FCGI modules, but I have chosen this one.
After this initial configuration, you must download and install Trac. You can do it by downloading this application from its home page but I’m going to choose the easiest way.
Mac OS X includes easy_install tool that lets us to automatically download, build, install python applications.
Continue reading »
Related Posts
Tags: Apache, guide, How-to, Leopard, Mac, mod_python, python, Trac, tracker
Jan 26
I’ve been trying to run python scripts using Apache for a long time but finally I could install mod_python into our Mac Mini.
You can download mod_python from Apache web page:
http://httpd.apache.org/modules/python-download.cgi
Uncompress the source code and execute the configure script.
./configure --with-apxs=/usr/sbin/apxs
Then you have to patch the src/Makefile as follows:
- Add -arch x86_64 -arch ppc -arch i386 at the end of LDFLAGS variable
- Add -arch x86_64 -arch ppc -arch i386 at the end of CFLAGS variable
- Modify mod_python.so objective as follows:
Add -Wc,”-arch x86_64″ -Wc,”-arch ppc” -Wc,”-arch i386″ after the -c
In my situation: $(APXS) $(INCLUDES) -c -Wc,”-arch x86_64″ -Wc,”-arch ppc” -Wc,”-arch i386″ $(SRCS) $(LDFLAGS) $(LIBS)
Then you can compile and install this module:
make
sudo make install
In order to test that mod_python works you can add the following lines at httpd.conf
<Location /mpinfo>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler mod_python.testhandler
</Location>
Access to http://localhost/mpinfo and get this report:

Related Posts
Tags: Apache, Leopard, Mac, mod_python, python
Jan 22
I don’t know why PHP is not enabled by default at Leopard’s Apache.
To enable it you must uncomment this line from /etc/apache2/httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
And that’s all! You only need to turn on Web Sharing at System Preferences.

If you want to test that PHP works properly, you can write a file called, for instance, info.php which contains this code:
<?php
phpinfo();
?>
Locate it into:
/Library/WebServer/Documents
And finally, access to http://localhost/info.php using your favorite web browser to test that you get the php report.
Related Posts
Tags: Apache, httpd.conf, Leopard, Mac, PHP
Recent Comments