您好,登錄后才能下訂單哦!
------------------------報(bào)錯(cuò)------------------------
Fatal error: Class 'PDO' not found in /usr/share/nginx/html/Core/Library/Think/Db.class.php on line 39
:(
Class 'PDO' not found
錯(cuò)誤位置
FILE: /usr/share/nginx/html/Core/Library/Think/Db.class.php LINE: 39
-----------------------------------------------------
1、進(jìn)行源碼包ext/pdo目錄
# cd php-5.6.14/ext/pdo
2、執(zhí)行/usr/local/php/bin/phpize
3、配置、編譯、安裝擴(kuò)展PDO
# ./configure --with-php-config=/usr/local/php/bin/php-config --enable-pdo=shared && make && make install
……………
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files: /usr/local/php/include/php/
Installing PDO headers: /usr/local/php/include/php/ext/pdo/
4、配置、編譯、安裝pdo_mysql
# cd ../pdo_mysql/
# /usr/local/php/bin/phpize
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql2
……………
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
5、在php配置文件中加入
vi /usr/local/php/lib/php.ini
…………
extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so
extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/pdo.so
6、啟動(dòng)php-fpm服務(wù)
# /usr/local/php/sbin/php-fpm
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。