Upgrade php from 5.4.* to 5.5.*

This commit is contained in:
Benoît Burnichon
2015-03-17 10:09:07 +01:00
parent e32816a8e0
commit 7ad443a88b
2027 changed files with 72 additions and 88 deletions

View File

@@ -1,10 +1,10 @@
--- ---
vagrantfile-local: vagrantfile-local:
name: phraseanet-php54-nginx name: phraseanet-php55-nginx
vm: vm:
box: puphpet/debian75-x64 box: puphpet/debian75-x64
box_url: puphpet/debian75-x64 box_url: puphpet/debian75-x64
hostname: phraseanet-php54-nginx hostname: phraseanet-php55-nginx
memory: '4096' memory: '4096'
cpus: '2' cpus: '2'
chosen_provider: virtualbox chosen_provider: virtualbox
@@ -26,12 +26,12 @@ vagrantfile-local:
cpus: 1 cpus: 1
provision: provision:
puppet: puppet:
manifests_path: resources/vagrant/vms/phraseanet-php54-nginx/puphpet/puppet manifests_path: resources/vagrant/vms/phraseanet-php55-nginx/puphpet/puppet
manifest_file: manifest.pp manifest_file: manifest.pp
module_path: resources/vagrant/vms/phraseanet-php54-nginx/puphpet/puppet/modules module_path: resources/vagrant/vms/phraseanet-php55-nginx/puphpet/puppet/modules
options: options:
- '--verbose' - '--verbose'
- '--hiera_config /vagrant/resources/vagrant/vms/phraseanet-php54-nginx/puphpet/puppet/hiera.yaml' - '--hiera_config /vagrant/resources/vagrant/vms/phraseanet-php55-nginx/puphpet/puppet/hiera.yaml'
- '--parser future' - '--parser future'
synced_folder: synced_folder:
KaPfJ4CzfgFk: KaPfJ4CzfgFk:
@@ -57,68 +57,67 @@ vagrantfile-local:
host: detect host: detect
server: server:
packages: packages:
- imagemagick
- libevent-dev
- ufraw
- ghostscript
- xpdf
- unoconv
- gpac
- swftools
- openjdk-7-jre
- openjdk-7-jdk
- locales
- libmariadbclient-dev
- pkg-config
- libzmq-dev
- libxml2-dev
- libexpat1-dev
- libzmq3-dev
- re2c
- scons
- inkscape
- python-setuptools
- libmemcache0
- libimage-exiftool-perl
- git
- libfreetype6-dev
- libgif-dev
- libjpeg62-dev
- cachefilesd
- autoconf - autoconf
- automake - automake
- build-essential - build-essential
- cachefilesd
- ghostscript
- git
- gpac
- htop
- imagemagick
- inkscape
- libass-dev - libass-dev
- libdc1394-22-dev
- libevent-dev
- libexpat1-dev
- libfaad-dev
- libfreetype6-dev - libfreetype6-dev
- libgif-dev
- libgpac-dev - libgpac-dev
- libgsm1-dev
- libimage-exiftool-perl
- libjpeg62-dev
- libmariadbclient-dev
- libmemcache0
- libmp3lame-dev
- libopencore-amrnb-dev
- libopencore-amrwb-dev
- libopus-dev
- libsdl1.2-dev - libsdl1.2-dev
- libtheora-dev - libtheora-dev
- libtool - libtool
- libva-dev - libva-dev
- libvdpau-dev - libvdpau-dev
- libvorbis-dev - libvorbis-dev
- libx11-dev
- libxext-dev
- libx264-dev
- libxfixes-dev
- libgsm1-dev
- pkg-config
- texi2html
- zlib1g-dev
- yasm
- unzip
- libopus-dev
- libvpx-dev
- libvorbis-dev - libvorbis-dev
- libmp3lame-dev - libvpx-dev
- libx11-dev
- libx264-dev
- libxext-dev
- libxfixes-dev
- libxml2-dev
- libxvidcore-dev - libxvidcore-dev
- libfaad-dev - libzmq-dev
- libopencore-amrnb-dev - libzmq3-dev
- libopencore-amrwb-dev - locales
- libxvidcore-dev
- libdc1394-22-dev
- memcached - memcached
- openjdk-7-jdk
- openjdk-7-jre
- pkg-config
- python-setuptools
- re2c
- scons
- swftools
- texi2html
- ufraw
- unoconv
- unzip
- vim
- xpdf
- yasm
- zip - zip
- zlib1g-dev
dot_files: dot_files:
- -
bash_aliases: null bash_aliases: null
@@ -183,9 +182,9 @@ nginx:
proxy_buffers: '4 256k' proxy_buffers: '4 256k'
vhosts: vhosts:
issDOx17O4bn: issDOx17O4bn:
server_name: phraseanet-php54-nginx server_name: phraseanet-php55-nginx
server_aliases: server_aliases:
- nginx.phraseanet.php54 - nginx.phraseanet.php55
www_root: /var/www/phraseanet/www www_root: /var/www/phraseanet/www
listen_port: '80' listen_port: '80'
index_files: index_files:
@@ -200,30 +199,30 @@ nginx:
ssl_key: '' ssl_key: ''
php: php:
install: '1' install: '1'
version: '54' version: '55'
composer: '1' composer: '1'
composer_home: '' composer_home: ''
modules: modules:
php: php:
- cli - cli
- curl
- enchant
- gd
- imagick
- intl - intl
- mbstring
- mcrypt - mcrypt
- memcache - memcache
- memcached - memcached
- curl
- gd
- imagick
- enchant
- mysql - mysql
- mbstring
- sqlite
- redis - redis
- sqlite
pear: { } pear: { }
pecl: pecl:
- zip
- json
- amqp - amqp
- APC - json
- zip
- zmq-beta
ini: ini:
display_errors: On display_errors: On
error_reporting: '-1' error_reporting: '-1'

View File

@@ -83,8 +83,9 @@ phpize
./configure ./configure
make make
sudo make install sudo make install
sudo sh -c 'echo "extension=twig.so" > /etc/php5/cli/conf.d/twig.ini' sudo sh -c 'echo "extension=twig.so" > /etc/php5/mods-available/twig.ini'
sudo sh -c 'echo "extension=twig.so" > /etc/php5/fpm/conf.d/twig.ini' sudo sh -c 'ln -s ../../mods-available/twig.ini /etc/php5/cli/conf.d/20-twig.ini'
sudo sh -c 'ln -s ../../mods-available/twig.ini /etc/php5/fpm/conf.d/20-twig.ini'
# swftools # swftools
cd /tmp cd /tmp
@@ -95,22 +96,6 @@ cd swftools-0.9.2
make make
sudo make install sudo make install
# zmq php extension
yes | sudo pecl install zmq-beta
if [ $? -eq 0 ]; then
sudo sh -c 'echo "extension=zmq.so" > /etc/php5/cli/conf.d/zmq.ini'
sudo sh -c 'echo "extension=zmq.so" > /etc/php5/fpm/conf.d/zmq.ini'
fi
# libevent php extension
sudo apt-get autoremove --yes --purge libevent-dev
sudo apt-get install --yes libevent-dev
yes | sudo pecl install libevent-beta
if [ $? -eq 0 ]; then
sudo sh -c 'echo ";extension=libevent.so" > /etc/php5/cli/conf.d/libevent.ini'
sudo sh -c 'echo ";extension=libevent.so" > /etc/php5/fpm/conf.d/libevent.ini'
fi
# cache file sd # cache file sd
sudo sh -c 'echo "RUN=yes" > /etc/default/cachefilesd' sudo sh -c 'echo "RUN=yes" > /etc/default/cachefilesd'

View File

@@ -1,7 +1,7 @@
--- ---
:backends: yaml :backends: yaml
:yaml: :yaml:
:datadir: '/vagrant/resources/vagrant/vms/phraseanet-php54-nginx/puphpet' :datadir: '/vagrant/resources/vagrant/vms/phraseanet-php55-nginx/puphpet'
:hierarchy: :hierarchy:
- config - config
:logger: console :logger: console

View File

@@ -40,10 +40,10 @@ file { "/home/${::ssh_username}":
# copy dot files to ssh user's home directory # copy dot files to ssh user's home directory
exec { 'dotfiles': exec { 'dotfiles':
cwd => "/home/${::ssh_username}", cwd => "/home/${::ssh_username}",
command => "cp -r /vagrant/resources/vagrant/vms/phraseanet-php54-nginx/puphpet/files/dot/.[a-zA-Z0-9]* /home/${::ssh_username}/ \ command => "cp -r /vagrant/resources/vagrant/vms/phraseanet-php55-nginx/puphpet/files/dot/.[a-zA-Z0-9]* /home/${::ssh_username}/ \
&& chown -R ${::ssh_username} /home/${::ssh_username}/.[a-zA-Z0-9]* \ && chown -R ${::ssh_username} /home/${::ssh_username}/.[a-zA-Z0-9]* \
&& cp -r /vagrant/resources/vagrant/vms/phraseanet-php54-nginx/puphpet/files/dot/.[a-zA-Z0-9]* /root/", && cp -r /vagrant/resources/vagrant/vms/phraseanet-php55-nginx/puphpet/files/dot/.[a-zA-Z0-9]* /root/",
onlyif => 'test -d /vagrant/resources/vagrant/vms/phraseanet-php54-nginx/puphpet/files/dot', onlyif => 'test -d /vagrant/resources/vagrant/vms/phraseanet-php55-nginx/puphpet/files/dot',
returns => [0, 1], returns => [0, 1],
require => User[$::ssh_username] require => User[$::ssh_username]
} }
@@ -372,7 +372,7 @@ if is_hash($firewall_values['rules']) and count($firewall_values['rules']) > 0 {
## Begin Apache manifest ## Begin Apache manifest
if $yaml_values == undef { if $yaml_values == undef {
$yaml_values = loadyaml('/vagrant/resources/vagrant/vms/phraseanet-php54-nginx/puphpet/config.yaml') $yaml_values = loadyaml('/vagrant/resources/vagrant/vms/phraseanet-php55-nginx/puphpet/config.yaml')
} if $apache_values == undef { } if $apache_values == undef {
$apache_values = $yaml_values['apache'] $apache_values = $yaml_values['apache']
} if $php_values == undef { } if $php_values == undef {

Some files were not shown because too many files have changed in this diff Show More