DeveloperEnvironmentSetup » History » Revision 9
« Previous |
Revision 9/24
(diff)
| Next »
Andreas Kohlbecker, 04/15/2010 10:24 AM
This page wants to give help while setting up different development environments.
There may be other places in the wiki with this kind of information. If you find some please move them here.
If you are looking for instructions on how to set up a development and test environment for OS X, see wiki:DeveloperEnvironmentSetupOsX
- Table of contents
- Eclipse
Eclipse¶
Local dataportal development and test environment¶
1) Install Apache Server 2.2.x
2) Install PHP
2a) Include the path to libmysql.dll (e.g.: C:\Programme\php-5.2.6) into your Path
2b) Try to run Apache server
3) Insert the following into the appache conf\httpd.conf file(below the LoadModule part at about Line 120) and adapt them accordingly:
1. PHP modules
- php5
LoadModule php5_module "c:/Programme/php-5.2.6/php5apache2_2.dll"
- configure the path to php.ini
PHPIniDir "c:/Programme/php-5.2.6/"
4) Install PDT (PHP) plugin in elcipse from http://www.eclipse.org/pdt/ (I made it with the update http://download.eclipse.org/tools/pdt/updates/2.0/ because the version 2.2 does not work at 18.09.09)
5)Give the according rights to the eclipse project within appache ..\conf\httpd.conf. E.g.:
AllowOverride All Options Indexes Order allow,deny Allow from all
or use apache only localy by adding:
DocumentRoot "D:/eclipse_workspace/"
6)Add aliases for different projects to appache ..\conf\httpd.conf. E.g.:
Alias "/drupal_test" "D:/eclipse_workspace/Drupal5" Alias "/expertsdb" "D:/eclipse_workspace/Drupal5" Alias "/drupal_demo" "D:/eclipse_workspace/Drupal5" Alias "/cdm_dataportal" "D:/eclipse_workspace/Drupal5" Alias "/drupal6" "D:/eclipse_workspace/Drupal6"
7) Install run-jetty-run eclipse plugin from http://code.google.com/p/run-jetty-run/ ( includes Jetty server; compatible with eclipse 3.4.1 )
8) Download php_xdebug-xxx.dll from http://xdebug.org
Move php_xdebug-xxx.dll into your ..\PHP\ext folder
9) Add the following to your php.ini and adapt accordingly:
[xdebug]
zend_extension_ts=C:\Program Files\php-5.2.1\ext\php_xdebug-2.0.1-5.2.1.dll
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=C:\Program Files\Apache Software Foundation\Apache2.2\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 = D:\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.
Problems and Solutions¶
xdebug does not work within Eclipse/PDT. Starting the debug session is stuck at 57% with the message "waiting for XDebug session"¶
This as been observed under WinXP, where the Checkpoint VPN-1 SecureClient, is also using port 9000. Therefore Eclipse/PDT could never open port 9000 for communication with the xdebug server. Change the port of xdebug in your php.ini and in the eclipse settings
Updated by Andreas Kohlbecker about 14 years ago · 9 revisions