Fatal error: Trying to clone an uncloneable object of class DatabaseException...Installation error

Hi,

I tried to install elgg on my web host and it worked.

however, i also tried to install it on a local intranet server on linux OS and the installation page gives me this error:

Fatal error: Trying to clone an uncloneable object of class DatabaseException in elgglib.php  on line 1749

I had previously created the database and data folder and settings.php as well as .htaccess files.

what am i doing wrong???