perl cgi works now. If you are getting 500 Internal Server Error, the permissions are more strict now. Make sure your files are chmod 0755 with proper user:group settings.
For some reason mysql thinks it's already running when it's not. It won't bind to the UNIX socket. I'm running out of time today before work. If you have a hint, let me know