Khóa học Web Services in WHM
EasyApache 4Welcome to EasyApache 4
EasyApache 4 is cPanel's latest software for managing Apache and PHP. Like EasyApache 3, it easily handles what would
otherwise be the comlicated process of choosing options, modules, and other environmental components related to running
your web services.
The EasyApache 4 user interface in WHM has been completely redesigned from fround up and includes a number of handy improvements
This notably includes its use of RPMs, rather than compiling from source, significantly speeding up its build times,as well as
reducing the chance of any critical apache failures.
Aside from initially running EasyApache 4 for the first time to establish your preferred setup, the most common reason to run EasyApache is that you discover that
a website requires an Apache module or PHP extension that isn't currently installed.
With EasyApache 4, you will be able to install any module or extension that has an associated RPM package available. While
this does include most modules there are some that are not included in EasyApache at this time. In the future, however, EasyApache 4 will be extensible.
Keeping PHP up to date is important, however, updating PHP should be done with preparation and caution, as some applications
require specific version of PHP to function properly.
IN THIS COURSE
OBJECTIVES
By the end of this course, you'll be able to
Understand EasyApache 4 and its purpose
Identify what EasyApache 4 can and can't do
List some of the common problems solved by EasyApache 4
Locate and familiarize yourself with the EasyApache 4 interface in WHM
Adjust PHP handlers
Set the system's default PHP version using the MultiPHP interface in WHM
Edit the system-wide php.ini files
Set the version of PHP used by a specific user
Using EasyApache 4
The simpplest, most basic way to use EasyApache 4 is to provision a profile that already exists. In the interface, which
we'll be going over more in-depth momentarily, you can select from a number of pre-built profiles to ultilize, such as those shown in
the UI example below:
Let's say that this first profile fits your needs perfectly. It includes that standard, modern PHP version, runs
Apache 2.4 and has all PHP options enabled along with OpCache.
All you'd need to do is click the Provision button to the right of the profile and your're good to go
Alternatively, you can also use these profiles as a starting point for creating your own profile, by click the Customize button
You can also download the profile to JSON-formatted file for later use or customization
IN REVIEW
We learned that rebuilding Apache and PHP with new modules and extension is performed via the WHM Home >> Software >> EasyApache 4 interface
We learned that EasyApache 4 uses RPMs to install and manage Apache and PHP. It is significantly faster than compiling.
We learned how EasyApache 4 checks to ensure that dependencies and conflicts are handled, so there is less chance of ending up with a none-functional
Apache installation
EX4 speeds up its build time
json
MultiPHP
IN THIS UNIT
OBJECTIVES
Adjust PHP handlers
Set the system's default PHP version using the MultiPHP interface in WHM
Edit the system-wide php.ini file
Set the version of PHP used by a specific user
Configuring MultiPHP
Of course! We almost forgot about our good friend, PHP. So, now that we've successfully run EasyApache 4
it's a good idea to go ahead and set up PHP
PHP is a pivotal part of most modern webservers and EasyApache 4 comes with two additinal interfaces to help you
configure it. Because you can use multiple versions of PHP, the interfaces are named MultiPHP. The first is the MultiPHP Manager
PHP Handlers
PHP handlers are the Apache-to-PHP interface. The handler determines how Apache acts when a PHP file is requested
So between the MPM (which handles how all requests are handled) and the PHP handler(which has further instructions for PHP files), on can learn how Apache will handle a request.
When DSO is the requested handler, Apache handles the PHP process internally. This allows for .htaccess directives like php_flag.
Only one version of PHP can use DSO at a time
The other types of handlers are all variations on CGI Apache passes the PHP processing off to an external process
You can nit use .htaccess file directives to affect PHP settings. However, you can have an unlimited number of PHP
versions. You can install multiple handlers and then set them, per-version of PHP, in the MultiPHP Manager
Time to give it a shot yourself ! When you're ready, click the door to take a look at the procedure for changing PHP handlers in WHM
Editing the php.ini File
PHP is fine-tuned with the php.ini file. It is necessary because PHP's defaults are neither secure nor optimal. cPanel provides defaults that
are more secure but still have the most used features active
However, each server is different and you are likely to find that you need to change some of the PHP options.
You can do this in WHM using the MultiPHP INI Editor. The most frequently changed options are listed in Basic Mode
Next, we will practice making a change in Basic Mode. When you're ready, go ahead and click the door below
IN REVIEW
We learned how to changing the system's default PHP version can ben done via the WHM Home >> Software >>MultiPHP Manager interface
We learned how PHP versions can also be adjusted for individual accounts under the MultiPHP Manager interface
We learned how to set PHP handler used for specific versions of PHP using the PHP Handlers tab in the MultiPHP Manager interface
We learned that the MultiPHP INI Editor interface in WHM allows you to adjust the PHP configuration directives directly
using either the Basic or Advanced mode
True
ea-php56
True
in the MultiPHP Manager interface
Represented as "dso" processes in the process list.root
the setting used if no other option select
End this course
The resource server for
True
Apache 2.4
RPMs
Represented as "dso" processes in the process list.
No comments: