Switching to PHP7.1
This commit is contained in:
parent
b094a6806b
commit
c6182e1fbe
3 changed files with 39 additions and 23 deletions
|
@ -46,7 +46,7 @@ Let me know if you encounter any issue.
|
||||||
- Git (https://git-scm.com/)
|
- Git (https://git-scm.com/)
|
||||||
- Git-LFS (https://git-lfs.github.com)
|
- Git-LFS (https://git-lfs.github.com)
|
||||||
- Gulp (http://gulpjs.com/)
|
- Gulp (http://gulpjs.com/)
|
||||||
- PHP7 (http://www.php.net) :
|
- PHP7.1 (http://www.php.net) :
|
||||||
- CURL
|
- CURL
|
||||||
- Dev
|
- Dev
|
||||||
- GD
|
- GD
|
||||||
|
@ -61,6 +61,9 @@ Let me know if you encounter any issue.
|
||||||
- Zip
|
- Zip
|
||||||
- Sqlite3
|
- Sqlite3
|
||||||
- Memcached
|
- Memcached
|
||||||
|
- Redis
|
||||||
|
- GeoIP
|
||||||
|
- GMP
|
||||||
- Mailcatcher (https://mailcatcher.me/)
|
- Mailcatcher (https://mailcatcher.me/)
|
||||||
- MariaDB (MySQL) (https://mariadb.org/)
|
- MariaDB (MySQL) (https://mariadb.org/)
|
||||||
- Memcached (http://www.memcached.org/)
|
- Memcached (http://www.memcached.org/)
|
||||||
|
|
|
@ -8,6 +8,7 @@ apt_update 'all platforms' do
|
||||||
action :periodic
|
action :periodic
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# VARIOUS TOOLS
|
# VARIOUS TOOLS
|
||||||
#####################################
|
#####################################
|
||||||
|
@ -18,6 +19,8 @@ package 'apt-transport-https'
|
||||||
package 'build-essential'
|
package 'build-essential'
|
||||||
package 'curl'
|
package 'curl'
|
||||||
package 'unzip'
|
package 'unzip'
|
||||||
|
package 'lsb-release'
|
||||||
|
package 'ca-certificates'
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# NTPDATE
|
# NTPDATE
|
||||||
|
@ -31,27 +34,39 @@ end
|
||||||
#####################################
|
#####################################
|
||||||
# PHP
|
# PHP
|
||||||
#####################################
|
#####################################
|
||||||
package 'php7.0'
|
|
||||||
package 'php7.0-curl'
|
apt_repository 'php7' do
|
||||||
package 'php7.0-dev'
|
action :add
|
||||||
package 'php7.0-gd'
|
uri 'ppa:ondrej/php'
|
||||||
package 'php7.0-json'
|
distribution node['lsb']['codename']
|
||||||
package 'php7.0-mysql'
|
cache_rebuild true
|
||||||
package 'php7.0-readline'
|
end
|
||||||
package 'php7.0-xml'
|
|
||||||
package 'php7.0-intl'
|
package 'php7.1'
|
||||||
package 'php7.0-mbstring'
|
package 'php7.1-curl'
|
||||||
package 'php7.0-mcrypt'
|
package 'php7.1-dev'
|
||||||
|
package 'php7.1-gd'
|
||||||
|
package 'php7.1-json'
|
||||||
|
package 'php7.1-mysql'
|
||||||
|
package 'php7.1-readline'
|
||||||
|
package 'php7.1-xml'
|
||||||
|
package 'php7.1-intl'
|
||||||
|
package 'php7.1-mbstring'
|
||||||
|
package 'php7.1-mcrypt'
|
||||||
package 'php-xdebug'
|
package 'php-xdebug'
|
||||||
package 'php7.0-zip'
|
package 'php7.1-zip'
|
||||||
package 'php7.0-sqlite3'
|
package 'php7.1-sqlite3'
|
||||||
|
package 'php7.1-msgpack'
|
||||||
|
package 'php7.1-gmp'
|
||||||
|
package 'php7.1-geoip'
|
||||||
|
package 'php7.1-redis'
|
||||||
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# MEMCACHE
|
# MEMCACHE
|
||||||
#####################################
|
#####################################
|
||||||
package 'memcached'
|
package 'memcached'
|
||||||
package 'php-memcached'
|
package 'php7.1-memcached'
|
||||||
|
|
||||||
service 'memcached' do
|
service 'memcached' do
|
||||||
action [:enable, :start]
|
action [:enable, :start]
|
||||||
|
@ -62,7 +77,7 @@ end
|
||||||
# APACHE
|
# APACHE
|
||||||
#####################################
|
#####################################
|
||||||
package 'apache2'
|
package 'apache2'
|
||||||
package 'libapache2-mod-php7.0'
|
package 'libapache2-mod-php7.1'
|
||||||
|
|
||||||
template '/etc/apache2/conf-enabled/users.conf' do
|
template '/etc/apache2/conf-enabled/users.conf' do
|
||||||
source 'users.conf'
|
source 'users.conf'
|
||||||
|
@ -70,11 +85,10 @@ end
|
||||||
|
|
||||||
template '/etc/apache2/sites-enabled/000-default.conf' do
|
template '/etc/apache2/sites-enabled/000-default.conf' do
|
||||||
source 'apache-000_default.conf.erb'
|
source 'apache-000_default.conf.erb'
|
||||||
notifies :restart, "service[apache2]"
|
|
||||||
manage_symlink_source true
|
manage_symlink_source true
|
||||||
end
|
end
|
||||||
|
|
||||||
template '/etc/php/7.0/apache2/php.ini' do
|
template '/etc/php/7.1/apache2/php.ini' do
|
||||||
source 'php.ini.erb'
|
source 'php.ini.erb'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ function success {
|
||||||
currentdir=`pwd`
|
currentdir=`pwd`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
who=`whoami`
|
who=`whoami`
|
||||||
if [ "$who" = "vagrant" ]
|
if [ "$who" = "vagrant" ]
|
||||||
then
|
then
|
||||||
|
@ -19,21 +18,21 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Checking whether /etc/hosts file exists
|
# Checking whether /etc/hosts file exists
|
||||||
if [ ! -f "/etc/hosts" ]
|
if [ ! -f "/etc/hosts" ]
|
||||||
then
|
then
|
||||||
error "Could not find the /etc/hosts file. I must abort..."
|
error "Could not find the /etc/hosts file. I must abort..."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
|
||||||
success "We have detected the following path for the Vagrant root:"
|
|
||||||
success " > $currentdir"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "= APPLICATION CONFIGURATION ="
|
echo "= APPLICATION CONFIGURATION ="
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
success "We have detected the following path for the Vagrant root:"
|
||||||
|
success " > $currentdir"
|
||||||
|
|
||||||
|
|
||||||
# Checking Vagrant root path
|
# Checking Vagrant root path
|
||||||
echo
|
echo
|
||||||
|
|
Reference in a new issue