Installing PHP7.2 on Ubuntu 18.04

Installing PHP7.2 on Ubuntu 18.04

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

sudo apt-get install php7.2 libapache2-mod-php php7.2-curl php7.2-gd php7.2-mbstring php7.2-mcrypt php7.2-xml php7.2-xmlrpc php7.2-mysql


In case, php7.2-xmlrpc gives not found error use:

sudo apt-get install php7.2 libapache2-mod-php php7.2-curl php7.2-gd php7.2-mbstring php7.2-mcrypt php7.2-xml php7.2-mysql

It will install PHP5.6 on your server

sudo systemctl restart apache2

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.