= OS X Leopard Dev Notes = == Apache 2 == Apache Version 2.2.9 /Developer/SDKs/MacOSX10.5.sdk/usr/include/apache2 (with XCode?) /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/apache2 (with MacPorts) /private/etc/apache2 /private/var/log/apache2 /usr/include/apache2 /usr/libexec/apache2 http://10.0.1.9/ http://10.0.1.9/~runeimp/ Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7l DAV/ == PHP 5 == PHP Version 5.2.6 Zend Version 2.2.0 === Paths === /Developer/SDKs/MacOSX10.5.sdk/usr/include/php/ /Developer/SDKs/MacOSX10.5.sdk/usr/include/php/ext/ /Developer/SDKs/MacOSX10.5.sdk/usr/include/php/include/ /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/php5 /private/etc/apache2/other/php5.conf /private/etc/php.ini.default /usr/bin/php /usr/bin/php-config /usr/bin/phpize /usr/include/php/Zend/ /usr/include/php/ext/ /usr/lib/php/build/ /usr/lib/php/extensions/ == Enabling PHP 5 in Apache 2 == sudo cp /private/etc/php.ini.default /private/etc/php.ini cd /private/etc/apache2 cp httpd.conf httpd.conf.bak vi httpd.conf #LoadModule php5_module libexec/apache2/libphp5.so to LoadModule php5_module libexec/apache2/libphp5.so sudo apachectl stop sudo apachectl start == Installing PEAR == http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/ $ curl http://pear.php.net/go-pear > go-pear.php $ sudo php -q go-pear.php ENTER ENTER (none) /opt/local Y ... install ok: channel://pear.php.net/MDB2-2.4.1 MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2) MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2) MDB2: Optional feature mysql available (MySQL driver for MDB2) MDB2: Optional feature mysqli available (MySQLi driver for MDB2) MDB2: Optional feature mssql available (MS SQL Server driver for MDB2) MDB2: Optional feature oci8 available (Oracle driver for MDB2) MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2) MDB2: Optional feature querysim available (Querysim driver for MDB2) MDB2: Optional feature sqlite available (SQLite2 driver for MDB2) MDB2: To install optional features use "pear install pear/MDB2#featurename" Y (alter php.ini include_path) ENTER (/private/etc/php.ini) $ sudo pear install DB $ sudo pear install --alldeps DB_DataObject (forgot --alldeps needing the next step) $ sudo pear install Validate-0.8.2 $ sudo pear install XML_Util $ sudo pear install Log == Python 2 == Python Version 2.5.1 == Ruby == Ruby Version 1.8.6 == TCL == Not installed by default. TCL Version 8.5.5_0 == AWK == Version 20040207