: Suexec policy violation error for a javascript file I deployed a web-app on DreamHost shared hosting. During tests, I got the "500 Internal Server Error" on one of the JavaScript files called
I deployed a web-app on DreamHost shared hosting.
During tests, I got the "500 Internal Server Error" on one of the JavaScript files called jquery.timeago.pl.js (the jQuery timeago plugin locale configuration).
The Apache error.log entry said "suexec policy violation".
PHP is executed by FastCGI.
While searching for a clue I found out that people had similar issues on DreamHost related to Perl scripts. Nothing in relation to my problem, but I removed .pl from the file name and it worked!
Now the question is - is there another way to avoid this "suexec policy violation"? My solution worked and I'm fine with it, but it's certainly not a good idea to adapt filenames due to environment configuration.
More posts by @Courtney195
1 Comments
Sorted by latest first Latest Oldest Best
Unfortunately in this sort of situation there is nothing really that you can do to change the policy or settings. Based on your feedback in comments about removing the .pl from the file name and it worked it sounds like the suexec filter is checking filenames for the existence of perl script extensions (perl runs files with .pl file extensions) but for some reason the check isn't good enough to tell a jquery plugin file from an actual perl file. Other than removing the .pl from the file name and refactoring all code references to that file there is not much that you can do otherwise.
Having said all that there shouldn't be a problem with renaming the file as generally when checking for the existence of a jquery plugin a check is made to see if the plugin is attached under jquery and is not based on if a javascript file has been added to the DOM as a filename can be anything.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.