{"id":231,"date":"2011-11-08T14:39:05","date_gmt":"2011-11-08T14:39:05","guid":{"rendered":"https:\/\/www.uk-cheapest.co.uk\/support\/?p=231"},"modified":"2011-12-09T15:26:46","modified_gmt":"2011-12-09T15:26:46","slug":"plesk-9-enable-php-pear-for-a-domain","status":"publish","type":"post","link":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/","title":{"rendered":"Plesk 9 &#8211; Enable PHP Pear for a domain"},"content":{"rendered":"<p>Re: How to enable PHP Pear for a domain in Plesk<\/p>\n<p>1) edit vhost.conf as such:<\/p>\n<pre>&lt;Directory \/var\/www\/vhosts\/domain.com\/httpdocs&gt;\r\n        php_admin_value include_path \"\/var\/www\/vhosts\/domain.com\/httpdocs\/:\/usr\/share\/pear\/\"\r\n        php_admin_value open_basedir \"none\"\r\n&lt;\/Directory&gt;<\/pre>\n<p>2)\u00a0\/usr\/local\/psa\/admin\/sbin\/websrvmng &#8211; -reconfigure-vhost &#8211;vhost-name=domain.com<\/p>\n<p>3) service httpd restart<\/p>\n<p>To test pear, create a php file, eg check_pear.php<\/p>\n<pre>&lt;?php\r\nrequire_once 'System.php';\r\nvar_dump(class_exists('System', false));\r\n?&gt;<\/pre>\n<p>4) open check_pear.php in a browser, a &#8216;true&#8217; result confirms pear is working:<\/p>\n<p>bool(true)<\/p>\n<p>That&#8217;s all there is to getting PEAR working on Plesk 9 Linux.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Re: How to enable PHP Pear for a domain in Plesk 1) edit vhost.conf as such: &lt;Directory \/var\/www\/vhosts\/domain.com\/httpdocs&gt; php_admin_value include_path &#8220;\/var\/www\/vhosts\/domain.com\/httpdocs\/:\/usr\/share\/pear\/&#8221; php_admin_value open_basedir &#8220;none&#8221; &lt;\/Directory&gt; 2)\u00a0\/usr\/local\/psa\/admin\/sbin\/websrvmng &#8211; -reconfigure-vhost &#8211;vhost-name=domain.com 3) service httpd restart To test pear, create a php file, eg check_pear.php &lt;?php require_once &#8216;System.php&#8217;; var_dump(class_exists(&#8216;System&#8217;, false)); ?&gt; 4) open check_pear.php in a browser, a &#8230; <a title=\"Plesk 9 &#8211; Enable PHP Pear for a domain\" class=\"read-more\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/\" aria-label=\"Read more about Plesk 9 &#8211; Enable PHP Pear for a domain\">Read more&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"generate_page_header":"","footnotes":""},"categories":[166],"tags":[230,83,73],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-pear","tag-php-2","tag-php-ini"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Plesk 9 - Enable PHP Pear for a domain - UK-Cheapest.co.uk<\/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:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Plesk 9 - Enable PHP Pear for a domain - UK-Cheapest.co.uk\" \/>\n<meta property=\"og:description\" content=\"Re: How to enable PHP Pear for a domain in Plesk 1) edit vhost.conf as such: &lt;Directory \/var\/www\/vhosts\/domain.com\/httpdocs&gt; php_admin_value include_path &quot;\/var\/www\/vhosts\/domain.com\/httpdocs\/:\/usr\/share\/pear\/&quot; php_admin_value open_basedir &quot;none&quot; &lt;\/Directory&gt; 2)\u00a0\/usr\/local\/psa\/admin\/sbin\/websrvmng &#8211; -reconfigure-vhost &#8211;vhost-name=domain.com 3) service httpd restart To test pear, create a php file, eg check_pear.php &lt;?php require_once &#039;System.php&#039;; var_dump(class_exists(&#039;System&#039;, false)); ?&gt; 4) open check_pear.php in a browser, a ... Read more...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/\" \/>\n<meta property=\"og:site_name\" content=\"UK-Cheapest.co.uk\" \/>\n<meta property=\"article:published_time\" content=\"2011-11-08T14:39:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-12-09T15:26:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/IMG_3064.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"439\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:site\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/person\\\/edbb499d8be140bda5662168e10fa4e3\"},\"headline\":\"Plesk 9 &#8211; Enable PHP Pear for a domain\",\"datePublished\":\"2011-11-08T14:39:05+00:00\",\"dateModified\":\"2011-12-09T15:26:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/\"},\"wordCount\":76,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\"},\"keywords\":[\"pear\",\"php\",\"php.ini\"],\"articleSection\":[\"Dedicated Servers\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/\",\"name\":\"Plesk 9 - Enable PHP Pear for a domain - UK-Cheapest.co.uk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#website\"},\"datePublished\":\"2011-11-08T14:39:05+00:00\",\"dateModified\":\"2011-12-09T15:26:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/plesk-9-enable-php-pear-for-a-domain\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"UK-Cheapest.co.uk\",\"item\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Plesk 9 &#8211; Enable PHP Pear for a domain\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\",\"name\":\"UK-Cheapest.co.uk\",\"description\":\"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\",\"name\":\"UKC\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screenshot-2023-12-14-at-17.40.07.png\",\"contentUrl\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screenshot-2023-12-14-at-17.40.07.png\",\"width\":217,\"height\":55,\"caption\":\"UKC\"},\"image\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/ukchelpdesk\",\"https:\\\/\\\/www.instagram.com\\\/ukc_hosting\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/person\\\/edbb499d8be140bda5662168e10fa4e3\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cdefab102d42c458c99b6ba79ec8fe969dc4c83f5ee9c082932299731b75f1ed?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cdefab102d42c458c99b6ba79ec8fe969dc4c83f5ee9c082932299731b75f1ed?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cdefab102d42c458c99b6ba79ec8fe969dc4c83f5ee9c082932299731b75f1ed?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Plesk 9 - Enable PHP Pear for a domain - UK-Cheapest.co.uk","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.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/","og_locale":"en_GB","og_type":"article","og_title":"Plesk 9 - Enable PHP Pear for a domain - UK-Cheapest.co.uk","og_description":"Re: How to enable PHP Pear for a domain in Plesk 1) edit vhost.conf as such: &lt;Directory \/var\/www\/vhosts\/domain.com\/httpdocs&gt; php_admin_value include_path \"\/var\/www\/vhosts\/domain.com\/httpdocs\/:\/usr\/share\/pear\/\" php_admin_value open_basedir \"none\" &lt;\/Directory&gt; 2)\u00a0\/usr\/local\/psa\/admin\/sbin\/websrvmng &#8211; -reconfigure-vhost &#8211;vhost-name=domain.com 3) service httpd restart To test pear, create a php file, eg check_pear.php &lt;?php require_once 'System.php'; var_dump(class_exists('System', false)); ?&gt; 4) open check_pear.php in a browser, a ... Read more...","og_url":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/","og_site_name":"UK-Cheapest.co.uk","article_published_time":"2011-11-08T14:39:05+00:00","article_modified_time":"2011-12-09T15:26:46+00:00","og_image":[{"width":768,"height":439,"url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/IMG_3064.jpeg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@ukchelpdesk","twitter_site":"@ukchelpdesk","twitter_misc":{"Written by":"admin","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/#article","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/"},"author":{"name":"admin","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/edbb499d8be140bda5662168e10fa4e3"},"headline":"Plesk 9 &#8211; Enable PHP Pear for a domain","datePublished":"2011-11-08T14:39:05+00:00","dateModified":"2011-12-09T15:26:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/"},"wordCount":76,"commentCount":0,"publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"keywords":["pear","php","php.ini"],"articleSection":["Dedicated Servers"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/","name":"Plesk 9 - Enable PHP Pear for a domain - UK-Cheapest.co.uk","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website"},"datePublished":"2011-11-08T14:39:05+00:00","dateModified":"2011-12-09T15:26:46+00:00","breadcrumb":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/plesk-9-enable-php-pear-for-a-domain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"UK-Cheapest.co.uk","item":"https:\/\/www.uk-cheapest.co.uk\/support\/"},{"@type":"ListItem","position":2,"name":"Plesk 9 &#8211; Enable PHP Pear for a domain"}]},{"@type":"WebSite","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","name":"UK-Cheapest.co.uk","description":"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security","publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization","name":"UKC","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","width":217,"height":55,"caption":"UKC"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ukchelpdesk","https:\/\/www.instagram.com\/ukc_hosting\/"]},{"@type":"Person","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/edbb499d8be140bda5662168e10fa4e3","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/cdefab102d42c458c99b6ba79ec8fe969dc4c83f5ee9c082932299731b75f1ed?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cdefab102d42c458c99b6ba79ec8fe969dc4c83f5ee9c082932299731b75f1ed?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cdefab102d42c458c99b6ba79ec8fe969dc4c83f5ee9c082932299731b75f1ed?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.uk-cheapest.co.uk\/support\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":3,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":1153,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/231\/revisions\/1153"}],"wp:attachment":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}