Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:cpanel:easyapache4-config [2016/11/28 13:58]
Jackson Zhang [Configuration Steps]
litespeed_wiki:cpanel:easyapache4-config [2018/10/31 16:24]
Jackson Zhang [Configuring cPanel + EasyApache 4 with LiteSpeed]
Line 1: Line 1:
-====== ​Configuring cPanel + EasyApache 4 with LiteSpeed ======+====== ​Migrating cpanel EA3 to EA4 with LiteSpeed ======
  
 EasyApache is software that installs, configures, updates, and validates your web server, PHP, and other web server components. ​ EasyApache is software that installs, configures, updates, and validates your web server, PHP, and other web server components. ​
  
-EasyApache 4 (EA4) represents a total overhaul in how cPanel & WHM ships and maintains their Apache and PHP distributions. ​EA4 is not recommended for use with production servers yet, but if you would like to experience it early, the following steps will show you how to configure LiteSpeed Web Server to work with cPanel + EasyApache 4.+EasyApache 4 (EA4) represents a total overhaul in how cPanel & WHM ships and maintains their Apache and PHP distributions. ​The following steps will show you how to configure LiteSpeed Web Server to work with cPanel + EasyApache 4.
  
 **Note:** It is assumed that you have already made the switch from EasyApache 3 to EasyApache 4. Please note that you have to **switch back to Apache web server** before migration otherwise it may cause [[litespeed_wiki:​cpanel:​ea3toea4_migration_error|problems]]. Then you can either use LiteSpeed plugin for cpanel for one click LiteSpeed EA3 to EA4 upgrade or manually upgrade LiteSpeed to be EA4 compatible. ​ **Note:** It is assumed that you have already made the switch from EasyApache 3 to EasyApache 4. Please note that you have to **switch back to Apache web server** before migration otherwise it may cause [[litespeed_wiki:​cpanel:​ea3toea4_migration_error|problems]]. Then you can either use LiteSpeed plugin for cpanel for one click LiteSpeed EA3 to EA4 upgrade or manually upgrade LiteSpeed to be EA4 compatible. ​
Line 57: Line 57:
  
 It is likely that your PHP handler has not yet been properly configured. Please follow the steps above to configure it. You should also upgrade LiteSpeed Web Server to the latest version to ensure correct MIME type recognition. It is likely that your PHP handler has not yet been properly configured. Please follow the steps above to configure it. You should also upgrade LiteSpeed Web Server to the latest version to ensure correct MIME type recognition.
 +
 +**Note:** LSWS is not compatible with mod_ruid2 because LSWS does not allow the process user to change mid-process. Make sure that mod_ruid2 is disabled in your WHM settings when using LSWS. LSWS is compatible with Apache prefork or event MPM. If mod_ruid2 is enabled, a variety of functionality may be disrupted due to WHM creating files that the web server user cannot access.
 +
 +**Note:** LSWS is not compatible with mod_lsapi so we recommend it being disabled before installing LiteSpeed. The reason for that is, is that all the functionality that mod_lsapi offers is already built directly inside of LSWS and by using mod_lsapi it can cause issues and performance decreases.
 +
 +If you are experienceing any of the following errors and your external apps and script handlers have been configurated,​ you might not install the following ea-phpxx on your server, you can use easy apache to install them to fix the errors.
 +
 +  2018-08-27 20:​53:​25.421588 ERROR [config:​scripthandler] use static file handler for suffix [php71]
 +  2018-08-27 20:​53:​25.421606 ERROR [config:​scripthandler] Can not find handler with type: 17, name: lsphp72.
 +  2018-08-27 20:​53:​25.421615 ERROR [config:​scripthandler] Can not find External Application:​ lsphp72, type: lsapi
 +  2018-08-27 20:​53:​25.421623 ERROR [config:​scripthandler] use static file handler for suffix [php72]
 +  2018-08-27 20:​53:​25.421668 ERROR [config:​scripthandler] Can not find handler with type: 17, name: lsphp54.
 +  2018-08-27 20:​53:​25.421684 ERROR [config:​scripthandler] Can not find External Application:​ lsphp54, type: lsapi
 +  2018-08-27 20:​53:​25.421693 ERROR [config:​scripthandler] use static file handler for suffix [php54]
 +  2018-08-27 20:​53:​25.421711 ERROR [config:​scripthandler] Can not find handler with type: 17, name: lsphp55.
 +  2018-08-27 20:​53:​25.421742 ERROR [config:​scripthandler] Can not find External Application:​ lsphp55, type: lsapi
 +  2018-08-27 20:​53:​25.421752 ERROR [config:​scripthandler] use static file handler for suffix [php55]
 +  [Mon Aug 27 20:53:26 2018] [notice] Finish reading Apache configuration,​ server configured -- resuming normal operations
 +  2018-08-27 20:​53:​26.572142 [ALERT] [Child: 30527] LiteSpeed/​5.2.8 Enterprise starts successfully!
 +  ​
 +  [root@server1 opt]# find /​opt/​cpanel/​ -name lsphp
 +  /​opt/​cpanel/​ea-php56/​root/​usr/​bin/​lsphp
 +  ​
 +User only installed ea-php56, but missing all the rest php versions. If you intended to do so, it is fine and the above error message can be saftly ignored.
  • Admin
  • Last modified: 2019/10/01 14:28
  • by Lisa Clarke