Your path to admin is wrong.
It should be (assuming your path to catalog is correct):
/var/www/domain.com/htdocs/catalog/admin/
and
define('DIR_FS_ADMIN', '/htdocs/catalog/admin/'); // absolute path required
Your shop is set up in a folder called catalog right?