Is dvipng installed?
"rpm -q dvipng" will tell you.
Your post is off-topic for this forum, which concerns only software included in the base SME server install.
IMO you really should become much more familiar with working with linux, using standard tutorials, before you start to make substantial modifications to SME server.