Tags:
create new tag
view all tags

SID-01204: Attachements saved as .pl.exe are executable

Status: Unanswered Unanswered TWiki version: 4.3.2 Perl version:
Category: Server OS: CentOS release 5.4 (Final) Last update: 14 years ago

When I upload a .pl file to a page, it automatically renames the file to .pl.txt, which is good. However, when I click on the attachment, it still attempts to execute the attachment, as opposed to showing it as a text file.

Here is the relevant section of my twiki.conf:

<Directory "/var/www/twiki/pub">
    #if you are using an svn checkout an pseudo-install.pl, you will need to enable symlinks
    #Options FollowSymLinks
        Options None
#       AllowOverride Limit
        AllowOverride None
        Allow from all

        # If you have PHP4 or PHP5 installed as Apache module make sure the directive below is enabled
        # If you do not have PHP installed you will need to comment out the directory below
        # to avoid errors.
        # If PHP is installed as CGI this flag is not needed and will in fact make Apache fail
        php_admin_flag engine off

        # If you have PHP3 installed as Apache module make sure the directive below is enabled
        # If PHP is installed as CGI this flag is not needed and will in fact make Apache fail
        #php3_engine off

        # This line will redefine the mime type for the most common types of scripts
        AddType text/plain .shtml .php .php3 .phtml .phtm .pl .py .cgi


</Directory>

Any help in resolving this would be greatly appreciated. I am new to twiki and have not been able to find much online for this issue.

-- TWikiGuest - 2011-06-14

Discussion and Answer

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2011-08-01

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Unanswered
Title Attachements saved as .pl.exe are executable
SupportCategory

TWiki version 4.3.2
Server OS CentOS release 5.4 (Final)
Web server apache 2
Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-08-01 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.