[root@host.onlinesupport4u.in ~]# cat /sys/block/sda/queue/rotational Result is 0 if the drive is SSD [root@host.onlinesupport4u.in ~]# cat /sys/block/sda/queue/rotational Result is 1 if drive is SATA
If you want to disable security for one singled domain name you can do it by editing virtualhost in httpd.conf You can add the below setting in apache’s virtualhost for the domain name You need to add below rule to disable mod_security <IfModule mod_security2.c> SecRuleEngine off </IfModule>
Sometime you may face issue while logging to WHM where password does not work but via SSH password work The issue in cpanel server is due to cphulkd which is one of the security feature. to get it password working you need to ssh and disabled cphulkd using below commands root@server [~]# /usr/local/cpanel/etc/init/stopcphulkd Waiting for […]
To make your account in cpanel server have custom php.ini for all subfolder You need to use below code steps 1) Login to server via SSH 2) scp /usr/local/lib/php.ini /home/cpanelusername/public_html/ 3) vi /home/cpanelusername/public_html/.htaccess Add below code suPHP_ConfigPath /home/pankaj12/public_html <Files php.ini> order allow,deny deny from all </Files> Once done custom php.ini should be available for all […]
If you get below fatal error while updating cpanel [20140325.101511] ***** FATAL: Test install failed: package cpanel-php54-ingo-3.1.2-3.cp1142.noarch is already installed [20140325.101511] The Administrator will be notified to review this output when this script completes [20140325.101511] ***** FATAL: Error testing if the RPMs will install: Died at /usr/local/cpanel/scripts/updatenow.static-cpanelsync line 14050. [20140325.101511] see http://go.cpanel.net/rpmcheckfailed […]
Are you getting below error in cpanel for cron Lynx file “/etc/lynx.lss” is not available” in cpanel server ? You can fix it using below mentioned setting # vi /var/cpanel/exim.conf.deps and append it and add below entries /etc/lynx.lss Now Save file and quit and error should dissappear
If your cpanel is showing wrong mailbox quota than the actual usage You need to Do the following steps to get it fixed. Login to your server with root user and check the actual usage of email account #cd /home/username/mail/domain.rld / #du -sch emailaccount If you found the difference in actual usage and cpanel results […]
Getting sick of spammers in server and IP blacklisting ? To find the spammer account in server you need to SSH to server and run below command awk ‘$3 ~ /^cwd/{print $3}’ /var/log/exim_mainlog | sort | uniq -c | sed “s|^ *||g” | sort -nr This will show the the path of the user account […]
Deleted or corrupted file in cpanel server for /etc/userdomains ? Use below 2 commands to by logging in as root to restore the file # /usr/local/cpanel/bin/userdata_update and then run #/scripts/updateuserdomains
Having issues with cpanel Filemanager where you can write on a file with 444 permissions ? The issue is with X3 theme . You need to modify below line in file vi /usr/local/cpanel/base/frontend/x/files/changeperm.html And see if you see the line: cpanelFileman= change it to without space cpanelFileman=