skip to Main Content

I have recently change my php version 7.0 to 7.1

I tried

 sudo apt-add-repository ppa:ondrej/php
sudo apt install php7.1
sudo a2dismod php7.0
sudo a2enmod php7.1
sudo apt-get install php7.1-xml

Then when i hit localhost/projectname nothing will displays.. and when u hit http://localhost/phpmyadmin/ got

phpMyAdmin – Error The mbstring extension is missing. Please check
your PHP configuration.

then i tried

sudo apt-get install php-mbstring

Nothing change.
finally

sudo service apache2 restart 

No change..even i didn’t get my project which is worked before.

please help me

2

Answers


  1. Please try:

    sudo apt-get install php7.1-mbstring
    sudo service apache2 restart 
    

    Hope it helps.

    Login or Signup to reply.
  2. Follow list of commands

    sudo apt-get install php7.1-mbstring; #version specific mbstring
    sudo apt install php7.1-mcrypt;
    sudo systemctl restart apache2;
    sudo phpenmod mcrypt; #enable mcrypt
    sudo phpenmod mbstring; #enable mbstring
    sudo systemctl restart apache2;
    

    Caution when you switch version on ubuntu, it automatically removes some version specific extensions. You again have to explicitly
    install and enable it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search