{"id":3666,"date":"2018-06-14T05:05:00","date_gmt":"2018-06-13T23:35:00","guid":{"rendered":"https:\/\/www.skynats.com\/?p=3666"},"modified":"2025-05-28T12:12:06","modified_gmt":"2025-05-28T06:42:06","slug":"create-custom-php-ini-on-a-litespeed-webserver","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/","title":{"rendered":"Create custom php.ini in a Litespeed webserver"},"content":{"rendered":"\n<p>LiteSpeed Web Server is proprietary&nbsp;web server&nbsp;software. It is the 4th most popular web server,&nbsp;conserves resources without sacrificing performance, security, compatibility, or convenience. Litespeed web server is used in many of the hosting servers to accelerate the performance of the websites hosted in it. In a hosting environment with cPanel servers, it is necessary to edit the PHP variables for each domain or customer and this can be done using by creating a custom php.ini for each user\u2019s home directory. So the clients can change the PHP values according to their requirements.&nbsp; There should be some steps that need to be done on the Litespeed admin panel on cPanel\/WHM to enable custom php.ini.<\/p>\n\n\n\n<p>Follow the steps below and if you face any issue or need any assistance, please contact our <a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#006c9b\" class=\"has-inline-color\">technical support team<\/span><\/a>\u00a0for a free consultation\u00a0on live chat.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating custom php.ini in a Litespeed webserver <\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Login into WHM.<\/li><li>Select Litespeed Web Server<\/li><li>Litespeed Configuration &gt; Admin Console &gt; Configuration &gt; Server &gt; External App &gt; lsphp5<\/li><li>Under Environment section &gt;&gt; add \u201cPHPRC=$VH_ROOT\u201d<\/li><li>Under \u201csuEXEC User \u201d section &gt;&gt; add the account username for which custom php.ini has to be enabled.<\/li><li>Under \u201csuEXEC Group \u201d section &gt;&gt; add the group name of the same account.<\/li><li>Click save and return to Main &gt;&gt; Litespeed Web server<\/li><li>Under Quick Configuration of PHP suEXEC settings,&gt;&gt; Set Enable PHP suExec to yes.<\/li><li>After that put custom php.ini in the user\u2019s home directory and check it using a phpinfo page.<\/li><\/ol>\n\n\n\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LiteSpeed Web Server is proprietary&nbsp;web server&nbsp;software. It is the 4th most popular web server,&nbsp;conserves resources without sacrificing performance, security, compatibility, or convenience. Litespeed web server is used in many of the hosting servers to accelerate the performance of the websites hosted in it. In a hosting environment with cPanel servers, it is necessary to edit [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[631,20,21],"class_list":["post-3666","post","type-post","status-publish","format-standard","hentry","category-blog","tag-cpanel-litespeed","tag-litespeed","tag-php-tweaking"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Create custom php.ini in a Litespeed webserver | Skynats<\/title>\n<meta name=\"description\" content=\"Learn how to create a custom php.ini in LiteSpeed for better PHP control. Boost performance\u2014follow our quick guide now!\" \/>\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.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create custom php.ini in a Litespeed webserver\" \/>\n<meta property=\"og:description\" content=\"Learn how to create a custom php.ini in LiteSpeed for better PHP control. Boost performance\u2014follow our quick guide now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-13T23:35:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-28T06:42:06+00:00\" \/>\n<meta name=\"author\" content=\"Thameem\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thameem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/create-custom-php-ini-on-a-litespeed-webserver\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/create-custom-php-ini-on-a-litespeed-webserver\\\/\"},\"author\":{\"name\":\"Thameem\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/ba3ccdb869f155f8613922b77bacd029\"},\"headline\":\"Create custom php.ini in a Litespeed webserver\",\"datePublished\":\"2018-06-13T23:35:00+00:00\",\"dateModified\":\"2025-05-28T06:42:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/create-custom-php-ini-on-a-litespeed-webserver\\\/\"},\"wordCount\":275,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"cpanel litespeed\",\"litespeed\",\"php tweaking\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/create-custom-php-ini-on-a-litespeed-webserver\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/create-custom-php-ini-on-a-litespeed-webserver\\\/\",\"name\":\"Create custom php.ini in a Litespeed webserver | Skynats\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2018-06-13T23:35:00+00:00\",\"dateModified\":\"2025-05-28T06:42:06+00:00\",\"description\":\"Learn how to create a custom php.ini in LiteSpeed for better PHP control. Boost performance\u2014follow our quick guide now!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/create-custom-php-ini-on-a-litespeed-webserver\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/create-custom-php-ini-on-a-litespeed-webserver\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/create-custom-php-ini-on-a-litespeed-webserver\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create custom php.ini in a Litespeed webserver\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/ba3ccdb869f155f8613922b77bacd029\",\"name\":\"Thameem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b7c31ade9c00e4d81b5885f1127bd14ff4e7b7e025544efedb218b803ee6fa4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b7c31ade9c00e4d81b5885f1127bd14ff4e7b7e025544efedb218b803ee6fa4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b7c31ade9c00e4d81b5885f1127bd14ff4e7b7e025544efedb218b803ee6fa4?s=96&d=mm&r=g\",\"caption\":\"Thameem\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create custom php.ini in a Litespeed webserver | Skynats","description":"Learn how to create a custom php.ini in LiteSpeed for better PHP control. Boost performance\u2014follow our quick guide now!","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.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/","og_locale":"en_US","og_type":"article","og_title":"Create custom php.ini in a Litespeed webserver","og_description":"Learn how to create a custom php.ini in LiteSpeed for better PHP control. Boost performance\u2014follow our quick guide now!","og_url":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2018-06-13T23:35:00+00:00","article_modified_time":"2025-05-28T06:42:06+00:00","author":"Thameem","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Thameem","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/"},"author":{"name":"Thameem","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/ba3ccdb869f155f8613922b77bacd029"},"headline":"Create custom php.ini in a Litespeed webserver","datePublished":"2018-06-13T23:35:00+00:00","dateModified":"2025-05-28T06:42:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/"},"wordCount":275,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["cpanel litespeed","litespeed","php tweaking"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/","url":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/","name":"Create custom php.ini in a Litespeed webserver | Skynats","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2018-06-13T23:35:00+00:00","dateModified":"2025-05-28T06:42:06+00:00","description":"Learn how to create a custom php.ini in LiteSpeed for better PHP control. Boost performance\u2014follow our quick guide now!","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/create-custom-php-ini-on-a-litespeed-webserver\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create custom php.ini in a Litespeed webserver"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/ba3ccdb869f155f8613922b77bacd029","name":"Thameem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1b7c31ade9c00e4d81b5885f1127bd14ff4e7b7e025544efedb218b803ee6fa4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1b7c31ade9c00e4d81b5885f1127bd14ff4e7b7e025544efedb218b803ee6fa4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b7c31ade9c00e4d81b5885f1127bd14ff4e7b7e025544efedb218b803ee6fa4?s=96&d=mm&r=g","caption":"Thameem"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/3666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=3666"}],"version-history":[{"count":1,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/3666\/revisions"}],"predecessor-version":[{"id":14967,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/3666\/revisions\/14967"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=3666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=3666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=3666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}