apt-get install php5-sqlite 之後重新開機apache就行啦 sudo /etc/init.d/apache2 restart 修改配置 sudo gedit /etc/php5/apache2/php.ini