MilesWeb Hosting Forum

Web Hosting Technical Support => Errors and Solutions => Topic started by: Rahul Sambre on July 12, 2016, 04:11:09 PM

Title: Configure Hotlink Protection on cPanel.
Post by: Rahul Sambre 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.

Quotechmod 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  :)