Code University

      "Where tuition is free!"

News | Images | Contact     
  • Home
  • Coding KC
  • Scripts
  • Software
  • Templates
  • Tutorials
  • About
 

Tutorials

Posted on Jun 28, 2010 at 20:45

Apache 2 - Installations


Page Contents
[X] CLOSE

mod_perl

  • Dynamic installation
  • Static Installation

PHP

  • Dynamic installation
Toggle Page Contents
mod_perl - Dynamic installation
Install Apache 2 from source > cd ~/src/httpd-2.x > sudo ./configure --prefix=/usr/local/apache2 > sudo make > sudo make test > sudo make install Install mod_perl from source > cd ~/src/mod_perl-2.x.x > sudo perl Makefile.PL --with-apache2-apxs=/usr/local/apache2/bin/apxs > sudo make > sudo make test > sudo make install httpd.conf: LoadModule perl_module modules/mod_perl.so
Installs Apache 2 and then installs mod_perl dynamically linked.

mod_perl - Static installation
Configure Apache 2 from source > cd ~/src/httpd-2.x > sudo ./configure --prefix=/usr/local/apache2 Compile mod_perl into the Apache 2 source > cd ~/src/mod_perl-2.x.x > sudo perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX="../httpd-2.0.50" MP_AP_CONFIGURE="--with-mpm=prefork" Install Apache 2 > cd ~/src/httpd-2.x > make; make install
Installs Apache 2 and then compiles mod_perl statically into the installation.

PHP - dynamic install
Install PHP from source > cd ~/src/php-5.2.1 > sudo ./configure --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/apache2/php --with-config-file-path=/usr/local/apache2/php > sudo make; sudo make install > sudo cp php.ini-recommended /usr/local/apache2/php/php.ini add /usr/local/apache2/php/lib/php to the php.ini include_path httpd.conf: LoadModule php5_module modules/libphp5.so AddHandler php5-script php AddType text/html php AddType application/x-httpd-php-source phps
Installs PHP, dynamically linked, into Apache 2.


Tagged:  Linux, UNIX
Tutorials
  • Introduction
  • Documentation
    Creating man(ual) pages
  • Dual Boot Systems
    Fedora/Windows XP
    Red Hat/FreeBSD
  • Files
    Dynamic PDF generation
  • Linux
    NTP server setup
    Root password reset (grub)
  • Networking
    ndiswrapper setup (wireless)
  • Version Control
    CVS - repo setup
  • Web Hosting
    Apache 2 - Installations
    Apache 2 - Configurations
    Apache 2 - Virtual Hosts
Resources
  • CodeIgniter - MVC Framework
  • HowtoForge - Linux Tutorials
  • Linux Today - Linux News
  • Lxer - Linux News Feed
  • Monsterb - Linux, Podcasting
  • MySQL - Databasing
  • Perl - Programming
  • PHP - Programming
  • Systhread - Admin & Programming
  • W3Schools - Web Tutorials
About

Code University contains a wealth of technical information aimed at the computer sciences.


 
Home | Coding KC | Scripts | Software | Templates | Tutorials | About
Top ^
 
© 2007-2012 Code University| Disclaimer
Website template by Arcsin