Support the ongoing development of Laravel.io →
Installation Configuration

I am getting this error when installing laravel 5.2 on ubuntu 14. I have used this following command to install php

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php5.6 php5.6-mcrypt php5

But after getting installed some part of laravel framework I am getting this following error in terminal:


To enable extensions, verify that they are enabled in those .ini files:

         - /etc/php/5.6/cli/php.ini
            - /etc/php/5.6/cli/conf.d/10-mysqlnd.ini
            - /etc/php/5.6/cli/conf.d/10-opcache.ini
            - /etc/php/5.6/cli/conf.d/10-pdo.ini
            - /etc/php/5.6/cli/conf.d/20-calendar.ini
            - /etc/php/5.6/cli/conf.d/20-ctype.ini
            - /etc/php/5.6/cli/conf.d/20-exif.ini
            - /etc/php/5.6/cli/conf.d/20-fileinfo.ini
            - /etc/php/5.6/cli/conf.d/20-ftp.ini
            - /etc/php/5.6/cli/conf.d/20-gd.ini
            - /etc/php/5.6/cli/conf.d/20-gettext.ini
            - /etc/php/5.6/cli/conf.d/20-iconv.ini
            - /etc/php/5.6/cli/conf.d/20-json.ini
            - /etc/php/5.6/cli/conf.d/20-mcrypt.ini
            - /etc/php/5.6/cli/conf.d/20-mysql.ini
            - /etc/php/5.6/cli/conf.d/20-mysqli.ini
            - /etc/php/5.6/cli/conf.d/20-pdo_mysql.ini
            - /etc/php/5.6/cli/conf.d/20-phar.ini
            - /etc/php/5.6/cli/conf.d/20-posix.ini
            - /etc/php/5.6/cli/conf.d/20-readline.ini
            - /etc/php/5.6/cli/conf.d/20-shmop.ini
            - /etc/php/5.6/cli/conf.d/20-sockets.ini
            - /etc/php/5.6/cli/conf.d/20-sysvmsg.ini
            - /etc/php/5.6/cli/conf.d/20-sysvsem.ini
            - /etc/php/5.6/cli/conf.d/20-sysvshm.ini
            - /etc/php/5.6/cli/conf.d/20-tokenizer.ini

      You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Last updated 2 years ago.
0

Try this... cd /etc/php/5.6/cli, then sudo nano php.ini, then look for each thing i.e. mysqli.ini and delete the ; in front of it in the file. See if that works.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

salmanx salmanx Joined 10 Oct 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.