The documentation on the Trac website is clear but I was on the wrong track trying to use fcgi on CentOS and to make that Trac server working. After couple of days of research this is my solution to install (migrate) the Trac server.
##Start with epel and remi repo installation##rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
vi /etc/yum.repo.d/remi.repo
##Change first “enable=0” to “enable=1“; ## Because the previous server was using MySQL with utf8mb4 database, I had to install mysql 5.5 ##Check first what version of mysql will be installed