MySQL socket should be configured during installation
MySQL socket (and maybe other sockets if any is needed) should be configured during expert installation.
Some servers have MySQL socket in different directory than standard, because of chroot configuration. ex. /srv/chroot/mysql/var/run/mysqld/mysqld.sock