Run the following commands as root user:
# perl /var/www/imscp/engine/setup/imscp-reconfigure -dar sql