Skip to end of metadata
Go to start of metadata

TABLE OF CONTENTS

MySQL and Apache2

You will need MySQL version 4.1 and Apache2, together with their development file libraries. These are very popular tools, and you are strongly encouraged to refer to collective wisdom available on the Internet, if you encounter any problems during installation. Below is a quick way to install them on Debian and Ubuntu.

(warning) Most of the commands from now on should be ran either as the root user or through sudo.

(warning) Mysql 1.4 installation will remove your previous mysql installation if you have one. It shouldn't erase data, but due to the imminent influence of Murphy's laws on people's live,s you are encouraged to backup your important databases. You have been warned. (wink)

(warning) If this is your first MySQL installation, you should set up the MySQL's root password:

PHP

Supported PHP Versions

CiviCRM has been developed for PHP5 and backported and tested on the generally available release of PHP4 (4.3.11). Running with PHP4 requires a special distribution - more information can be found in Linux installation - Drupal and CiviCRM.

Zend Optimizer Incompatibility

CiviCRM will not run with Zend Optimizer release 2.5.7. The current release of Optimizer is 2.5.10 - and we are testing compatibility with this version now. We will update this info as soon as we have the results.

To verify if you have Zend Optimizer running, and which version:

With Shell Access
No Shell Access

In either case, look for Zend Optimizer version in the Copyright information near the top of the output:

Example PHP Info Display

If you see version 2.5.7 as in the above output, you will need to either disable or upgrade the Optimizer.

PHP5 Install

This is slightly more tricky - no PHP5 debian packages are available for Debian sarge (and unstable as of May 2005), nor Ubuntu Hoary, so you need to compile them from source. Again, the search engine comes in handy as installing PHP5 is a well known and commonly described problem. One of installation guides I found useful is: Installing PHP5 From Source on Debian testing. Quick reference for the installation is provided below.

First you need to download PHP5. Version that was used to test this installation reference was 5.0.4. I placed php-5.0.4.tar.bz2 file in /root/tmp/ directory.

Before starting compilation, I needed to install a few tools and libraries. You will probably need to install much more - watch configure output carefully for tips.

Than the actual fun begins:

If the make install output contained the libtool: install: warning: remember to run `libtool --finish /root/php5/php-5.0.4/libs' line, then you should additionally run

Got it? Take a look at /opt/php5/ to enjoy your freshly made installation from source.

Tweaking Apache2 configuration

First thing to do is to correct what php5 install script has done incorrectly. It doesn't mean it won't work as - but it should be fixed to comply with standards for how things work in Apache2. Edit /etc/apache2/httpd.conf and remove the last line listed below:

/etc/apache2/httpd.conf

Now go to /etc/apache2/mods_available/ directory and create two files:

php5.load
php5.conf

(warning) Make sure the path to php apache module is correct, otherwise it won't work!

Now you just need to enable the added module:

(warning) You might also need to disable your php4 module, if it was installed previously, by doing a2dismod php4.

Labels:

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.