{"id":8463,"date":"2022-09-02T11:22:24","date_gmt":"2022-09-02T11:22:24","guid":{"rendered":"https:\/\/clustercs.com\/kb\/?docs=docly-documentation\/server-setup\/configuration\/adding-custom-php-modules"},"modified":"2022-09-02T14:45:57","modified_gmt":"2022-09-02T14:45:57","slug":"adding-custom-php-modules","status":"publish","type":"docs","link":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/","title":{"rendered":"Adding custom PHP modules"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>You can install custom PHP modules to your existing ClusterCS setup in two ways:<\/p>\n\n\n\n<p>1. Using pecl, by using the executable found in all PHP version installs:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>\/opt\/php-VERSION\/bin\/pecl install \u201cmodule\u201d<\/code><\/pre>\n\n\n\n<p>2. Compiling the module manually \u2013 usually done by running four commands after downloading and unzipping the package (Please follow the instructions provided by the module\u2019s author if possible):<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>\/opt\/php-VERSION\/bin\/phpize\r\n.\/configure \u2013with-php-config=\/opt\/php-VERSION\/bin\/php-config\r\nmake\r\nmake install<\/code><\/pre>\n\n\n\n<p>After installing the module, add it to the current configuration by creating a new file in:\u00a0<strong>\/opt\/php-VERSION\/etc\/conf.d\/extra-modules.ini<\/strong>\u00a0and add a new line:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>extension=module-name.so<\/code><\/pre>\n\n\n\n<p>Reload \/ Restart the services depending on your setup:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>service nginx restart\r\nservice httpd reload\r\nservice php-fpm restart<\/code><\/pre>\n\n\n\n<p>* Replace\u00a0<strong>VERSION<\/strong>\u00a0with the PHP version you are working on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can install custom PHP modules to your existing ClusterCS setup in two ways: 1. Using pecl, by using the executable found in all PHP version installs: 2. Compiling the module manually \u2013 usually done by running four commands after downloading and unzipping the package (Please follow the instructions provided by the module\u2019s author if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8462,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-8463","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding custom PHP modules - ClusterCS Knowledge Base<\/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:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding custom PHP modules - ClusterCS Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"You can install custom PHP modules to your existing ClusterCS setup in two ways: 1. Using pecl, by using the executable found in all PHP version installs: 2. Compiling the module manually \u2013 usually done by running four commands after downloading and unzipping the package (Please follow the instructions provided by the module\u2019s author if [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/\" \/>\n<meta property=\"og:site_name\" content=\"ClusterCS Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-02T14:45:57+00:00\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/\",\"url\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/\",\"name\":\"Adding custom PHP modules - ClusterCS Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/clustercs.com\/kb\/#website\"},\"datePublished\":\"2022-09-02T11:22:24+00:00\",\"dateModified\":\"2022-09-02T14:45:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/clustercs.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ClusterCS Documentation\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Server Setup\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Configuration\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Adding custom PHP modules\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/clustercs.com\/kb\/#website\",\"url\":\"https:\/\/clustercs.com\/kb\/\",\"name\":\"ClusterCS Knowledge Base\",\"description\":\"Welcome to ClusterCS Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/clustercs.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding custom PHP modules - ClusterCS Knowledge Base","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:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/","og_locale":"en_US","og_type":"article","og_title":"Adding custom PHP modules - ClusterCS Knowledge Base","og_description":"You can install custom PHP modules to your existing ClusterCS setup in two ways: 1. Using pecl, by using the executable found in all PHP version installs: 2. Compiling the module manually \u2013 usually done by running four commands after downloading and unzipping the package (Please follow the instructions provided by the module\u2019s author if [&hellip;]","og_url":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/","og_site_name":"ClusterCS Knowledge Base","article_modified_time":"2022-09-02T14:45:57+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/","url":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/","name":"Adding custom PHP modules - ClusterCS Knowledge Base","isPartOf":{"@id":"https:\/\/clustercs.com\/kb\/#website"},"datePublished":"2022-09-02T11:22:24+00:00","dateModified":"2022-09-02T14:45:57+00:00","breadcrumb":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/adding-custom-php-modules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/clustercs.com\/kb\/"},{"@type":"ListItem","position":2,"name":"ClusterCS Documentation","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/"},{"@type":"ListItem","position":3,"name":"Server Setup","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/"},{"@type":"ListItem","position":4,"name":"Configuration","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/server-setup\/configuration\/"},{"@type":"ListItem","position":5,"name":"Adding custom PHP modules"}]},{"@type":"WebSite","@id":"https:\/\/clustercs.com\/kb\/#website","url":"https:\/\/clustercs.com\/kb\/","name":"ClusterCS Knowledge Base","description":"Welcome to ClusterCS Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clustercs.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/comments?post=8463"}],"version-history":[{"count":2,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8463\/revisions"}],"predecessor-version":[{"id":8613,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8463\/revisions\/8613"}],"up":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8462"}],"wp:attachment":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/media?parent=8463"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=8463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}