{"id":7416,"date":"2026-08-20T18:35:06","date_gmt":"2026-08-20T16:35:06","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=7416"},"modified":"2026-08-20T18:39:44","modified_gmt":"2026-08-20T16:39:44","slug":"php-selektor","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/php-selektor\/","title":{"rendered":"PHP version (PHP selector) in WHSPanel"},"content":{"rendered":"<p>The PHP selector allows you to select the PHP version for each domain separately and fine-tune the PHP limits (php.ini). All options appear only when you choose a domain, because the settings are valid independently for each site on your account.<\/p>\n\n<h2>1. Choose a domain<\/h2>\n<p>Open in the menu <strong>Software<\/strong> well <strong>PHP<\/strong>. In the field <strong>Domain<\/strong> select the site you are changing PHP to. Only then will all options for that domain open: current version, version selection and php.ini settings.<\/p>\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac31cee39af9&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac31cee39af9\" class=\"wp-block-image size-large wp-lightbox-container\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"988\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/sw-php-a2-1024x988.avif\" alt=\"PHP selektor u WHSPanelu\" class=\"wp-image-7516\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/sw-php-a2-1024x988.avif 1024w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/sw-php-a2-300x289.avif 300w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/sw-php-a2-768x741.avif 768w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/sw-php-a2-1536x1482.avif 1536w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/sw-php-a2-2048x1975.avif 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-block-image__caption\">Choice of PHP version and extensions by domain.<\/figcaption><\/figure>\n\n\n<h2>2. Choosing a PHP version<\/h2>\n<p>It says at the top <strong>Current PHP version<\/strong>. &quot;Legacy&quot; means that the domain uses the default server version. Below you select the version from the offer (for example PHP 8.1 to 8.5):<\/p>\n<ul>\n<li><strong>Green versions (8.x)<\/strong> are actively maintained and receive security updates. For new sites use them.<\/li>\n<li>Older versions are only there for compatibility with legacy applications and are not recommended.<\/li>\n<\/ul>\n<p>Click on the desired version and <strong>Save PHP settings<\/strong>. The change takes effect immediately, without restarting the web server.<\/p>\n\n<h2>3. PHP settings (php.ini)<\/h2>\n<p>In the work <strong>PHP settings<\/strong> you change the usual PHP limits for that domain. They are stored in <code>.user.ini<\/code> file in the document root and apply in a few minutes.<\/p>\n<table>\n<thead><tr><th>Option<\/th><th>What does it do?<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><strong>Memory limit<\/strong> (<code>memory_limit<\/code>)<\/td><td>How much memory one PHP request can use (16 to 4096 MB). Heavy sites (WooCommerce, big plugins) ask for more.<\/td><\/tr>\n<tr><td><strong>Max. the size of the uploaded file<\/strong> (<code>upload_max_filesize<\/code>)<\/td><td>The largest file that can be uploaded (1 to 2048 MB). Zoom in for large images, video or import.<\/td><\/tr>\n<tr><td><strong>Max POST size<\/strong> (<code>post_max_size<\/code>)<\/td><td>The largest amount of data in one form submission. It should be greater than or equal to the upload size.<\/td><\/tr>\n<tr><td><strong>Max execution time<\/strong> (<code>max_execution_time<\/code>)<\/td><td>How many seconds the script can run before terminating (5 to 600 s).<\/td><\/tr>\n<tr><td><strong>Max input time<\/strong> (<code>max_input_time<\/code>)<\/td><td>How many seconds PHP is allowed to read input data.<\/td><\/tr>\n<tr><td><strong>Max. number of input variables<\/strong> (<code>max_input_vars<\/code>)<\/td><td>How many fields one form can send (256 to 100000). Essential for large forms and themes.<\/td><\/tr>\n<tr><td><strong>Error display<\/strong> (<code>display_errors<\/code>)<\/td><td>Shows PHP errors on the page. Turn it on for development only, and keep it off in production.<\/td><\/tr>\n<\/tbody>\n<\/table>\n<p>When you set the values, click <strong>Save PHP settings<\/strong>.<\/p>\n\n<blockquote><p><strong>Note:<\/strong> security-enforced settings (eg <code>open_basedir<\/code> and <code>disable_functions<\/code>) are locked on the server and cannot be changed here. For most sites, the default values are sufficient; increase limits only when the application requires it.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>How to change PHP version and extensions for each domain separately in WHSPanel.<\/p>","protected":false},"author":1,"featured_media":7311,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[211,203],"tags":[],"class_list":["post-7416","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softver","category-whs-panel"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/7416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=7416"}],"version-history":[{"count":1,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/7416\/revisions"}],"predecessor-version":[{"id":7578,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/7416\/revisions\/7578"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media\/7311"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=7416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=7416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=7416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}