in reply to a classic : 'Premature end of script headers' problem
Is your new system running SELinux? If so, in addition to setting the correct permissions with "chmod", you'll need to set the correct security contexts with "chcon" - someone else on here had a similar problem recently.