Skip to main content

Install xsendfile in easy apache 4 for litespeed and apache

Comments

9 comments

  • kiavaco
    please help me i want install xsendfile in easy apache 4 for webserver apache or litespeed thanks
    0
  • cPanelMichael
    Hello, It's currently available for Apache as an experimental module. You can read about it on the official feature request: mod_xsendfile support Additionally, ensure to review the warnings and notes on the EA4 experimental repo at: The Experimental Repository - EasyApache 4 - cPanel Documentation Thank you.
    0
  • Shahsavani
    Hello, It's currently available for Apache as an experimental module. You can read about it on the official feature request: Thank you.

    hi i'm new to whm please help me how to install or enable X-Sendfile in easy apache 4 for litespeed and apache
    0
  • cPWilliamL
    @Shahsavani, did you read the linked feature request? mod_xsendfile support You'll need to manually enable the EA4-experimental repository, then you can install it:
    yum install ea4-experimental yum install ea-apache24-mod_xsendfile
    0
  • Shahsavani
    @Shahsavani, did you read the linked feature request? mod_xsendfile support You'll need to manually enable the EA4-experimental repository, then you can install it:
    yum install ea4-experimental yum install ea-apache24-mod_xsendfile

    I use the WHM Version 68.0.28. It's shown in the EasyApache4 that mod_xsendfile is installed, but it does not work. I tested it with a php method. This is the PHP method :
    0
  • cPanelMichael
    I use the WHM Version 68.0.28. It's shown in the EasyApache4 that mod_xsendfile is installed, but it does not work. I tested it with a php method. This is the PHP method :

    Hello, Check to ensure you've enabled the module via the .htaccess file in the document root of the website. The module documents how to do this at: mod_xsendfile for Apache2/Apache2.2 Thank you.
    0
  • Shahsavani
    Hello, Check to ensure you've enabled the module via the .htaccess file in the document root of the website. The module documents how to do this at: mod_xsendfile for Apache2/Apache2.2 Thank you.

    Hello Thank you for answering, but it still does not work this is .htaccess file in the document root of the website : RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] XSendFile On XSendFile On
    0
  • cPanelMichael
    Hello, Here's a test PHP script you could try using:

    Simply create that test PHP file and "123.txt" file, then update the path to match the directory it's located at. If it doesn't work, feel free to open a support ticket so we can take a closer look. Thank you.
    0
  • Shahsavani
    Hello, Here's a test PHP script you could try using:

    Simply create that test PHP file and "123.txt" file, then update the path to match the directory it's located at. If it doesn't work, feel free to open a support ticket so we can take a closer look. Thank you.

    Hello it does not work with header('X-Sendfile: /home/username/public_html/123.txt'); return 0 byte But i switch to LiteSpeed and use header('X-LiteSpeed-Location: /home/username/public_html/123.txt''); and it's work
    0

Please sign in to leave a comment.