Project

General

Profile

DeveloperEnvironmentSetup » History » Version 1

Andreas Müller, 07/09/2008 04:08 PM

1 1 Andreas Müller
This page wants to give help while setting up different development environments.
2
3
There may be other places in the wiki with this kind of information. If you find some please move them here.
4
5
6
7
### Local dataportal development and test environment
8
9
10
1) Install Apache Server 2.2.x
11
12
13
2) Install PHP
14
15
16
2a) Include the path to libmysql.dll (e.g.: C:\Programme\php-5.2.6) into your Path 
17
18
19
2b) Try to run Apache server
20
21
22
23
24
3) Insert the following into the appache conf\httpd.conf file(below the LoadModule part at about Line 120) and adapt them accordingly:
25
26
27
      1. PHP modules
28
29
30
  1. php5
31
32
33
LoadModule php5_module "c:/Programme/php-5.2.6/php5apache2_2.dll"
34
35
36
1. configure the path to php.ini
37
38
39
PHPIniDir "c:/Programme/php-5.2.6/"
40
41
42
43
44
4) Install PDT (PHP) plugin in elcipse from http://www.eclipse.org/pdt/
45
46
47
48
5)Give the according rights to the eclipse project within  appache ..\conf\httpd.conf. E.g.:
49
50
 
51
<Directory "D:/eclipse_workspace/Drupal5">
52
53
54
	AllowOverride All
55
56
57
	Options Indexes
58
59
60
	Order allow,deny
61
62
63
	Allow from all
64
65
66
</Directory>
67
68
69
70
or use apache only localy by adding:
71
72
73
74
DocumentRoot "D:/eclipse_workspace/"
75
76
77
5)Add aliases for different projects to appache ..\conf\httpd.conf. E.g.:
78
79
80
81
    Alias "/drupal_test"     "D:/eclipse_workspace/Drupal5"
82
83
84
    Alias "/expertsdb"       "D:/eclipse_workspace/Drupal5"
85
86
87
    Alias "/drupal_demo"     "D:/eclipse_workspace/Drupal5"
88
89
90
    Alias "/cdm_dataportal"  "D:/eclipse_workspace/Drupal5"
91
92
93
    Alias "/drupal6"         "D:/eclipse_workspace/Drupal6"
94
95
96
97
98
6) install jetty server (zipped version) from http://www.mortbay.org/jetty-6/
99
100
101
7) install jetty launcher plugin in eclipse from http://dbpowder.sourceforge.net/etc/jettylauncher6/updates/
102
103
   !! There is an old version too on sourceforge, don't use it!!
104
105
   
106
107
8) Download php_xdebug-xxx.dll from http://xdebug.org
108
109
110
Move php_xdebug-xxx.dll into your ..\PHP\ext folder
111
112
113
114
9) Add the following to your php.ini and adapt accordingly:
115
116
117
[xdebug]
118
119
120
zend_extension_ts=C:\Program Files\php-5.2.1\ext\php_xdebug-2.0.1-5.2.1.dll
121
122
123
xdebug.remote_enable=1
124
125
126
xdebug.remote_handler=dbgp
127
128
129
xdebug.remote_mode=req
130
131
132
xdebug.remote_port=9000
133
134
135
xdebug.remote_host=127.0.0.1
136
137
138
xdebug.remote_log=C:\Program Files\Apache Software Foundation\Apache2.2\logs\xdebug_remote.log
139
140
141
xdebug.profiler_enable = 0
142
143
144
xdebug.profiler_enable_trigger = 0
145
146
147
;     Type: integer, Default value: 0
148
149
150
;     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.
151
152
153
xdebug.profiler_output_dir = D:\tmp
154
155
156
; xdebug.profiler_output_name
157
158
159
;     Type: string, Default value: cachegrind.out.%p
160
161
162
;     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.