Personal tools
You are here: Home Documentation Software Installing PHP
Document Actions

Installing PHP

by dredd last modified 2005-10-18 01:51 AM

Since we installed Apache from source, rather than from portage, we must now install PHP from source. Installing PHP from source will take a bit of time.

Before we begin, you will need to have already installed Apache, MySQL, GD, Libjpeg, Zlib, LibPNG, and OpenSSL. If you have been folowing along with this site, you should have installed or emerged these aready.

After downloading PHP from the web, you will need to run the following commands:

  # gunzip php-<version>.tar.gz
  # tar -xvf php-<version>.tar
  # cd php-<version>
  # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-openssl --with-gd --with-jpeg --with-png --with-mysql --enable-sockets
  # make
  # make install

The rest of the install follows the instructions exactly as they appear in the PHP Install document.

If you plan to install BASE, you will want to install the folowing pear packages by using the following commands:

  # pear install Image_Color
  # pear install Log
  # pear install Numbers_Roman

  For the next three packages, you will need to check the PHP Pear websitehttp (http://pear.php.net) for the most up to date version.

  # pear install http://pear.php.net/get/Numbers_Words-<version>.tgz
  # pear install http://pear.php.net/get/Image_Canvas-<version>.tgz
  # pear install http://pear.php.net/get/Image_Graph-<version>.tgz

« November 2009 »
Su Mo Tu We Th Fr Sa
1234567
891011121314
15161718192021
22232425262728
2930
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: