developing for PeopleAggregator on MacOS X
This just a short note for people interested in developing (or customizing) the peopleAggregator code on MacOS X, as I do.
I use the MAMP package from webEdition to have a really simple 'on the fly' Apche/PHP/MySQL environment on my MacBook (and the TiBook before that). The only other thing I need to install is SVN, and for that I use Martin Ott's package.
- when you install svn from the above package, make sure you include
/usr/local/binin your PATH. I do that by adding
PATH=/usr/local/bin:$PATHto my .profile file
- MAMP: I set the ports it runs on to 'Apache & MySQL default' so things are easier. Starting apache on port 80 will require you to enter your admin password btw, shutting down also. PA runs easily as well on ports like 8080, but that might require more manual tweaking of settings etc
- I edit MAMP's php5 php.ini to make it display errors in the browser. Set the
display_errors = Onin
/Applications/MAMP/conf/php5/php.ini(assuming you put your copy of MAMP in the /Applications folder
- you will need to install two PEAR modules to get things started: please navigate to
./pear install DB; ./pear install Log, This will ensure you are actually using MAMP's own php and pear binaries and everything goes to the right place :)
- assuming you have the PA code (either from SVN or as tarball), copy this to a conveient folde under
/Applications/MAMP/htdocs(I use 'pa', but you could put it right under htdocs if you wanted)
- with the MAMP servers (apache and mysql) running use your favorite webbrowser to access the root of your PA install. In my case that would be:
http://serenity.local/pa/. The page that comes up will guide you through the rest of the setup. To create the DB and tables give the installer the 'root' password (for standard MAMP installs that would be 'root')
You should be all set up and running. Regster a first user and you are go.
- MAMP is NOT MEANT for production use! It is strictly a dev/testing/local environment. So it is has lax security (remember the root-password for MySQL? Ok, you get the picture)
- Network creation will NOT work in this setup. That is due to the DNS setup of MacOS X (no wildcard subdomains for local)
- all this assumes you have some knowledge of using the Terminal and basic understanding of shell tools
- use the newest MAMP please (1.3.1 was current as of this writing). It is availeable as universal bunary, as PPC and Intel variants, it will work on Panther and Tiger likewise.
- MAMP is terrific in that is doesn't modify your system in any way! But if you want to use the MAMP apache on port 80, make sure you stop personal wensharing in system prefs first (the built in Apache of OS X)
SimilarWhy use XSLT in the first place? | excuse me? You really want to write XSLT? >>
alles Bild, Text und Tonmaterial ist © Martin Spernau, Verwendung und Reproduktion erfordert die Zustimmung des Authors