DEV Community

Cover image for No MySQL Driver After Installing PHP7
Kenta Takeuchi
Kenta Takeuchi

Posted on • Originally published at bmf-tech.com

No MySQL Driver After Installing PHP7

This article was originally published on bmf-tech.com.

No MySQL Driver After Installing PHP7

For PHP7 installation, I referred to this guide.

By the way, my environment is...

  • Sakura VPS
  • CentOS6.7

If There's No Driver, Just Install It

yum install yum install --enablerepo=remi,remi-php70 php-mysqlnd
Enter fullscreen mode Exit fullscreen mode

This seems to have resolved the issue (:3」∠)

Note: Regarding PHP7 Installation

There might be some missing packages, but for using Laravel with PHP7 via Composer, it seems sufficient.

yum -y install --enablerepo=remi-php70 php php-mbstring php-pear php-fpm php-mcrypt php-devel php-xml
Enter fullscreen mode Exit fullscreen mode

Reference

After switching to PHP7, it might just be my imagination, but it feels faster. No, the perceived speed has clearly changed...

Top comments (0)