Installation

From tarball

Tarball can be downloaded from this page. Choose the file with the .tar.gz extension.

Uncompress and unarchive the tarball:

tar zxvf ltb-project-white-pages-VERSION.tar.gz

Install files in /usr/local/ (or wherever you choose):

mv ltb-project-white-pages-VERSION /usr/local/white-pages

Adapt ownership of Smarty cache repositories so Apache user can write into them. For example:

chown apache:apache /usr/local/white-pages/cache
chown apache:apache /usr/local/white-pages/templates_c

You need to install these prerequisites:

  • Apache or another web server

  • php (version 5.6 or higher)

  • php-ldap

  • php-gd

  • Smarty (version 3)

Debian / Ubuntu

Configure the repository:

vi /etc/apt/sources.list.d/ltb-project.list
deb [arch=amd64] https://ltb-project.org/debian/stable stable main

Import repository key:

wget -O - https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project | sudo apt-key add -

Then update:

apt update

You are now ready to install:

apt install white-pages

You can also do it manually :

Debian package can be downloaded from this page. Choose the file with the .deb extension. : https://ltb-project.org/download#white-pages

Install it:

dpkg -i white-pages_VERSION_all.deb

You will maybe be asked to install dependencies before:

apt install apache2 php php-ldap php-gd smarty3

CentOS / RedHat

Warning

You may need to install first the package php-Smarty which is not in official repositories.

Configure the yum repository:

vi /etc/yum.repos.d/ltb-project.repo
[ltb-project-noarch]
name=LTB project packages (noarch)
baseurl=https://ltb-project.org/rpm/$releasever/noarch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project

Then update:

yum update

Import repository key:

rpm --import https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project

You are now ready to install:

yum install white-pages

You can also do it manually :

RPM can be downloaded from this page. Choose the file with the .rpm extension: https://ltb-project.org/download#white-pages

You should import LTB GPG key first:

rpm --import http://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project

Install the package:

yum localinstall white-pages-VERSION.noarch.rpm

Dependencies should be installed automatically by yum.

Upgrade Notes

If you upgrade from an older version, read the following instructions:

LDAP user regex

The 0.3 release adds a new parameter: $ldap_user_regex.

If the default value does not fit your LDAP directory configuration, you must unset the default value, or adapt it. To unset it, put in your config.inc.local.php:

`unset($ldap_user_regex);`

See also the ldap parameters page.