{"id":975,"date":"2014-11-08T04:53:19","date_gmt":"2014-11-08T04:53:19","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=975"},"modified":"2014-11-08T04:53:19","modified_gmt":"2014-11-08T04:53:19","slug":"whmcpanel-scripts","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/11\/08\/whmcpanel-scripts\/","title":{"rendered":"WHM\/cPanel Scripts"},"content":{"rendered":"<p>fixallcartswithsuexec &#8211; Fixes permissions on carts when using suexec.<br \/>\nfixallinterchangeperm &#8211; Fixes permissions on all users\u2019 Interchange Shopping Carts.<br \/>\nfixbinpath &#8211; Makes sure all bin file paths are correct.<br \/>\nfixbuggynamed &#8211; Updates bind to solve any problems with bugs.<br \/>\nfixcommonproblems &#8211; Attempt to fix the most common problems.<br \/>\nfixetchosts &#8211; Fixes problems with \/etc\/hosts<br \/>\nfixeverything &#8211; Fix common problems and quotas.<br \/>\nfixfpwml &#8211; Fix for .wml errors with frontpage.<br \/>\nfixheaders &#8211; Run if nothing compiles errors with .h files on compile.<br \/>\nfixinterchange &#8211; Reinstall interchange Perl modules.<br \/>\nfixinterchangeperm &#8211; fix permissions on a user\u2019s interchange cart.<br \/>\nfixipsnm &#8211; Same as addnetmask ips, but Perl though.<br \/>\nfixlibnet &#8211; Reinstall Bundle::libnet (Perl).<br \/>\nfixlocalhostwithphp &#8211; Change \/etc\/hosts to work better with PHP 4.2.0 + MySQL.<br \/>\nfixmailman &#8211; Updates and restarts mailman.<br \/>\nfixmailmanwithsuexec &#8211;<br \/>\nfixmuse &#8211; Reinstalls muse.<br \/>\nfixmysql &#8211; Fixes problems with mySQL.<br \/>\nfixmysqlbsd &#8211; Fixes problesm with mySQL on FreeBSD.<br \/>\nfixnamed &#8211; Updates bind to handle many DNS zones (more than 512).<br \/>\nfixndc &#8211; Repair redhat\u2019s broken named.conf on 7.2.<br \/>\nfixoldlistswithsuexec &#8211; Run after enabling suexec on the server to change the URLs that Mailman gives out to ones that don\u2019t give a 500 internal server error.<br \/>\nfixperl &#8211; Symlink \/usr\/local\/bin\/perl \/usr\/bin\/perl.<br \/>\nfixperlscript &#8211; Makes sure a perlscript includes all corresponding modules.<br \/>\nfixpop &#8211; Fix a POP account and reset password.<br \/>\nfixproftpdconf &#8211; Fixes problems with \/usr\/local\/etc\/proftpd.conf<br \/>\nfixproftpddupes &#8211; Updates proftpd.<br \/>\nfixquotas &#8211; Fix quotas.<br \/>\nfixrndc &#8211; Fixes named.conf to prevent rndc staus failed.<br \/>\nfixspamassassinfailedupdate &#8211; Reinstalls a failed spamassassin update.<br \/>\nfixsubdomainlogs &#8211; Run if subdomain logs don\u2019t show up in cPanel.<br \/>\nfixsuexeccgiscripts &#8211; Fix CGI scripts that are broken after suexec installed.<br \/>\nfixvaliases &#8211; Fix permisions on valiases.<br \/>\nfixwebalizer &#8211; Repair a Webalizer that has stopped updating.<\/p>\n<p>Common cPanel \/Scripts<\/p>\n<p>Install Zend Optimizer \/scripts\/installzendopt<br \/>\nHostname A Entry Missing! \/scripts\/fixndc then restart bind and apache<br \/>\nInstall Cron on New Server \/scripts\/installrpm anacron vixie-cron ; \/etc\/rc.d\/init.d\/crond start<br \/>\nBandwidth issues \/scripts\/cleanbw<br \/>\n\/scripts\/fixwebalizer (To fix problem in webalizer that stop updating stats)<br \/>\n\/scripts\/fixcommonproblems<br \/>\n\/scripts\/fixeverything<br \/>\nFixing Mail List MailMan \/usr\/local\/cpanel\/bin\/convertmailman2<br \/>\nReinstall MailMan \/scripts\/reinstallmailman<br \/>\nFix Permissions on accounts: \/scripts\/fixhome<br \/>\nEdit mySQL conf file: pico \/etc\/my.cnf<br \/>\nEdit php.ini: pico \/usr\/local\/lib\/php.ini<br \/>\nEdit Apache Conf: pico \/etc\/httpd\/conf\/httpd.conf<br \/>\nChecking Real Time Top Processes Login to SSH and run: top<br \/>\nRun cpanel backup \/scripts\/cpbackup<br \/>\nTo try and fix domain controller: \/scripts\/fixndc<\/p>\n<p>Quotas \/scripts\/initquotas &#8211; takes a while to run<br \/>\n\/scripts\/resetquotas<br \/>\n\/scripts\/fixquotas &#8211; takes a while to run<\/p>\n<p>\/scripts\/adddns Add a Dns Entry<br \/>\n\/scripts\/addfpmail Install Frontpage Mail Exts<br \/>\n\/scripts\/addservlets Add JavaServlets to an account (jsp plugin required)<br \/>\n\/scripts\/adduser Add a User<br \/>\n\/scripts\/admin Run WHM Lite<br \/>\n\/scripts\/apachelimits Add Rlimits (cpu and mem limits) to apache.<br \/>\n\/scripts\/dnstransfer Resync with a master DNS Server<br \/>\n\/scripts\/editquota Edit A Users Quota<br \/>\n\/scripts\/finddev Search For Trojans in \/dev<br \/>\n\/scripts\/findtrojans Locate Trojan Horses<br \/>\nSuggest Usage<br \/>\n\/scripts\/findtrojans > \/var\/log\/trojans<br \/>\n\/scripts\/fixtrojans \/var\/log\/trojans<br \/>\n\/scripts\/fixcartwithsuexec Make Interchange work with suexec<br \/>\n\/scripts\/fixinterchange Fix Most Problems with Interchange<br \/>\n\/scripts\/fixtrojans Run on a trojans horse file created by findtrojans to remove them<br \/>\n\/scripts\/fixwebalizer Run this if a users stats stop working<br \/>\n\/scripts\/fixvaliases Fix a broken valias file<br \/>\n\/scripts\/hdparamify Turn on DMA and 32bit IDE hard drive access (once per boot)<br \/>\n\/scripts\/initquotas Re-scan quotas. Usually fixes Disk space display problems<br \/>\n\/scripts\/initsuexec Turn on SUEXEC (probably a bad idea)<br \/>\n\/scripts\/installzendopt Fetch + Install Zend Optimizer<br \/>\n\/scripts\/ipusage Display Ipusage Report<br \/>\n\/scripts\/killacct Terminate an Account<br \/>\n\/scripts\/killbadrpms Delete Security Problem Infested RPMS<br \/>\n\/scripts\/mailperm Fix Various Mail Permission Problems<br \/>\n\/scripts\/mailtroubleshoot Attempt to Troubleshoot a Mail Problem<br \/>\n\/scripts\/mysqlpasswd Change a Mysql Password<br \/>\n\/scripts\/quicksecure Kill Potential Security Problem Services<br \/>\n\/scripts\/rebuildippool Rebuild Ip Address Pool<br \/>\n\/scripts\/remdefssl Delete Nasty SSL entry in apache default httpd.conf<br \/>\n\/scripts\/restartsrv Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)<br \/>\n\/scripts\/rpmup Syncup Security Updates from RedHat\/Mandrake<br \/>\n\/scripts\/runlogsnow Force a webalizer\/analog update.<br \/>\n\/scripts\/secureit Remove non-important suid binaries<br \/>\n\/scripts\/setupfp4 Install Frontpage 4+ on an account.<br \/>\n\/scripts\/simpleps Return a Simple process list. Useful for finding where cgi scripts are running from.<br \/>\n\/scripts\/suspendacct Suspend an account<br \/>\n\/scripts\/sysup Syncup Cpanel RPM Updates<br \/>\n\/scripts\/unblockip Unblock an IP<br \/>\n\/scripts\/unsuspendacct UnSuspend an account<br \/>\n\/scripts\/upcp Update Cpanel<br \/>\n\/scripts\/updatenow Update \/scripts<br \/>\n\/scripts\/wwwacct Create a New Account<\/p>\n<p>\/scripts\/runweblogs account username for awstats to run manually<\/p>\n<p>Sometimes such behavior of apache\/httpd (taking more and more memory until it dies or crashes the server) can be caused by corrupted MySQL database. Try to do the following:<br \/>\n1) Kill the mysql server<br \/>\n\/etc\/rc.d\/init.d\/mysql stop<\/p>\n<p>2) Repair all SQL databases:<br \/>\nmyisamchk -r \/var\/lib\/mysql\/*\/*.MYI<\/p>\n<p>3) Start mysql again:<br \/>\n\/etc\/rc.d\/init.d\/mysql start<\/p>\n","protected":false},"excerpt":{"rendered":"<p>fixallcartswithsuexec &#8211; Fixes permissions on carts when using suexec. fixallinterchangeperm &#8211; Fixes permissions on all users\u2019 Interchange Shopping Carts. fixbinpath &#8211; Makes sure all bin file paths are correct. fixbuggynamed &#8211; Updates bind to solve any problems with bugs. fixcommonproblems &#8211; Attempt to fix the most common problems. fixetchosts &#8211; Fixes problems with \/etc\/hosts fixeverything &#8230; <a title=\"WHM\/cPanel Scripts\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/11\/08\/whmcpanel-scripts\/\" aria-label=\"Read more about WHM\/cPanel Scripts\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,123],"tags":[],"class_list":["post-975","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-whm"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=975"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/975\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}