chowatt
2/27/2017 - 6:23 PM

Update Centos 7.3 - php 7 - apache - wktohtmlpdf - dependencies for CakePHP 3.4

Update Centos 7.3

  • php 7
  • apache
  • wktohtmlpdf
  • dependencies for CakePHP 3.4
sudo yum -y update

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
sudo yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

sudo yum -y install httpd24 php70w php70w-mysqlnd --enablerepo=epel
sudo yum -y install mod_ssl openssl
sudo yum -y install php70w-mcrypt php70w-mbstring php70w-intl php70w-gd php70w-opcache --enablerepo=epel
sudo yum -y install php70w-ldap
sudo yum -y install git vim xz wget
sudo curl --silent --location https://rpm.nodesource.com/setup_7.x | sudo bash -
sudo yum -y install zlib fontconfig freetype libX11 libXext libXrender

sudo yum -y install nodejs
sudo npm install -g bower

wget https://getcomposer.org/installer
php installer
sudo mv composer.phar /bin/composer

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
unxz wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar
sudo cp wkhtmltox/bin/wkhtmltopdf /usr/bin

sudo chkconfig httpd on

sudo firewall-cmd --zone=public --permanent --add-service=https
sudo firewall-cmd --zone=public --permanent --add-service=http
sudo service firewalld restart