Views
Setting up Ubuntu for MySource Matrix
From Shadowfax
- Set the IP Address in /etc/network/interfaces
- To check the IP address type ifconfig | more
- php.ini file is in /etc/php5/apache2
- Apache log files are in /var/log/apache2
- Web root directory is /var/www
- Official Squiz Instructions
- Useful Blog post which gives install steps (wish I'd had this first time around!
Prior to install
Before running apt-get you need to clear the http_proxy environment variable. To do this enter the following commands
http_proxy= export http_proxy
If apt-get still does not work then make sure that the file /etc/apt/apt.conf has the line
Acquire::http::Proxy "http://domain-name%5cuser-name@proxy-name:81";
Install PDO for PostgresSql
This was a major runaround. PDO is installed on Ubuntu but for MySQL only. I did so much here I'm not entirely sure which steps were necessary and which were counterproductive. As a minimum you need to do the following.
Warning When I did all this first time around I had a number of problems caused by the fact that PECL sometimes refuses to install the latest version of a product if there is an earlier version installed. Therefore it is worth doing sudo pecl uninstall pdo and sudo pecl uninstall pdo_pgsql after installing PEAR and before installing PDO and PDO_pgsql
- Install make (sudo apt-get install make)
- Install PHP drivers for Postgres (sudo apt-get install php5-pgsql)
- Install Pear (sudo apt-get install php-pear)
- Install the following Pear Modules (sudo pear install modulename). You can list installed packages by typing "pear list". Note that the module names are all lower case (eg sudo pear install db)
- DB
- Archive_Tar
- Mail_Mime
- XML_HTMLSax
- XML_Parser
- Install PostgresSQL development tools (sudo apt-get install libpq-dev)
- Install pdo (sudo pecl install pdo) (needs Pear to work)
- Install pdo_pgsql (sudo pecl install pdo_pgsql)
You may also need to
- Install php5-dev (sudo apt-get install php-dev)
If Apache keeps falling over (see the error.log file in the Apache Log directory) you may also need to comment out the line "extension=pdo_mysql" in /etc/php5/apache2/conf.d/pdo_mysql.ini
To get a list of php modules installed you can call the Debian Package manager as follows: dpkg --get-selections | grep php
To get a list of pear modules installed the somewhat simpler: pear list
Leave your comment