Development

osXDevelopmentEnvironment (diff)

You must first sign up to be able to contribute.

Changes between Version 2 and Version 3 of osXDevelopmentEnvironment

Show
Ignore:
Author:
Tiago.Ribeiro (IP: 195.23.164.38)
Timestamp:
03/14/07 14:03:26 (10 years ago)
Comment:

cleanup

Legend:

Unmodified
Added
Removed
Modified
  • osXDevelopmentEnvironment

    v2 v3  
    1 One of the quick ways to get the complete environment is using DarwinPorts. 
     1[[PageOutline]] 
     2== Install DarwinPorts == 
     3Follow the [http://darwinports.opendarwin.org/docs/ch01s03.html instructions] carefully. 
    24 
    3 [http://darwinports.opendarwin.org/docs/ch01s03.html Install DarwinPorts], follow the instructions carefully. 
     5=== Using MySQL === 
     6 
     7Install MySQL: 
     8{{{ 
     9sudo port install mysql4 
     10}}} 
    411 
    512Then to install PHP5 with Apache2 and MySQL4 support: 
    815}}} 
    916 
    10 or if you want to use Postgresql: 
     17Start MySQL: 
     18{{{ 
     19/opt/local/bin/mysqld_safe & 
     20}}} 
     21 
     22=== Using Postgresql === 
     23 
     24Install the latest postgresql: 
    1125{{{ 
    1226sudo port install postgres82 
     27}}} 
     28 
     29Initialize it: 
     30{{{ 
    1331cd ~ 
    1432initdb -D pgdata 
    1634createdb askeet 
    1735psql askeet 
     36}}} 
    1837 
     38Install php5 with postgresql support: 
     39{{{ 
    1940sudo port install php5 +postgresql 
    2041}}} 
    2647Then try to install again. 
    2748 
     49== Apache2 configuration == 
     50 
    2851Here we have the whole application compiled, now we do some setup: 
    2952 
    3154   1. You can add the apache2 support programs to your $PATH, just add ''/opt/local/apache2/bin" to the '~/'.profile'' file that is created when you setup DarwinPorts 
    3255   2. In ''/opt/local/apache2/conf'' rename the httpd.conf.sample to httpd.conf and change the conf you want 
    33   
     56 
     57== PHP5 configuration == 
     58 
    3459 * PHP5 : 
    3560   1. Go into {{{/opt/local/apache2/modules}}} and type {{{/opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so}}} 
    6590{{{ 
    6691/opt/local/apache2/bin/apachectl start 
    67 /opt/local/bin/mysqld_safe & 
    6892}}} 
    6993 
    70 You can change {{{/opt/local/apache2/conf/extra/httpd-vhost.conf}}} to add your Symfony virtual host: 
     94== Virtual hosts == 
     95 
     96You can change {{{/opt/local/apache2/conf/extra/httpd-vhost.conf}}} to add your symfony virtual host: 
    7197{{{ 
    7298<Directory "/opt/local/lib/php/data/symfony/web/sf">