MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: Configure Hotlink Protection on cPanel.  (Read 3969 times)

0 Members and 1 Guest are viewing this topic.

Offline Rahul Sambre

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Configure Hotlink Protection on cPanel.
« on: July 12, 2016, 04:11:09 PM »
Hi,

Our client was facing an issue with "Hotlink protection" while enabling hotlink protection, Below is the error message.


There was an error while enabling hotlink protection.

Apache detected an error in the Rewrite config.

/usr/local/apache/bin/httpd: line 18: ulimit: virtual memory: cannot modify limit: Operation not permitted
/usr/local/apache/bin/httpd: line 26: /usr/local/lsws/logs/ap_cmd_param.log: Permission denied
AH00526: Syntax error on line 1 of /home/fashionstation/public_html/.htaccess.0YxkU_RIdkP33Cu7PvxwVISwuf5KAN64:
Invalid command 'CacheDisable', perhaps misspelled or defined by a module not included in the server configuration

Please try again.

You receive this error because the permissions on the log file is incorrect OR the .htaccess file has a incorrect rules which conflicts with litespeed.

Set permissions on the log file so that it can be modified/written easily.

Quote
chmod 755 /usr/local/lsws/logs/ap_cmd_param.log

Modify the .htaccess under the account and remove the conflicting rules OR modify them.

That's it  :)
« Last Edit: January 13, 2017, 02:34:04 AM by Rahul Sambre »

MilesWeb Hosting Forum

Configure Hotlink Protection on cPanel.
« on: July 12, 2016, 04:11:09 PM »