neontribe / Linked_Development

Linked Development
1 stars 1 forks source link

API needs PHP 5.4 #57

Closed practicalparticipation closed 11 years ago

ghost commented 11 years ago

I have used the dotdeb.org backport for php 5.4 as documented below- Toby is now testing on our internal machine to confirm this hasn't broken anything and provides everything the API needs.

these additions to conf/post-overlay:

Add dotdebs php54 backport

echo "# dotdebs backports and php54" >> /etc/apt/sources.list.d/sources.list echo "deb http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list.d/sources.list echo "deb-src http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list.d/sources.list echo "deb http://packages.dotdeb.org squeeze-php54 all" >> /etc/apt/sources.list.d/sources.list echo "deb-src http://packages.dotdeb.org squeeze-php54 all" >> /etc/apt/sources.list.d/sources.list apt-key add /etc/apt/sources.list.d/dotdeb.gpg rm /etc/apt/sources.list.d/dotdeb.gpg

and the actual upgrade done on firstboot (as it pulls a new kernel it couldn't be pulled before the iso generation was done).

overlay/usr/lib/inithooks/firstboot.d/S79dist-upgrade:

apt-get -y update apt-get -y dist-upgrade rm /etc/php5/conf.d/suhosin.ini rm /etc/php5/conf.d/apc.ini apt-get -y install php5-apc

Also so we don't need a network connection during installation I have put the gpg key into the overlay (for the dotdeb.org sources.list entry):

overlay/etc/apt/sources.list.d/dotdeb.gpg

ref: http://davejamesmiller.com/blog/installing-php-5-4-on-debian-6-squeeze