{"id":296,"date":"2021-06-23T12:28:33","date_gmt":"2021-06-23T12:28:33","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=296"},"modified":"2026-01-22T06:18:11","modified_gmt":"2026-01-22T12:18:11","slug":"how-to-fix-sendy-installation-mod-rewrite-error","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/","title":{"rendered":"How to fix sendy installation mod rewrite error?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Sendy Installation Mod_Rewrite Error<\/h2>\n\n\n\n<p>You may be getting a warning regarding the Apache module mod_rewrite not enabled when preparing to setup Sendy installation. Mod_Rewrite is enabled on <a href=\"https:\/\/www.knownhost.com\/\">Knownhost servers<\/a> by default.<\/p>\n\n\n\n<p>You can check as root via SSH using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  httpd -M | grep -i rewrite<\/code><\/pre>\n\n\n\n<p>You can also confirm this by adding a redirect to google.com in your sendy .htaccess file and then testing with curl to ensure that the redirect works.<\/p>\n\n\n\n<p>First, edit the Sendy .htaccess file like below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#91;\/home\/user\/public_html]# cat sendy\/.htaccess\n  RewriteEngine On\n  RewriteCond %{SERVER_PORT} 80\n  RewriteRule ^(.*)$ https:\/\/google.com\/$1 &#91;R,L]\n  root@host &#91;\/home\/user\/public_html]#<\/code><\/pre>\n\n\n\n<p>Then use curl to test that the redirect works:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  &#91;root]$ curl -Il domain.com\/sendy\/\n  HTTP\/1.1 302 Found\n  Date: Fri, 03 May 2019 05:44:57 GMT\n  Server: Apache\n  Location: https:\/\/google.com\/\n  Content-Type: text\/html; charset=iso-8859-1\n  &#91;root]$ <\/code><\/pre>\n\n\n\n<p>As you can see, it does, so this means that the reported error is ironically erroneous itself.<\/p>\n\n\n\n<p>The issue here is that for some reason, it seems that Sendy wrote their compatibility script to rely on the server using DSO as the PHP Handler. LSAPI is now available and a more efficient PHP Handler, so we may start to see this error more frequently.<\/p>\n\n\n\n<p>As stated via <a href=\"https:\/\/github.com\/nette\/examples\/issues\/17\">this nette issue<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function apache_get_modules is used to detect mod_rewrite, but this is not reliable way, \nbecause this works only when PHP is installed as an Apache module.\nSo it doesn't work with fastCGI, FPM or nginx configurations<\/code><\/pre>\n\n\n\n<p>This is also true with LSAPI configurations.<\/p>\n\n\n\n<p>The following software completely removed the check since it would fail: \u2014&nbsp;<a href=\"https:\/\/github.com\/octobercms\/october\/issues\/3673\">octobercms github issue<\/a><\/p>\n\n\n\n<p>If you were to write a <a href=\"https:\/\/www.knownhost.com\/php-hosting\">PHP<\/a> script to test, the module will show as undefined in your configuration if you are using LSAPI, FCGI, suPHP, CGI, or PHP-FPM instead of DSO:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#91;\/home\/user\/public_html]# tail error_log\n  &#91;03-May-2019 10:59:22 Asia\/Karachi] PHP Fatal error:  Call to undefined function apache_get_modules() in \n    \/home\/user\/public_html\/test1.php on line 2\n  \n  &#91;03-May-2019 11:00:39 Asia\/Karachi] PHP Fatal error:  Call to undefined function apache_get_modules() in \n    Command line code on line 1\n    \n  &#91;03-May-2019 11:01:24 Asia\/Karachi] PHP Fatal error:  Call to undefined function apache_get_modules() in \n    Command line code on line 1\n  \n  &#91;03-May-2019 11:05:56 Asia\/Karachi] PHP Fatal error:  Call to undefined function apache_get_modules() in \n    Command line code on line 1\n    \n  root@host &#91;\/home\/user\/public_html]#<\/code><\/pre>\n\n\n\n<p>You can check your PHP handlers on <a href=\"https:\/\/www.knownhost.com\/cpanel\">cPanel<\/a> using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  \/usr\/local\/cpanel\/bin\/rebuild_phpconf --current<\/code><\/pre>\n\n\n\n<p>With DirectAdmin, use the following to print the versions and their handlers as set in the options.conf:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  grep 'php&#91;1\/2\/3\/4]' \/usr\/local\/directadmin\/custombuild\/options.conf<\/code><\/pre>\n\n\n\n<p>Regarding Sendy, please see their response:&nbsp;<a href=\"https:\/\/sendy.co\/forum\/discussion\/1632\/how-important-is-mod-rewrite\/p1\">How important is mod rewrite?<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>Hi @lewis,<\/p>\n\n\n\n<p>If you&#8217;re able to login without getting a 404 error, you have mod_rewrite enabled. You don&#8217;t have to worry about it.<\/p>\n\n\n\n<p>The reason why the mod_rewrite is yellow instead of red in your compatibility checklist is because mod_rewrite cannot be detected on some hosts. But that does not mean you don&#8217;t have mod_rewrite enabled.<\/p>\n\n\n\n<p>mod_rewrite is needed to rewrite URLs so that they don&#8217;t need the .php extension appended in URLs (also known as &#8216;pretty URLs&#8217;).<\/p>\n\n\n\n<p>If you&#8217;re able to login and use Sendy without issues or 404 errors, you have mod_rewrite enabled and don&#8217;t have to worry about it being labelled yellow in your compatibility checklist.<\/p>\n\n\n\n<p>Thanks.<\/p>\n\n\n\n<p>Best regards,<\/p>\n\n\n\n<p>Ben<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>So, the issue doesn&#8217;t appear to be the Mod_Rewrite module as suggested, but rather a logical error in the way Sendy checks for the module as previously described. The conclusion here is that you are safe to proceed with installing Sendy despite this warning.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sendy Installation Mod_Rewrite Error You may be getting a warning regarding the Apache module mod_rewrite not enabled when preparing to setup Sendy installation. Mod_Rewrite is enabled on Knownhost servers by default. You can check as root via SSH using the following command: You can also confirm this by adding a redirect to google.com in your [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[242,238,123,243,125],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-common-issues","tag-dedi","tag-htaccess","tag-linux","tag-sendy","tag-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to fix sendy installation mod rewrite error? - KnownHost<\/title>\n<meta name=\"description\" content=\"In this guide, we will teach you about sendy installation and how to fix the mod rewrite errors on VPS and Dedi servers.\" \/>\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.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-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 sendy installation mod rewrite error? - KnownHost\" \/>\n<meta property=\"og:description\" content=\"In this guide, we will teach you about sendy installation and how to fix the mod rewrite errors on VPS and Dedi servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-23T12:28:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-22T12:18:11+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"How to fix sendy installation mod rewrite error?\",\"datePublished\":\"2021-06-23T12:28:33+00:00\",\"dateModified\":\"2026-01-22T12:18:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/\"},\"wordCount\":426,\"commentCount\":0,\"keywords\":[\"dedi\",\"htaccess\",\"linux\",\"sendy\",\"vps\"],\"articleSection\":[\"Common Issues\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/\",\"url\":\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/\",\"name\":\"How to fix sendy installation mod rewrite error? - KnownHost\",\"isPartOf\":{\"@id\":\"https:\/\/www.knownhost.com\/kb\/#website\"},\"datePublished\":\"2021-06-23T12:28:33+00:00\",\"dateModified\":\"2026-01-22T12:18:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"In this guide, we will teach you about sendy installation and how to fix the mod rewrite errors on VPS and Dedi servers.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.knownhost.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fix sendy installation mod rewrite error?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.knownhost.com\/kb\/#website\",\"url\":\"https:\/\/www.knownhost.com\/kb\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\/\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fix sendy installation mod rewrite error? - KnownHost","description":"In this guide, we will teach you about sendy installation and how to fix the mod rewrite errors on VPS and Dedi servers.","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.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/","og_locale":"en_US","og_type":"article","og_title":"How to fix sendy installation mod rewrite error? - KnownHost","og_description":"In this guide, we will teach you about sendy installation and how to fix the mod rewrite errors on VPS and Dedi servers.","og_url":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/","og_site_name":"KnownHost","article_published_time":"2021-06-23T12:28:33+00:00","article_modified_time":"2026-01-22T12:18:11+00:00","author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"How to fix sendy installation mod rewrite error?","datePublished":"2021-06-23T12:28:33+00:00","dateModified":"2026-01-22T12:18:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/"},"wordCount":426,"commentCount":0,"keywords":["dedi","htaccess","linux","sendy","vps"],"articleSection":["Common Issues"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/","url":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/","name":"How to fix sendy installation mod rewrite error? - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2021-06-23T12:28:33+00:00","dateModified":"2026-01-22T12:18:11+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"In this guide, we will teach you about sendy installation and how to fix the mod rewrite errors on VPS and Dedi servers.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-to-fix-sendy-installation-mod-rewrite-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to fix sendy installation mod rewrite error?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":1,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":7998,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/296\/revisions\/7998"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}