Infrastructure 2017-10-01

No MySQL Driver After Installing PHP7

Resolve PHP7 MySQL driver missing issues by installing php-mysqlnd package through REMI yum repository.

Read in: ja
No MySQL Driver After Installing PHP7

No MySQL Driver After Installing PHP7

For PHP7 installation, I referred to this guide.

By the way, my environment is...

If There's No Driver, Just Install It

yum install yum install --enablerepo=remi,remi-php70 php-mysqlnd

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

Reference

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

Tags: CentOS MySQL PHP PHP7 Sakura VPS yum
Share: 𝕏 Post Facebook Hatena
✏️ View source / Discuss on GitHub
☕ Support

If you enjoy this blog, consider supporting it. Every bit helps keep it running!


Related Articles