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