{"id":9187,"date":"2023-12-27T14:07:46","date_gmt":"2023-12-27T14:07:46","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=ht_kb&#038;p=9187"},"modified":"2024-09-20T11:14:03","modified_gmt":"2024-09-20T11:14:03","password":"","slug":"cwp-roundcube-internal-server-error","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/","title":{"rendered":"How to fix CWP RoundCube Internal Server Error"},"content":{"rendered":"\n<p>You may get &#8220;Internal Server Error&#8221; when accessing your emails on CWP. In this guide, we will look at potential fixes for this error.<\/p>\n\n\n\n<p>We may get the cause(s) of this error by looking at the error logs mainly concerned with emails and RoundCube.<\/p>\n\n\n\n<p>Run the following commands to read the logs on the VPS via SSH terminal:<\/p>\n\n\n\n<p><code>tail \/usr\/local\/cwpsrv\/var\/services\/roundcube\/logs\/errors.log<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"927\" height=\"88\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91.png\" alt=\"\" class=\"wp-image-14054\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91.png 927w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91-300x28.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91-768x73.png 768w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/figure>\n\n\n\n<p><code><br>tail \/var\/log\/dovecot.log<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"129\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-92-1024x129.png\" alt=\"\" class=\"wp-image-14055\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-92-1024x129.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-92-300x38.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-92-768x97.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-92.png 1071w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<p><strong>Updates<\/strong><\/p>\n\n\n\n<p>Ensure you have the latest version of CWP and RoundCube. <\/p>\n\n\n\n<p>Run the following script to update CWP:<\/p>\n\n\n\n<p><code>sh \/scripts\/update_cwp<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"499\" height=\"393\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-93.png\" alt=\"\" class=\"wp-image-14056\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-93.png 499w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-93-300x236.png 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<p>Run the following script to update RoundCube:<\/p>\n\n\n\n<p><code>sh \/scripts\/mail_roundcube_update<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"860\" height=\"186\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-94.png\" alt=\"\" class=\"wp-image-14057\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-94.png 860w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-94-300x65.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-94-768x166.png 768w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/figure>\n\n\n\n<p>Reboot the server after updating RoundCube and CWP.<\/p>\n\n\n\n<p><strong>Permissions<\/strong><\/p>\n\n\n\n<p>RoundCube may be lacking sufficient permissions to read and write email files and folders. <\/p>\n\n\n\n<p>Run this command to fix the mail permissions:<\/p>\n\n\n\n<p><code>sh \/scripts\/cwp_api account mail_fix_permissions<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<p>Check and see if the issue has been fixed after running the above command.<\/p>\n\n\n\n<p>To fix the email files and folders permissions and ownership, execute the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown vmail.mail \/var\/vmail\nchmod 770 \/var\/vmail<\/code><\/pre>\n\n\n\n<p>These are the potential fixes to the error. Always check the error log to get the cause of the problem as it will guide you on how to fix it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may get &#8220;Internal Server Error&#8221; when accessing your emails on CWP. In this guide, we will look at potential fixes for this error. We may get the cause(s) of this error by looking at the error logs mainly concerned with emails and RoundCube. Run the following commands to read the logs on the VPS [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[2120],"doc_tag":[],"class_list":["post-9187","docs","type-docs","status-publish","hentry","doc_category-cwp-panel"],"year_month":"2026-06","word_count":213,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Ian M","author_nicename":"ian","author_url":"https:\/\/truehost.com\/support\/author\/ian\/"},"doc_category_info":[{"term_name":"CWP Panel","term_url":"https:\/\/truehost.com\/support\/docs-category\/cwp-panel\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to fix CWP RoundCube Internal Server Error -<\/title>\n<meta name=\"description\" content=\"You may get &quot;Internal Server Error&quot; when accessing your emails on CWP. In this guide, we will look at potential fixes for this error.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fix CWP RoundCube Internal Server Error -\" \/>\n<meta property=\"og:description\" content=\"You may get &quot;Internal Server Error&quot; when accessing your emails on CWP. In this guide, we will look at potential fixes for this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-20T11:14:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/cwp-roundcube-internal-server-error\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/cwp-roundcube-internal-server-error\\\/\",\"name\":\"How to fix CWP RoundCube Internal Server Error -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/cwp-roundcube-internal-server-error\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/cwp-roundcube-internal-server-error\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/image-91.png\",\"datePublished\":\"2023-12-27T14:07:46+00:00\",\"dateModified\":\"2024-09-20T11:14:03+00:00\",\"description\":\"You may get \\\"Internal Server Error\\\" when accessing your emails on CWP. In this guide, we will look at potential fixes for this error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/cwp-roundcube-internal-server-error\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/cwp-roundcube-internal-server-error\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/cwp-roundcube-internal-server-error\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/image-91.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/image-91.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/cwp-roundcube-internal-server-error\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fix CWP RoundCube Internal Server Error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fix CWP RoundCube Internal Server Error -","description":"You may get \"Internal Server Error\" when accessing your emails on CWP. In this guide, we will look at potential fixes for this error.","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:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/","og_locale":"en_US","og_type":"article","og_title":"How to fix CWP RoundCube Internal Server Error -","og_description":"You may get \"Internal Server Error\" when accessing your emails on CWP. In this guide, we will look at potential fixes for this error.","og_url":"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/","article_modified_time":"2024-09-20T11:14:03+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/","url":"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/","name":"How to fix CWP RoundCube Internal Server Error -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/#primaryimage"},"image":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91.png","datePublished":"2023-12-27T14:07:46+00:00","dateModified":"2024-09-20T11:14:03+00:00","description":"You may get \"Internal Server Error\" when accessing your emails on CWP. In this guide, we will look at potential fixes for this error.","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/image-91.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/cwp-roundcube-internal-server-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to fix CWP RoundCube Internal Server Error"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/9187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=9187"}],"version-history":[{"count":8,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/9187\/revisions"}],"predecessor-version":[{"id":14058,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/9187\/revisions\/14058"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=9187"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=9187"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=9187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}