{"id":1988,"date":"2017-09-04T21:41:56","date_gmt":"2017-09-04T16:11:56","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=1988"},"modified":"2026-09-08T17:20:00","modified_gmt":"2026-09-08T11:50:00","slug":"configure-multiple-php-litespeed-cpanel-server","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/configure-multiple-php-litespeed-cpanel-server\/","title":{"rendered":"Configure Multiple PHP Versions in LiteSpeed on cPanel"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">LiteSpeed Web Server supports multiple PHP versions, allowing different websites hosted on the same cPanel server to use different PHP versions according to their application requirements. On a cPanel server, PHP versions are managed through EasyApache, while LiteSpeed requires the corresponding LiteSpeed PHP (LSAPI) package and configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This article explains how to install and configure multiple PHP versions with LiteSpeed on a cPanel server and how to make the PHP versions available for individual domains through <strong>MultiPHP Manager<\/strong>.<\/p>\n\n\n<h2>Prerequisites:<\/h2>\n<ol>\n<li>WHM access(Default URL will be http:\/\/IPaddress:2086)<\/li>\n<li>LiteSpeed Admin Panel access(Default URL will be http:\/\/IPaddress:7080)<\/li>\n<li>Server root access details.<\/li>\n<\/ol>\n<h2>Implementation:<\/h2>\n<p>Install the ea-phpxx-php-litespeed version. In this post, we will show how to install PHP 5.5 on LiteSpeed<\/p>\n<p><code>yum install ea-php55-php-litespeed<\/code><\/p>\n<p>In case we want to install a different version of PHP or multiple versions of PHP, use the following command<\/p>\n<p><code>yum install ea-php56-php-litespeed\u00a0ea-php71-php-litespeed<\/code><\/p>\n<p>This will create the file if you install PHP 5.5<\/p>\n<p><code>ls -la \/opt\/cpanel\/ea-php55\/root\/usr\/bin\/lsphp<\/code><\/p>\n<p>If we install multiple versions of PHP, then the corresponding file will be created in<em>\/opt\/cpanel\/ea-phpxx\/root\/usr\/bin.\u00a0<\/em><\/p>\n<p>Log in to the LiteSpeed panel using the IP address(http:\/\/IPaddress:7080)<\/p>\n<p>Go to\u00a0<em>Configuration &gt; External App &gt; Add<br \/><\/em><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/litespeed_addapp.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-1989 alignnone\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/litespeed_addapp.png\" alt=\"\" width=\"715\" height=\"185\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/litespeed_addapp.png 1070w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/litespeed_addapp-300x78.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/litespeed_addapp-768x199.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/litespeed_addapp-1024x265.png 1024w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/a><\/p>\n<p>Select <em><span class=\"xtbl_title\">New External App<\/span><\/em><span class=\"xtbl_title\"> and click\u00a0<em>Next<\/em><\/span><\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Externalapp.png\"><img decoding=\"async\" class=\"wp-image-1990 alignnone\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Externalapp.png\" alt=\"\" width=\"734\" height=\"235\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Externalapp.png 1209w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Externalapp-300x96.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Externalapp-768x246.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Externalapp-1024x328.png 1024w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>Add the following information<\/p>\n<p><strong>Name: php55<br \/><\/strong><strong>Command:<span class=\"field_text\">\/opt\/cpanel\/ea-php55\/root\/usr\/bin\/lsphp<\/span><\/strong><\/p>\n<p>Leave the remaining options at default.<\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/SAPIApp.png\"><img decoding=\"async\" class=\"wp-image-1991 alignnone\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/SAPIApp.png\" alt=\"\" width=\"674\" height=\"245\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/SAPIApp.png 1252w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/SAPIApp-300x109.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/SAPIApp-768x279.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/SAPIApp-1024x372.png 1024w\" sizes=\"(max-width: 674px) 100vw, 674px\" \/><\/a><\/p>\n<p>Click on\u00a0<strong>Save\u00a0<\/strong>to complete the app<br \/>Under Script handler, click on <strong>Add<\/strong><br \/><strong><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Script_handler.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1992 alignnone\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Script_handler.png\" alt=\"\" width=\"999\" height=\"372\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Script_handler.png 999w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Script_handler-300x112.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/Script_handler-768x286.png 768w\" sizes=\"(max-width: 999px) 100vw, 999px\" \/><\/a><\/strong><\/p>\n<p>Add the following information.<\/p>\n<p><strong>Suffixes:php55<br \/><\/strong><strong>Handler Type: LiteSpeed SAPI<br \/><\/strong><strong>Handler Name: lsphp55<\/strong><\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/script_handler_handlername.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1993 alignnone\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/script_handler_handlername.png\" alt=\"\" width=\"731\" height=\"311\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/script_handler_handlername.png 956w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/script_handler_handlername-300x128.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/script_handler_handlername-768x327.png 768w\" sizes=\"(max-width: 731px) 100vw, 731px\" \/><\/a><\/p>\n<p>Restart the LiteSpeed service from WHM(Home &gt;&gt; Plugins &gt;&gt; LiteSpeed Web Server Plugin)<br \/>Now, you can switch the PHP version from WHM for any domain(Home &gt;&gt; Software &gt;&gt; MultiPHP Manager.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Configuring multiple PHP versions with LiteSpeed allows different domains on the same cPanel server to run the PHP version required by their applications. By installing the appropriate <code>ea-phpXX-php-litespeed<\/code> packages and configuring the corresponding LiteSpeed external applications and script handlers, administrators can make multiple PHP versions available to cPanel accounts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After completing the configuration, the required PHP version can be selected for individual domains through <strong>WHM \u2192 Software \u2192 MultiPHP Manager<\/strong>, providing greater flexibility and compatibility for websites hosted on the server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Can multiple PHP versions be used on the same LiteSpeed cPanel server?<\/strong><br>Yes. LiteSpeed supports multiple PHP versions, and each domain can use a different PHP version through cPanel MultiPHP Manager.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. How do I change the PHP version for a domain?<\/strong><br>You can change it from <strong>WHM \u2192 Software \u2192 MultiPHP Manager<\/strong> after the required PHP versions have been configured.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Do I need to restart LiteSpeed after configuring a new PHP version?<\/strong><br>Yes. Restart LiteSpeed after completing the external application and script handler configuration so the changes take effect.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Articles<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-view-php-version-for-the-domain-in-cpanel\/\">How to view PHP version for the domain in cPanel<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Talk to our experts<strong>:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for the right technology solution for your business?. Our experts can help with\u00a0web hosting, domain registration, DevOps and cloud, software development, web applications, mobile applications, and enterprise solutions. Get in touch with our team <a href=\"https:\/\/pheonixsolutions.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction LiteSpeed Web Server supports multiple PHP versions, allowing different websites hosted on the same cPanel server to use different [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":"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":"","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-4)","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-4)","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-4)","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":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[161,263,262],"class_list":["post-1988","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-centos","tag-cpanel","tag-litespeed","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-w4","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1988"}],"version-history":[{"count":6,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1988\/revisions"}],"predecessor-version":[{"id":11552,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1988\/revisions\/11552"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}