{"id":6671,"date":"2016-06-28T09:47:54","date_gmt":"2016-06-28T07:47:54","guid":{"rendered":"http:\/\/help.superhosting.bg\/en\/?p=6671"},"modified":"2021-11-15T17:06:13","modified_gmt":"2021-11-15T14:06:13","slug":"php-cli-settings-use-custom-ini","status":"publish","type":"ht_kb","link":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html","title":{"rendered":"Using Custom php.ini File for PHP (cli) via SSH"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">While you are working with PHP in&nbsp;command mode, the <strong>php<\/strong>&nbsp;command automatically runs the <a title=\"PHP CLI (Command Line Interface) - Help SuperHosting.BG\" href=\"https:\/\/help.superhosting.bg\/en\/php-cli.html\" target=\"_blank\" rel=\"noopener noreferrer\">PHP CLI<\/a> binary file corresponding to the default PHP version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To view a list with all PHP CLI options, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -h<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To check the current PHP CLI version, you should execute:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image img-border2\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/help.superhosting.bg\/wp-content\/uploads\/images\/2016\/06\/ssh-ea-php-custom-ini-php-version-01-1.png\" alt=\"Check the version of PHP CLI\" class=\"wp-image-15985\"\/><figcaption>Check the version of PHP CLI<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">To see the current php.ini file (which will load every time by default), use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php --ini<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image img-border2\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/help.superhosting.bg\/wp-content\/uploads\/images\/2016\/06\/ssh-ea-php-custom-ini-check-version-loaded-ini-01.png\" alt=\"Check the loaded php.ini file (Loaded Configuration File)\" class=\"wp-image-15983\"\/><figcaption>Check the loaded php.ini file (Loaded Configuration File)<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have not specified another file, PHP CLI will always use the default system php.ini file \/opt\/cpanel\/ea-phpXX\/root\/etc\/php.ini.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If it is necessary to set specific settings for executing a PHP script, you might need to add a&nbsp;<strong>-c<\/strong> option to the command&nbsp;followed by&nbsp;the <strong>custom php.ini file<\/strong>. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -c \/home\/cpuser\/my-custom-php.ini \/home\/cpuser\/public_html\/file.php<\/code><\/pre>\n\n\n\n<p class=\"text-notice wp-block-paragraph\"><strong>\/home\/cpuser\/my-custom-php.ini<\/strong> &#8211; replace the full path and the .ini file name;<br><strong>\/home\/cpuser\/public_html\/file.php<\/strong> &#8211; the file that will be executed;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the custom php.ini file will be used with each PHP command in the console, add a line in the&nbsp;<strong>.bash_profile<\/strong> file so that you do not need to type the file name every next time:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias php='php -c \/home\/cpuser\/my-custom-php.ini'<\/code><\/pre>\n\n\n\n<p class=\"text-notice wp-block-paragraph\">\/home\/cpuser\/my-custom-php.ini &#8211; replace with the full path and the .ini file name;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you wish to work with a different PHP (cli) version, edit the line by changing the binary file path:<\/p>\n\n\n\n<p class=\"text-notice wp-block-paragraph\">alias php=&#8217;\/opt\/cpanel\/<strong>ea-phpXX<\/strong>\/root\/usr\/bin\/php -c \/home\/cpuser\/my-custom-php.ini&#8217;<\/p>\n\n\n\n<p class=\"text-notice wp-block-paragraph\"><strong>ea-phpXX<\/strong> &#8211; replace with the PHP version, for example \/opt\/cpanel\/ea-php72\/root\/usr\/bin\/php;<\/p>\n\n\n\n<div class=\"wp-block-image img-border2\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/help.superhosting.bg\/wp-content\/uploads\/images\/2016\/06\/ssh-ea-php-custom-ini-check-loaded-custom-ini-01-1.png\" alt=\"ini file for PHP directives is loaded\" class=\"wp-image-15989\"\/><figcaption>ini file for PHP directives is loaded<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note<\/strong>: Also, if there are any irregularities in the .ini file such as unsupported directives from older PHP versions, you will get an error message in the console. For example: &#8220;Fatal error: Directive &#8216;allow_call_time_pass_reference&#8217; is no longer available in PHP in Unknown on line 0&#8221;. Make sure that the .ini file&#8217;s content is intended for the current PHP version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To load the ini file with PHP modules, add in .bash_profile file the line:<\/p>\n\n\n\n<p class=\"codetextgray wp-block-paragraph\">export PHP_INI_SCAN_DIR=\/home\/cpuser\/.sh.phpmanager\/<strong>phpXX<\/strong>.d<\/p>\n\n\n\n<p class=\"replacetext2-info wp-block-paragraph\">\/home\/cpuser\/.sh.phpmanager\/phpXX.d &#8211; replace with the path to the ini file directory;<\/p>\n\n\n\n<div class=\"wp-block-image img-border2\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/help.superhosting.bg\/wp-content\/uploads\/images\/2016\/06\/ssh-ea-php-custom-ini-check-loaded-custom-ini-directives-modules-02.png\" alt=\"The two ini files are loaded - my-custom-php.ini for PHP directives and php72.ini for PHP modules\" class=\"wp-image-15993\"\/><figcaption>The two ini files are loaded &#8211; my-custom-php.ini for PHP directives and php72.ini for PHP modules<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If you are logged into the hosting account via SSH, log out and then log in again to activate this setting. You might also use this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source ~\/.bash_profile<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The .bash_profile file settings will load every time you access your hosting account via SSH.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check which .ini file is loaded with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php --ini<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This time the command result should display the custom .ini file in the Loaded Configuration File field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the command line you can set different values for certain PHP directives through the <strong>-d<\/strong>&nbsp;(configuration_directive=value) option. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -c \/home\/cpuser\/php.ini \/home\/cpuser\/file.php -d memory_limit=256M<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">According to the set parameters for script execution, the value for memory_limit will be 256MB.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This article is about: <a class=\"helplinkext\" title=\"Hosting Plans - SuperHosting.BG\" href=\"https:\/\/en.superhosting.bg\/web-hosting-compare-hosting-plans.php\" target=\"_blank\" rel=\"noopener noreferrer\">hosting services<\/a> with <a title=\"Category: cPanel\" href=\"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/cpanel\" target=\"_blank\" rel=\"noopener noreferrer\">cPanel<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While you are working with PHP in\u00a0command mode, the php\u00a0command automatically runs the PHP CLI binary file corresponding to the default PHP version.<\/p>\n","protected":false},"author":11,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"no","footnotes":""},"ht-kb-category":[165],"ht-kb-tag":[],"class_list":["post-6671","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-php"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"While you are working with PHP in command mode, the php command automatically runs the PHP CLI binary file corresponding to the default PHP version.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"SuperHosting.BG\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\n\t\t<link rel=\"shortcut icon\" href=\"https:\/\/help.superhosting.bg\/favicon.ico\" type=\"image\/x-icon\">\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"KnowledgeBase | Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Using Custom php.ini File for PHP (cli) via SSH | KnowledgeBase\" \/>\n\t\t<meta property=\"og:description\" content=\"While you are working with PHP in command mode, the php command automatically runs the PHP CLI binary file corresponding to the default PHP version.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-06-28T07:47:54+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-11-15T14:06:13+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/superhosting\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@superhostingbg\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Using Custom php.ini File for PHP (cli) via SSH | KnowledgeBase\" \/>\n\t\t<meta name=\"twitter:description\" content=\"While you are working with PHP in command mode, the php command automatically runs the PHP CLI binary file corresponding to the default PHP version.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@superhostingbg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en#listItem\",\"position\":1,\"name\":\"\\u041d\\u0430\\u0447\\u0430\\u043b\\u043e\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting#listItem\",\"name\":\"Hosting\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting#listItem\",\"position\":2,\"name\":\"Hosting\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\\\/cpanel#listItem\",\"name\":\"Control Panel cPanel\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en#listItem\",\"name\":\"\\u041d\\u0430\\u0447\\u0430\\u043b\\u043e\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\\\/cpanel#listItem\",\"position\":3,\"name\":\"Control Panel cPanel\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\\\/cpanel\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\\\/php#listItem\",\"name\":\"PHP (general-purpose scripting language)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting#listItem\",\"name\":\"Hosting\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\\\/php#listItem\",\"position\":4,\"name\":\"PHP (general-purpose scripting language)\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\\\/php\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html#listItem\",\"name\":\"Using Custom php.ini File for PHP (cli) via SSH\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\\\/cpanel#listItem\",\"name\":\"Control Panel cPanel\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html#listItem\",\"position\":5,\"name\":\"Using Custom php.ini File for PHP (cli) via SSH\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/linux-hosting\\\/php#listItem\",\"name\":\"PHP (general-purpose scripting language)\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#organization\",\"name\":\"SuperHosting.BG\",\"description\":\"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/SH-LogotypeEN-ScreenOrange-Three-800-01.png\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html\\\/#organizationLogo\",\"width\":800,\"height\":436},\"image\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/superhosting\",\"https:\\\/\\\/www.twitter.com\\\/superhostingbg\",\"https:\\\/\\\/www.instagram.com\\\/superhosting.bg\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/SuperHostingBg\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/superhosting-bg\\\/\",\"https:\\\/\\\/soundcloud.com\\\/user-391462588-865926075\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh\",\"name\":\"SuperHosting.BG\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/683660949ad414a662f6e9a0f0a838730e361a5074126878ae6e3039b1110cfa?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"SuperHosting.BG\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html#webpage\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html\",\"name\":\"Using Custom php.ini File for PHP (cli) via SSH | KnowledgeBase\",\"description\":\"While you are working with PHP in command mode, the php command automatically runs the PHP CLI binary file corresponding to the default PHP version.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/php-cli-settings-use-custom-ini.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\"},\"datePublished\":\"2016-06-28T09:47:54+03:00\",\"dateModified\":\"2021-11-15T17:06:13+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/\",\"name\":\"\\u041f\\u043e\\u043c\\u043e\\u0449\\u043d\\u0430 \\u0441\\u0442\\u0440\\u0430\\u043d\\u0438\\u0446\\u0430\",\"description\":\"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Using Custom php.ini File for PHP (cli) via SSH | KnowledgeBase","description":"While you are working with PHP in command mode, the php command automatically runs the PHP CLI binary file corresponding to the default PHP version.","canonical_url":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":"&lt;link rel=\"shortcut icon\" href=\"https:\/\/help.superhosting.bg\/favicon.ico\" type=\"image\/x-icon\"&gt;"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en#listItem","position":1,"name":"\u041d\u0430\u0447\u0430\u043b\u043e","item":"https:\/\/help.superhosting.bg\/en","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting#listItem","name":"Hosting"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting#listItem","position":2,"name":"Hosting","item":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/cpanel#listItem","name":"Control Panel cPanel"},"previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en#listItem","name":"\u041d\u0430\u0447\u0430\u043b\u043e"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/cpanel#listItem","position":3,"name":"Control Panel cPanel","item":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/cpanel","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/php#listItem","name":"PHP (general-purpose scripting language)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting#listItem","name":"Hosting"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/php#listItem","position":4,"name":"PHP (general-purpose scripting language)","item":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/php","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html#listItem","name":"Using Custom php.ini File for PHP (cli) via SSH"},"previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/cpanel#listItem","name":"Control Panel cPanel"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html#listItem","position":5,"name":"Using Custom php.ini File for PHP (cli) via SSH","previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/linux-hosting\/php#listItem","name":"PHP (general-purpose scripting language)"}}]},{"@type":"Organization","@id":"https:\/\/help.superhosting.bg\/en\/#organization","name":"SuperHosting.BG","description":"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","url":"https:\/\/help.superhosting.bg\/en\/","logo":{"@type":"ImageObject","url":"https:\/\/help.superhosting.bg\/wp-content\/uploads\/2021\/01\/SH-LogotypeEN-ScreenOrange-Three-800-01.png","@id":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html\/#organizationLogo","width":800,"height":436},"image":{"@id":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/superhosting","https:\/\/www.twitter.com\/superhostingbg","https:\/\/www.instagram.com\/superhosting.bg","https:\/\/www.youtube.com\/user\/SuperHostingBg","https:\/\/www.linkedin.com\/company\/superhosting-bg\/","https:\/\/soundcloud.com\/user-391462588-865926075"]},{"@type":"Person","@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author","url":"https:\/\/help.superhosting.bg\/en\/author\/authorsh","name":"SuperHosting.BG","image":{"@type":"ImageObject","@id":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/683660949ad414a662f6e9a0f0a838730e361a5074126878ae6e3039b1110cfa?s=96&d=mm&r=g","width":96,"height":96,"caption":"SuperHosting.BG"}},{"@type":"WebPage","@id":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html#webpage","url":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html","name":"Using Custom php.ini File for PHP (cli) via SSH | KnowledgeBase","description":"While you are working with PHP in command mode, the php command automatically runs the PHP CLI binary file corresponding to the default PHP version.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/help.superhosting.bg\/en\/#website"},"breadcrumb":{"@id":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html#breadcrumblist"},"author":{"@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author"},"creator":{"@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author"},"datePublished":"2016-06-28T09:47:54+03:00","dateModified":"2021-11-15T17:06:13+03:00"},{"@type":"WebSite","@id":"https:\/\/help.superhosting.bg\/en\/#website","url":"https:\/\/help.superhosting.bg\/en\/","name":"\u041f\u043e\u043c\u043e\u0449\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","description":"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","inLanguage":"en-US","publisher":{"@id":"https:\/\/help.superhosting.bg\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"KnowledgeBase | Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","og:type":"article","og:title":"Using Custom php.ini File for PHP (cli) via SSH | KnowledgeBase","og:description":"While you are working with PHP in command mode, the php command automatically runs the PHP CLI binary file corresponding to the default PHP version.","og:url":"https:\/\/help.superhosting.bg\/en\/php-cli-settings-use-custom-ini.html","article:published_time":"2016-06-28T07:47:54+00:00","article:modified_time":"2021-11-15T14:06:13+00:00","article:publisher":"https:\/\/www.facebook.com\/superhosting","twitter:card":"summary","twitter:site":"@superhostingbg","twitter:title":"Using Custom php.ini File for PHP (cli) via SSH | KnowledgeBase","twitter:description":"While you are working with PHP in command mode, the php command automatically runs the PHP CLI binary file corresponding to the default PHP version.","twitter:creator":"@superhostingbg"},"aioseo_meta_data":{"post_id":"6671","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":{"id":"aioseo-web-page-6345be0c1e41f","slug":"web-page","graphName":"WebPage","label":"Web Page","properties":{"type":"WebPage","name":"","description":""}}},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":0,"ai":null,"created":"2021-01-28 14:11:55","updated":"2022-10-11 19:03:40","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/6671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/comments?post=6671"}],"version-history":[{"count":2,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/6671\/revisions"}],"predecessor-version":[{"id":28336,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/6671\/revisions\/28336"}],"wp:attachment":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/media?parent=6671"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb-category?post=6671"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=6671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}