Changes

Jump to: navigation, search

SRA840 Lab6

1,664 bytes added, 14:52, 12 April 2009
no edit summary
= Gregory Masseau =
 
*1. What did you understand?
 
This lab was pretty straightforwards. It basically just involved installing packages and modifying conf files, both tasks with which I'm quite experienced and have a good understanding.
 
*2. What did you find difficult?
 
Nothing was really 'difficult', per se. Having to add a kernel module ('accf_http') to get Apache working was somewhat unexpected, but a solution was quickly found using a Google search.
 
*3. Write the steps to install mod_python and mod_perl on Apache.
 
1. Install the required software using the following command: 'cd /usr/ports/www/apache22 && make install distclean && cd /usr/ports/lang/php5 && make install distclean && cd /usr/ports/www/mod_perl2 && make install distclean'. When promped to provide options for PHP, select the box to build the Apache module.
 
2. Add your hostname to the 127.0.0.1 line in /ets/hosts.
 
3. Add these lines to /etc/rc.conf:
 
hostname="lab.bombshelter13.dyndns.org" to rc.conf
apache22_enable="YES"
 
4. Configure apache. Near the start of /usr/local/etc/apache22/httpd.conf, add: 'Servername "<your hostname here>"'. At the end of the 'LoadModule' section, add the line: 'LoadModule perl_module libexec/apache22/mod_perl.so'. Find the 'DirectoryIndex' line, and add 'index.php' to the end of it. Near the bottom of the conf file, add these lines:
 
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
5. Add the line 'accf_http_load="YES"' to /boot/loader.conf.
 
6. Copy /usr/local/etc/php.ini-recommended to /usr/local/etc/php.ini.
 
7. Reboot, and you should have a working Apache installation with PHP and mod_perl.
 
 
= Milton Paiva Neto =

Navigation menu