Current Document and Section   Other Documents  
  - Documentation
    - Howtos
  User Guide
DNS and Domains
Gateway Services Guide
Release Notes
 
 

Howtos - Installing PHP 5 and MySQL 5 on ClarkConnect 4.x

Contents

[edit] Overview

Most of the source code for ClarkConnect 4.x comes from the Red Hat Enterprise Linux 4 product. Since stability (as opposed to leading edge features) is a key policy for the Enterprise Linux product, it ships with PHP 4.3.x and MySQL 4.x. By default, ClarkConnect also ships with these PHP and MySQL versions.

This howto provides instructions on how to upgrade the PHP to 5.1.x and MySQL to 5.0.x.

[edit] Install

First, you need to add the optional software repository to your system. From the command line, run:

echo "rpm [pcn] ftp://rhel-4:hiptop@rh.apt.clarkconnect.com System extras" > \
 /etc/apt/sources.list.d/extras.list
apt-get update


If you already have PHP/MySQL installed, then run:

apt-get dist-upgrade


If you do not have PHP/MySQL installed, run:

apt-get install cc-php cc-mysql


[edit] Install Modules

Depending on your application, additional PHP modules may be required. For example, most webmail applications require PHP's IMAP module. Common PHP modules include:

  • gd - graphics module
  • imap - mail module
  • ldap - LDAP module
  • mysql - MySQL module
  • soap - SOAP protocol module
  • xml - XML parsing module

If your application requires a module, install it using the following as a guide:

apt-get update
apt-get install php-imap


You should restart the web server after installing a module:

/sbin/service httpd restart

[edit] Links

Retrieved from "http://www.clarkconnect.com/docs/Howtos_-_Installing_PHP_5_and_MySQL_5_on_ClarkConnect_4.x"

This page has been accessed 3,169 times. This page was last modified 20:10, 31 December 2007.