PHP "mysqli.so: undefined symbol: mysqlnd_connect in Unknown on line 0"

Solution 1:

When you load mysqli after mysqlnd, this solves the issue. BUT

if you use phpenmod to enable the modules they enable in alphabetical order. mysqli is before mysqlnd in the order.

I got around this by renaming the symlinks to mysqli to zmysqli - crude, but it worked.

Solution 2:

I was going through multiple installation documents for php and one said to enable extension = mysqli in the php.ini (uncomment it) but phpenmod was enabled and so the mysqli shouldn't be in php.ini I commented out the line and everything loaded properly.