On E Street’s Plesk servers, you may come across a problem where perl is being used to create files, but sometimes the permissions on the new file are set incorrectly. The general case is that a new file must have permissions of 640 in order to serve, yet when perl is used to create a file (or sometimes modify a file) the permissions are set to 600 which won’t serve. You will get an error message about not having permissions to view the file.
To fix this, you must issue a perl command to chmod the file to the correct permissions after it has been written. The general syntax for this is:
chmod 0664, $pathtofile or die
“chmod $pathtofile: $!”;