2
edits
Changes
no edit summary
= Katherine 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.confapache22_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 .phpAddType 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 = *1. What did you understand? How to install mod_python and mod_perl on apache. *2. What did you find difficult to do? The integration was kind of hard, because it involves two programs talking to each other, and some times depending of the versions we can get lot of incompatibilities problems. *3. Write the steps to install mod_python and mod_perl on Apache. *3.1 Installation - Mod_perl #cd /usr/ports/www/mod_perl2/ #make #make install Integrating the module with apache22 Edit the file: #vi /usr/local/etc/apache22/httpd.conf And add the line below, after the modules section in the Apache configuration file. LoadModule perl_module libexec/apache22/mod_perl.so Verify the installation process To verify if the module was installed properly, type: #/usr/local/sbin/httpd -M And look for the line perl_module (shared) *3.2 Installing mod_python Download the mod_python from the http://modpython.org website. The current version while I write this document is 3.3.1. http://apache.mirror.rafal.ca/httpd/modpython/mod_python-3.3.1.tgz Install the module #tar -zxvf mod_python-3.3.1.tgz #cd mod_python-3.3.1 #./configure –with-apxs=/usr/local/sbin/apxs --enable-threads #make #make install Set up apache for mod_python integration #vi /usr/local/etc/apache/httpd.conf Add the line following line in the apache configuration file: LoadModule python_module libexec/apache22/mod_python.so Verify the installation process To verify if the module was installed properly, type: #/usr/local/sbin/httpd -M And look for the line: python_module (shared) = Mohak Vyas = I followed the instructions in the book to install php5 and did not had any problems.Following are the steps to install mod_python and mod_perl Installing ''mod_python'':# cd /usr/ports/www/mod_python3# make install# make clean Once the installation process is completed, it is time to integrate mod_python with Apache. So open the Apache config file and look for the part where you see all 'LoadModule' lines:# vim /usr/local/etc/apache2/httpd.conf and add this line: LoadModule python_module libexec/apache2/mod_python.so Installing ''mod_perl'':# cd /usr/ports/www/mod_perl2# make# make install# make clean Once the installation process is completed, it is time to integrate mod_perl with Apache. So open the Apache config file and look for the part where you see all 'LoadModule' lines:# vim /usr/local/etc/apache2/httpd.conf and add this line: LoadModule perl_module libexec/apache2/mod_perl.so =Varinder Singh=
'''Installing php5'''
'''Alternative'''