Hello,
So first check if everything is install for the php. You can create php file with "<?php phpinfo(); ?>" and open it or from the terminal "yum list installed | grep lsphp". After that check the mysql/mariadb version for your old and new server. They may be diff version with diff syntax.