Ticket #49: marcin_7_8.3.diff
| File marcin_7_8.3.diff, 3.7 kB (added by gunnar, 3 years ago) |
|---|
-
doc/regression.texi
old new 258 258 259 259 @subsection Setting up the HTML regression Views 260 260 261 This documentation assumes an apache configured as per Debian's Apache 1.3 262 distribution, but it should be fairly close to the config for other 263 distributions. 261 There are many ways configuring Apache to permit CGI scripts, all of them are 262 featured in Apache documentation, which can be found at 263 @url{http://httpd.apache.org/docs/2.0/howto/cgi.html} 264 265 Below you will find one example. 266 267 This documentation assumes an Apache 2.0 included in Fedora Core distribution, 268 but it should be fairly close to the config for other distributions. 264 269 265 270 First, you will need to configure Apache to run CGI scripts in the directory 266 you wish to serve the html views from. To do this, add the following to 267 @file{/etc/apache/httpd.conf} (or to a user-specific conf file if applicable): 271 you wish to serve the html views from. In @file{/etc/httpd/conf/httpd.conf} 272 there should be a line: 273 274 @code{DocumentRoot "/var/www/html"} 275 276 Search for a line @code{<Directory "/path/to/directory">}, where 277 @code{/path/to/directory} is the same as provided in @code{DocumentRoot}, 278 then add @code{ExecCGI} to list of @code{Options}. 279 The whole section should look like: 268 280 269 281 @example 270 <Directory /path/to/script/> 271 Options +ExecCGI 282 <Directory "/var/www/html"> 283 ... 284 Options ... ExecCGI 285 ... 272 286 </Directory> 273 287 @end example 274 288 275 289 This allows CGI scripts to be executed in the directory used by regress.plx. 276 Next, you need to tell Apache that @file{.plx} is a CGI script ending. Your 277 @file{httpd.conf} file should contain a section @code{<IfModule mod_mime.c>}. 278 Within that section, there may or may not be a line: 290 Next, you need to tell Apache that @file{.plx} is a CGI script ending. Your 291 @file{httpd.conf} file should contain a line: 279 292 280 @code{AddHandler cgi-script ... .}293 @code{AddHandler cgi-script ...} 281 294 282 If there isn't already, add it; add @file{.plx} to the list of extensions. 295 If there isn't already, add it; add @file{.plx} to the list of extensions, 296 so line should look like: 283 297 284 You will also need to make sure you have the necessary modules loaded to run 285 CGI scripts; mod_cgi and mod_mime should be sufficient. Your @file{httpd.conf} 286 should have the relevant @code{LoadModule} lines; uncomment them if neccessary. 298 @code{AddHandler cgi-script ... .plx} 287 299 288 Next, you need to put a copy of @file{regress.plx} in the directory that you 289 plan to serve the html views from. 300 You will also need to make sure you have the necessary modules loaded to run 301 CGI scripts; mod_cgi and mod_mime should be sufficient. Your @file{httpd.conf} 302 should have the relevant @code{LoadModule cgi_module modules/mod_cgi.so} and 303 @code{LoadModule mime_module modules/mod_mime.so} lines; uncomment them if 304 necessary. 305 306 Next, you need to put a copy of @file{regress.plx} in the @code{DocumentRoot} 307 directory @code{/var/www/html} or it subdirectories where you plan to serve the 308 html views from. 290 309 291 You will also need to install the Perl module GD , available from CPAN or via292 @code{apt-get install libgd-perl} on Debian.310 You will also need to install the Perl module GD 311 (@url{http://search.cpan.org/dist/GD/}), available from CPAN. 293 312 294 313 Finally, run @file{regression/regress.pl} to create the xml data used to 295 generate the html views; then, copy the @file{html/} directory to the same 296 directory as @file{regress.plx} resides in. 314 generate the html views (to do all regression tests run 315 @file{regression/regress.pl -a 1}); then, copy the @file{html/} directory to 316 the same directory as @file{regress.plx} resides in. 297 317 298 318 At this point, you should have a working copy of the html regression views. 299
