Skip to content

Instantly share code, notes, and snippets.

@valbeat
Created March 27, 2015 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valbeat/b8e47796983fa1a51bc8 to your computer and use it in GitHub Desktop.
Save valbeat/b8e47796983fa1a51bc8 to your computer and use it in GitHub Desktop.
PHPで「Fatal error: Class 'mysqli' not found」と出た時の対処法 ref: http://qiita.com/valbeat/items/1cc0075af808b6703691
Fatal error: Class 'mysqli' not found
$ vim /usr/local/lib/php.ini
;extension=php_mysqli.dll
extension=php_mysqli.dll
$ cd /usr/local/src/php-5.6.0
$ make clean
$ ./configure --enable-mbstring --with-apxs2=/usr/local/apache2/bin/apxs --enable-pdo --with-gd --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-mysql --with-mysqli
$ make
$ make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment