Changes

Jump to: navigation, search

SRA840 Lab6

1,226 bytes added, 18:22, 11 April 2009
no edit summary
PHP5 and Apache are fine. Great!.
 
= Nestor the Best =
What did you understand?
i understand install packages/port one by one instead of install every thing at the same time in sysinstall. And sysinstall dosen't take care dependency very well.
 
What did you find difficult to do?
'make' crashes a lot during compiling. And I had trouble with dependency, BIG TIME!! I had to remove, then install again, and it ends up didn't work. So I use my backup hard disk image to do it step by step. It was fun!
 
Write the steps to install mod_python and mod_perl on Apache.
1. Installing Perl module, mod_perl
 cd /usr/ports/www/mod_perl2/
 make
 make install
 
2. Installing Python module, mod_python
 cd /usr/ports/www/mod_python3/
 make
 make install
 
3. Checking Installed Modules
 httpd –M
 
4. Assuming the apache was previous configured accurately, now we should configure modules in httpd.conf
 vi /usr/local/etc/apache22/httpd.conf
 Search the word “LoadModule” then change or add the following lines
<pre>
LoadModule perl_module libexec/apache22/mod_perl.so
LoadModule php5_module libexec/apache22/libphp5.so
LoadModule python_module libexec/apache22/mod_python.so
 
AddHandler php5-script php
AddType text/html php
</pre>

Navigation menu