Skip to content
Snippets Groups Projects
INSTALL.fr.md 3.51 KiB

Sauf indiqué, cette procédure prends en compte par défaut les distributions GNU/Linux Ubuntu et Debian

Paquets nécessaires:

Ubuntu Trusty

apt-get install python-software-properties php5 php5-gd php5-imagick php5-xdebug php-pear php5-mysql php5-xhprof graphviz apache2 mysql-server libapache2-mod-php5 git php5-mcrypt php5-curl yaz

Debian Wheezy-Jessie

apt-get install php5 php5-gd php5-imagick php5-xdebug php-pear php5-mysql graphviz apache2 mysql-server libapache2-mod-php5 git php5-mcrypt php5-curl yaz

ArchLinux

yaourt -S php php-gd php-imagick xdebug php-pear apache mysql php-apache php-xhprof graphviz git

CentOS

rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
yum install php54w php54w-gd php54w-pear php54w-mysql php54w-pecl-xdebug php54w-xml php54w-soap php54w-mbstring

You need to build Imagick extension from scratch

Installer PHPUnit (en compte root / sudo):

  cd /usr/local/bin
  wget https://phar.phpunit.de/phpunit.phar
  mv phpunit.phar phpunit

Récupération des sources

cd /var/www
git clone http://git.afi-sa.fr/afi/opacce.git opacce

Lancer le script update.sh

cd opacce
./update.sh

Configuration Apache / PHP:

Activez les modules :

Debian

a2enmod headers rewrite php5

ArchLinux:

Modifiez /etc/httpd/conf/http.conf et ajoutez la ligne:

LoadModule php5_module modules/libphp5.so

Désactivez le module negotiation qui pose problème avec Zend Framework sur les urls index/index:

a2dismod negotiation

Configurer PHP

Dans /etc/php5/apache2/php.ini (ArchLinux: /etc/php/php.ini), configurer les variables suivantes:

post_max_size = 10M
upload_max_filesize = 10M
error_reporting  =  E_ALL & ~E_NOTICE & ~E_DEPRECATED

Activez les extensions suivantes si elles ne le sont pas déjà (elles devraient l'être) :