Is it possible to define file type permissions through .htaccess? I have a site that uses .pl and .cgi scripts which require 0755 CHMOD. The shared server setting is apparently geared for WordPress which require 0644 CHMOD as it is php-driven, so I'm guessing that my file permissions on .pl and .cgi occasionally get set to a default of 0644, causing "[an error occurred while processing this directive]."
I've tried adding this in the .htaccess, but get a 500 server error. Any help or suggestions would be appreciated. I do not have access to the httpd.conf file.
chmod .htpasswd files 640
chmod .htaccess files 644
chmod php files 600
chmod pl files 755
chmod cgi files 755
chmod cgi files 755