Ticket #49: marcin_7_8.3.diff

File marcin_7_8.3.diff, 3.7 kB (added by gunnar, 3 years ago)

Updated instructions for setting up regression views.

  • doc/regression.texi

    old new  
    258258 
    259259@subsection Setting up the HTML regression Views 
    260260 
    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. 
     261There are many ways configuring Apache to permit CGI scripts, all of them are 
     262featured in Apache documentation, which can be found at 
     263@url{http://httpd.apache.org/docs/2.0/howto/cgi.html} 
     264 
     265Below you will find one example.  
     266 
     267This documentation assumes an Apache 2.0 included in Fedora Core distribution, 
     268but it should be fairly close to the config for other distributions. 
    264269 
    265270First, 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): 
     271you wish to serve the html views from. In @file{/etc/httpd/conf/httpd.conf} 
     272there should be a line: 
     273 
     274@code{DocumentRoot "/var/www/html"} 
     275 
     276Search for a line @code{<Directory "/path/to/directory">}, where  
     277@code{/path/to/directory} is the same as provided in @code{DocumentRoot}, 
     278then add @code{ExecCGI} to list of @code{Options}. 
     279The whole section should look like: 
    268280 
    269281@example 
    270 <Directory /path/to/script/> 
    271     Options +ExecCGI 
     282<Directory "/var/www/html"> 
     283... 
     284    Options ... ExecCGI 
     285... 
    272286</Directory> 
    273287@end example 
    274288 
    275289This 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: 
     290Next, you need to tell Apache that @file{.plx} is a CGI script ending. Your 
     291@file{httpd.conf} file should contain a line: 
    279292 
    280 @code{AddHandler cgi-script ....} 
     293@code{AddHandler cgi-script ...} 
    281294 
    282 If there isn't already, add it; add @file{.plx} to the list of extensions. 
     295If there isn't already, add it; add @file{.plx} to the list of extensions, 
     296so line should look like: 
    283297 
    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} 
    287299 
    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. 
     300You will also need to make sure you have the necessary modules loaded to run 
     301CGI scripts; mod_cgi and mod_mime should be sufficient. Your @file{httpd.conf} 
     302should 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 
     304necessary. 
     305 
     306Next, you need to put a copy of @file{regress.plx} in the @code{DocumentRoot} 
     307directory @code{/var/www/html} or it subdirectories where you plan to serve the 
     308html views from. 
    290309 
    291 You will also need to install the Perl module GD, available from CPAN or via 
    292 @code{apt-get install libgd-perl} on Debian. 
     310You will also need to install the Perl module GD 
     311(@url{http://search.cpan.org/dist/GD/}), available from CPAN. 
    293312 
    294313Finally, 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. 
     314generate the html views (to do all regression tests run 
     315@file{regression/regress.pl -a 1}); then, copy the @file{html/} directory to 
     316the same directory as @file{regress.plx} resides in. 
    297317 
    298318At this point, you should have a working copy of the html regression views. 
    299