DeveloperEnvironmentSetupOsX » History » Revision 2
« Previous |
Revision 2/4
(diff)
| Next »
Niels Hoffmann, 07/15/2008 05:17 PM
Eclipse¶
Local dataportal development and test environment on Os X¶
Install MacPorts: http://www.macports.org/
Follow instructions to install Apache, MySQL and PHP using MacPorts: http://trac.macports.org/wiki/howto/MAMP
Give the according rights to the eclipse project within Apache (@/opt/local/apache2/conf/httpd.conf@) and adapt accordingly. default acces rights for certain folders in user home directory are '700'. You have to change this if your eclipse workspace resides in home directory
<Directory "/path/to/eclipse_workspace/Drupal5"> AllowOverride All Options Indexes Order allow,deny Allow from all </Directory>
or use apache only locally by adding:
DocumentRoot "/path/to/eclipse_workspace/"
- Add aliases for different projects to Apache @/opt/local/apache2/conf/httpd.conf@:
Alias "/drupal_test" "/path/to/eclipse_workspace/Drupal5" Alias "/expertsdb" "/path/to/eclipse_workspace/Drupal5" Alias "/drupal_demo" "/path/to/eclipse_workspace/Drupal5" Alias "/cdm_dataportal" "/path/to/eclipse_workspace/Drupal5" Alias "/drupal6" "/path/to/eclipse_workspace/Drupal6"
Install PHP Development Tools (PDT) for Eclipse from http://www.eclipse.org/pdt/
Install run-jetty-run eclipse plugin from http://code.google.com/p/run-jetty-run/ (includes Jetty server)
Install xdebug via MacPorts
$ sudo port install xdebug
- Add the following to your
/opt/local/etc/php.ini
and adapt accordingly:
zend_extension_ts=/opt/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_port=9000 xdebug.remote_host=127.0.0.1 xdebug.remote_log=/opt/local/apache2/logs/xdebug_remote.log xdebug.profiler_enable = 0 xdebug.profiler_enable_trigger = 0 ; Type: integer, Default value: 0 ; When this setting is set to 1, you can trigger the generation of profiler files by using the XDEBUG_PROFILE GET/POST parameter. This will then write the profiler data to defined directory. xdebug.profiler_output_dir = /tmp ; xdebug.profiler_output_name ; Type: string, Default value: cachegrind.out.%p ; This setting determines the name of the file that is used to dump traces into. The setting specifies the format with format specifiers, very similar to sprintf() and strftime(). There are several format specifiers that can be used to format the file name.
Updated by Niels Hoffmann about 16 years ago · 2 revisions