how to disable symlink in cpanel
open this file via putty or terminal
/usr/local/apache/conf/httpd.conf
paste this code and save it
<Directory "/"> Options -ExecCGI -FollowSymLinks Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch AllowOverride All </Directory> <Directory "/usr/local/apache/htdocs"> Options IncludesNOEXEC Indexes -FollowSymLinks +SymLinksIfOwnerMatch -ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> <Directory "/home"> Options All -ExecCGI -FollowSymLinks -Includes -IncludesNOEXEC -MultiViews +SymLinksIfOwnerMatch AllowOverride AuthConfig Indexes Limit Fileinfo </Directory> <Directory "/home2"> Options All -ExecCGI -FollowSymLinks -Includes -IncludesNOEXEC -MultiViews +SymLinksIfOwnerMatch AllowOverride AuthConfig Indexes Limit Fileinfo </Directory>