PHP Error Fixes

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

To install php5-mysql module enter:

sudo apt-get install php5-mysql

Next, restart the Apache2/Nginx web server:
sudo service apache2 restart / sudo service nginx restart

To verify if this worked correctly, create a new PHP file some where on your web server and place this inside of it:

<?php phpinfo(); ?>


Digital Ocean

syntax error, unexpected 'use' then how to use

use statements should appear at the top of a PHP file, not half-way through it...


Got error 28 from storage engine

check your server storage.. df -h


Call to undefined method CI_DB_mysqli_result::next_result()

open system/database/drivers/mysqli/mysqli_driver.php then change the function _execute() to the code below

function _execute($sql) {
// Free result from previous query

$sql = $this->_prep_query($sql);

// get a result code of query (), can be used for test is the query ok
$retval = @mysqli_multi_query($this->conn_id, $sql);

// get a first resultset
$firstResult = @mysqli_store_result($this->conn_id);

// free other resultsets
while (@mysqli_next_result($this->conn_id)) {
$result = @mysqli_store_result($this->conn_id);

// test is the error occur or not 
if (!$firstResult && !@mysqli_errno($this->conn_id)) {
return true;
return $firstResult;

Call to undefined function curl_init()


sudo apt-get install php5-curl

nginx upstream timed out


add -> fastcgi_read_timeout 150;

With your php-fpm configuration it should look like this:

location ~* .php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_read_timeout 150;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;