{"id":307,"date":"2009-06-29T01:54:06","date_gmt":"2009-06-29T01:54:06","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/index.php\/?p=307"},"modified":"2009-06-29T01:54:06","modified_gmt":"2009-06-29T01:54:06","slug":"where-does-cpanel-put-things","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/","title":{"rendered":"Where Does cPanel Put Things?"},"content":{"rendered":"<p>From http:\/\/www.v-nessa.net\/<\/p>\n<p>(Sexy g33k chicks rock&#8230;)<\/p>\n<p>I can think of a few things that are wrong with that title but in all seriousness\u2026don\u2019t you ever wonder where cPanel stores the config changes that you make in WHM?  Automation is the key nowadays, and lately that\u2019s required me to get a little down and dirty with cPanel to find its deepest secrets. *This information is not official documentation, nor is it backed up by cPanel or set in stone.  In other words, don\u2019t blame me if you mess up your server.<\/p>\n<p>These are files that store the information read and used by WHM (as of 11.23.6)<\/p>\n<p>    * IP addresses: \/etc\/ips<br \/>\n    * Reserved IPs: \/etc\/reservedips<br \/>\n    * Reserved IP reasons: \/etc\/reservedipreasons<br \/>\n    * IP address pool: \/etc\/ipaddrpool<br \/>\n    * Access hash (WHM remote access key): \/home\/user\/.accesshash or \/root\/.accesshash<br \/>\n    * cPanel update preferences: \/etc\/cpupdate.conf<br \/>\n    * Basic cPanel\/WHM setup:  \/etc\/wwwacct.conf<br \/>\n    * System mail preferences: \/etc\/localaliases<br \/>\n    * Exim open relay list: \/etc\/alwaysrelay<br \/>\n    * Server-wide max emails per hour: \/var\/cpanel\/maxemailsperhour<br \/>\n    * Tweak settings: \/var\/cpanel\/cpanel.config<br \/>\n    * Packages: \/var\/cpanel\/packages\/<br \/>\n    * Features: \/var\/cpanel\/features\/<br \/>\n    * User data: \/var\/cpanel\/users\/ and \/var\/cpanel\/userdata<br \/>\n    * Apache templates: \/var\/cpanel\/templates\/apache(1,2)<br \/>\n    * Exim config template: \/etc\/exim.conf.localopts<br \/>\n    * Exim mail IPs: \/etc\/mailips<br \/>\n    * rDNS for mail ips: \/etc\/mail_reverse_dns<br \/>\n    * Clustering: \/var\/cpanel\/cluster\/root\/config<br \/>\n    * Service manager: \/etc\/chkserv.d<br \/>\n    * Users and their domains: \/etc\/userdomains<br \/>\n    * Users and their main domains: \/etc\/trueuserdomains<br \/>\n    * Users and their owners: \/etc\/trueuserowners<br \/>\n    * Main cPanel IP: \/var\/cpanel\/mainip<br \/>\n    * cPanel version: \/usr\/local\/cpanel\/version<br \/>\n    * Resellers: \/var\/cpanel\/resellers<br \/>\n    * Reseller nameservers: \/var\/cpanel\/resellers-nameservers<\/p>\n<p>These are a few scripst that you can use to achieve the same  results of their WHM equivalents:<\/p>\n<p>    * Initialize quotes: \/scripts\/initquotas<br \/>\n    * Compile Apache: \/scripts\/easyapache  (you can pass additional options \u2013 see EasyApache 2 docs)<br \/>\n    * Update cPanel: \/scripts\/upcp<br \/>\n    * Enable\/disable tweak settings: \/scripts\/smtpmailgidonly on|off<br \/>\n    * Change PHP API and suExec settings: \/usr\/local\/cpanel\/bin\/rebuild_phpconf<br \/>\n    * Suspend an account: \/scripts\/suspendacct <user> <reason><br \/>\n    * Terminate an account: \/scripts\/killacct <user><\/p>\n<p>Obviously there are a ton more, and just about anything done in WHM can be done directly on the server.  The main things to remember:<\/p>\n<p>Scripts are mainly stored in \/scripts and \/usr\/local\/cpanel\/bin<\/p>\n<p>Data files are in \/var\/cpanel<\/p>\n<p>Config files are in \/etc\/ and \/usr\/local\/cpanel<\/user><\/reason><\/user><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From http:\/\/www.v-nessa.net\/ (Sexy g33k chicks rock&#8230;) I can think of a few things that are wrong with that title but in all seriousness\u2026don\u2019t you ever wonder where cPanel stores the config changes that you make in WHM? Automation is the key nowadays, and lately that\u2019s required me to get a little down and dirty with&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-info"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Where Does cPanel Put Things? - Linux Shtuff<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Where Does cPanel Put Things? - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"From http:\/\/www.v-nessa.net\/ (Sexy g33k chicks rock&#8230;) I can think of a few things that are wrong with that title but in all seriousness\u2026don\u2019t you ever wonder where cPanel stores the config changes that you make in WHM? Automation is the key nowadays, and lately that\u2019s required me to get a little down and dirty with... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Shtuff\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:author\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:published_time\" content=\"2009-06-29T01:54:06+00:00\" \/>\n<meta name=\"author\" content=\"g33kadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/drsinger1111\" \/>\n<meta name=\"twitter:site\" content=\"@drsinger1111\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"Where Does cPanel Put Things?\",\"datePublished\":\"2009-06-29T01:54:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/\"},\"wordCount\":398,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"General Info\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/\",\"name\":\"Where Does cPanel Put Things? - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2009-06-29T01:54:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/where-does-cpanel-put-things\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Where Does cPanel Put Things?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\",\"name\":\"Linux Shtuff\",\"description\":\"Because I have CRS Syndrome...\",\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\",\"name\":\"g33kadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"contentUrl\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"width\":512,\"height\":512,\"caption\":\"g33kadmin\"},\"logo\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\"},\"description\":\"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\\\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....\",\"sameAs\":[\"https:\\\/\\\/thelinuxreport.com\",\"https:\\\/\\\/fb.me\\\/g33kinf0\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/drsinger1111\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Where Does cPanel Put Things? - Linux Shtuff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/","og_locale":"en_US","og_type":"article","og_title":"Where Does cPanel Put Things? - Linux Shtuff","og_description":"From http:\/\/www.v-nessa.net\/ (Sexy g33k chicks rock&#8230;) I can think of a few things that are wrong with that title but in all seriousness\u2026don\u2019t you ever wonder where cPanel stores the config changes that you make in WHM? Automation is the key nowadays, and lately that\u2019s required me to get a little down and dirty with... Read More","og_url":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2009-06-29T01:54:06+00:00","author":"g33kadmin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/drsinger1111","twitter_site":"@drsinger1111","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"Where Does cPanel Put Things?","datePublished":"2009-06-29T01:54:06+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/"},"wordCount":398,"commentCount":0,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["General Info"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/","url":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/","name":"Where Does cPanel Put Things? - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2009-06-29T01:54:06+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/where-does-cpanel-put-things\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"Where Does cPanel Put Things?"}]},{"@type":"WebSite","@id":"https:\/\/g33kinfo.com\/info\/#website","url":"https:\/\/g33kinfo.com\/info\/","name":"Linux Shtuff","description":"Because I have CRS Syndrome...","publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/g33kinfo.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547","name":"g33kadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","url":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","contentUrl":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","width":512,"height":512,"caption":"g33kadmin"},"logo":{"@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif"},"description":"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....","sameAs":["https:\/\/thelinuxreport.com","https:\/\/fb.me\/g33kinf0","https:\/\/x.com\/https:\/\/twitter.com\/drsinger1111"]}]}},"_links":{"self":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}