How Can I Update The Latest PHP Verson On The Server

Patient Tools

Read, save, and share this guide

Use these quick tools to make this medical article easier to read, print, save, or share with a family member.

Patient Mode

Understand this article easily

Switch between simple English and easy Bangla patient notes. This is for education and does not replace a doctor consultation.

How Can I Update The Latest PHP Version On The Server? You can change the PHP version on the server using the EasyApache 4 module located in the WHM left-hand menu. There you can select one of the default set of modules or click Customize to change your currently used...

For severe symptoms, danger signs, pregnancy, child illness, or sudden worsening, seek urgent medical care.

বাংলা রোগী নোট এখনো যোগ করা হয়নি। পোস্ট এডিটরে “RX Bangla Patient Mode” বক্স থেকে সহজ বাংলা সারাংশ যোগ করুন।

এই তথ্য শিক্ষা ও সচেতনতার জন্য। এটি ডাক্তারি পরীক্ষা, রোগ নির্ণয় বা প্রেসক্রিপশনের বিকল্প নয়।

Article Summary

How Can I Update The Latest PHP Version On The Server? You can change the PHP version on the server using the EasyApache 4 module located in the WHM left-hand menu. There you can select one of the default set of modules or click Customize to change your currently used one. It is also possible to create a separate custom profile, feel free to check corresponding cPanel documentation for instructions on how...

Educational health guideWritten for patient understanding and clinical awareness.
Reviewed content workflowUse writer and reviewer profiles for stronger trust.
Emergency safety firstUrgent warning signs are highlighted below.

Seek urgent medical care if you notice

These warning signs are general safety guidance. Local emergency numbers and clinical judgment should always come first.

  • Severe symptoms, breathing difficulty, fainting, confusion, or rapidly worsening illness.
  • New weakness, severe pain, high fever, or symptoms after a serious injury.
  • Any symptom that feels urgent, unusual, or unsafe for the patient.
1

Emergency now

Use emergency care for severe, sudden, rapidly worsening, or life-threatening symptoms.

2

See a doctor

Book a professional medical evaluation if symptoms persist, worsen, recur often, affect daily activities, or occur in a high-risk patient.

3

Learn safely

Use this article to understand possible causes, tests, treatment options, prevention, and questions to ask your clinician.

Before reading

RX Patient Tools

Use these quick guides before reading the article, or return to them when you need help preparing questions for a doctor.

Start here Choose the right pathway for symptoms, reports, medicines, or urgent warning signs. Disease article roadmap Read this topic step by step: meaning, symptoms, warning signs, diagnosis, treatment, prevention, and follow-up. Treatment planner Prepare questions about treatment choices, benefits, risks, side effects, and follow-up. Family & caregiver guide Organize symptoms, reports, medicines, questions, and follow-up safely. Nutrition & diet guide Prepare food, hydration, supplement, and medicine-timing questions safely. Prevention guide Organize risk factors, protective habits, screening, and warning signs. Recovery guide Prepare a safe plan for activity, rehabilitation, warning signs, and follow-up.

How Can I Update The Latest PHP Version On The Server? You can change the PHP version on the server using the EasyApache 4 module located in the WHM left-hand menu. There you can select one of the default set of modules or click Customize to change your currently used one.

It is also possible to create a separate custom profile, feel free to check corresponding cPanel documentation for instructions on how to do that. For the purpose of this tutorial we will customize the default profile:

How Can I Update The Latest PHP Verson On The Server
 Apache MPM selection

First you will need to select Apache Multi-Processing Module (MPM) which determines how Apache binds to network ports, accepts HTTP requests, and dispatches children processes to handle the HTTP requests:

How Can I Update The Latest PHP Verson On The Server

There are currently 4 different MPMs available for selection. Let’s discuss them briefly as their selection may significantly impact on your server speed and stability.

PREFORK

Default MPM suggested by cPanel uses multiple child processes with one thread each. Each process handles one connection at a time.

Pros:

  • Quick. The prefork MPM causes Apache to branch (fork) into additional processes before the system receives requests. When the server receives requests, it responds quickly to each request since an Apache process already exists to handle it.
  • Stable. If a problem occurs with an individual process, the system can kill the process with no effect on other Apache processes.
  • Compatibility. Threadless design is safe for non-thread-safe modules, like mod_php.

Cons:

  • Consumes more RAM than threaded MPMs like Worker or Event. Scaled child processes may result in the use of a large amount of system RAM.
  • Comparatively bad scalability. This worker may perform poorly on high-traffic servers with many concurrent requests since requests have to wait until processes are free.

The worker MPM uses multiple child processes with many threads each. Each thread handles one connection at a time.

Pros:

  • Scalability. Worker generally is a good choice for high-traffic servers since there are more threads than processes, this also means that new connections can immediately take a free thread instead of having to wait for a free process.
  • Less RAM-demanding than pre-fork. Worker MPM uses low memory in comparison to Prefork MPM which could help greatly on low tier VPS with lesser RAM available.

Cons:

  • Unsafe for use with non-thread-safe modules (mod_php will not be available).

EVENT

Similar to Worker MPM, but also allows more requests to be served simultaneously by passing off some processing work to supporting threads. Pros and cons are basically the same as Worker ones except for one major improvement. In Event MPM when a client completes the first request then the client can keep the connection open and send further requests using the same socket which reduces connection overload. Idle/kept-alive connections are not consuming many threads and their needed memory, which should reduce server overload with a large number of requests.

On the other hand,  SSL connections are treated identically to Worker MPM which make this improvement not totally applicable for all kind of websites.

ITK

cPanel recommends using it along with CloudLinux OS as MPM for servers that have a shared hosting environment. ITK is based on Prefork MPM and allows you to configure individual Apache vhosts to run as specified users and groups. Thanks to these scripts and configuration files for one vhost no longer have to be readable for other hosts.

Pros:

  • Security – This MPM allows each user to isolate their files from others with the standard file permission settings which creates an additional level of security.
  • Non-threaded MPM  Just like prefork MPM, ITK is not-threaded which means you can run non-thread-aware code without problems.

Cons:

  • Performance. It is a bit slower than the original Prefork, both MPMs are sharing the performance issues when dealing with a big number of requests.
  • Code restrictions. As stated in cPanel documentation for this module: ‘Recent versions of the MPM ITK Apache module implemented restrictions on the use of the setup() function and the setgid() function. As a result, scripts that depend on these functions may encounter problems. This includes scripts that use the mail() function, the shell_exec function, or the Sudo command.’

So if some of your websites are dependable on using these functions you should consider using different MPM.

In general we would suggest choosing of MPM based on your own needs:

  • For best speed and compatibility with older applications use Prefork MPM.
  • For servers which are dealing with big amount of traffic use Worker or Event worker.

For up-to-date information about the available cPanel MPMs check their corresponding knowledgebase page.

Once MPM is selected, click on Next to proceed to apache modules selection.

Apache modules selection

On second step you are given an opportunity to select optional apache modules to be installed/removed:

How Can I Update The Latest PHP Verson On The Server

A number of modules may affect memory consumption by Apache processes, so we would suggest using only modules you really need and disable the unneeded ones. If you are not sure which one you need, just keep the default list of selected modules and proceed to the next step. Feel free to check our related article for more information about Apache modules and a brief description of some of them.

Once you’re done with selection click on Next to proceed.

PHP Versions selection

On this step you can select the PHP versions you need. EasyApache 4 supports multiple PHP versions out of box, so you can install all versions currently supported by cPanel if needed.

NOTE: cPanel does not support releases which reached end-of-life and not longer supported by PHP.net. If you need any legacy PHP versions (for example, PHP 4, 5.2 or 5.5), you may consider switching to CloudLinux OS (available only on Dedicated Servers) which provides hardened versions of them:

How Can I Update The Latest PHP Verson On The Server

Click Next to proceed with PHP extensions selection phase.

PHP extensions

PHP would not be so popular without all modules and packages which extends it greatly. EasyApache allows installing some of them at this stage:

How Can I Update The Latest PHP Verson On The Server

All extensions are installed separately for each version of the PHP environment you selected on the previous step, so set the ones you need and proceed to the last step.

Review and provision

On the Review stage, you can see the exact modules that are to be installed/upgraded. If you are done with the selection, click on Provision button at the bottom to begin implementing the changes on the server:

How Can I Update The Latest PHP Verson On The Server

NOTE: Do not interrupt the process as you will have to start from the beginning while your websites can go offline because of the unfinished configuration.

How Can I Update The Latest PHP Verson On The Server

You should see The provision process is complete once everything is done:

How Can I Update The Latest PHP Verson On The Server

How to adjust server-wide PHP settings/limits

You can change most of the PHP settings in MultiPHP Manager and MultiPHP INI Editor menus in WHM.

Let’s review MultiPHP Manager first:

How Can I Update The Latest PHP Verson On The Server

At the first tab here you can specify System PHP version to be set for all accounts created in the future and the existing ones which have ‘inherit’ PHP version set. The selected version will also be used for CLI PHP executable.

If you require one of the cPanel accounts to use PHP version different from the system one, you can specify it in the corresponding section below. Just select the account for which you wish to make the change and select the required PHP version from the dropdown list on the right. For non-inherit versions, you can also enable PHP-FPM which is an alternative to FastCGI daemon for PHP which was designed to allow websites handling strenuous loads.

At PHP handlers tab you can specify handlers to be used for each PHP version. Handler is a type of Apache module which contain libraries that the Apache web server uses to interpret and run PHP code. suphp is used by default, but you can switch to other supported handlers if needed at this page as well. List of available handlers and requirements for their installation is provided here.

In order to switch PHP handler select it from the drop-down menu next to PHP version you need and hit click Apply button:

How Can I Update The Latest PHP Verson On The Server

In order to adjust basic PHP versions settings, like max_execution_time or memory_limit, proceed to MultiPHP INI Editor menu.

There are to available editor modes: first is a user-friendly Basic mode which allows editing most commonly used settings; the second one is Editor Mode which is used to edit php.ini files of each PHP versions directly:

How Can I Update The Latest PHP Verson On The Server

Make the changes you need and click Apply/Save button to update PHP configuration.

NOTE: If you have PHP-FPM option enabled, you might also need to rebuild PHP-FPM User Pools in order for changes to take effect. You can do it by enabling/disabling PHP-FPM in MultiPHP Manager or by running the following command via SSH:

/scripts/php_fpm_config --rebuild

How to adjust single cPanel account PHP settings/limits

In order to override server-wide PHP settings for some specific websites, you can use MultiPHP Manager and MultiPHP INI Editor in cPanel main menu.

Their functionality is almost the same as the ones in WHM.

In cPanel MultiPHP Manager you can change PHP version used for each website by checkmarking it, selecting corresponding version from the drop-down list on the right and clicking Apply as shown in screenshot below:

How Can I Update The Latest PHP Verson On The Server

How Can I Update The Latest PHP Verson On The Server

In order to change PHP settings for each website or cPanel account  in general navigate to MultiPHP INI Editor. There you can use Basic or Editor version of php.ini editor.

What this plugin does in general – creates php.ini file in the selected website’s document root folder and adds your changes there. Any non-specified settings will be taken from server-wide configuration file, so you basically need just to adjust the settings you need for the website in question.

For example, in order to function probably our web-application require 1GB of memory which is defined by memory_limit setting in php.ini. In order to increase it for this single domain we need to select it from drop-down list, add necessary directive to editor field below, click Save then:

How Can I Update The Latest PHP Verson On The Server

How Can I Update The Latest PHP Verson On The Server

Changes should be noticed immediately once it is done:

How Can I Update The Latest PHP Verson On The Server

How to install and enable custom modules

If you require some specific PHP extension that is not included in the default PHP configuration, you can use the Module installers menu in WHM which provides access for PEAR and PECL installers.

PEAR installer

In order to install the PEAR package, input the name of the module you wish to install in the Search field and click Go or, if you know the package name, input it in the field next to Install now button and install it right away.

For example, let’s install mail PEAR package:

How Can I Update The Latest PHP Verson On The Server

In search result page click on Install next to the needed package to start the installation process:

How Can I Update The Latest PHP Verson On The Server

In next window you should see Install ok message in case of successful package installation:

How Can I Update The Latest PHP Verson On The Server

Manual installation of PEAR modules

Since PEAR installer in WHM will install only stable releases of PEAR packages, it may not be able to automatically install some of them as they may not have ‘stable’ release at the moment (for example, such packages could still be in ‘beta’ despite being widely used).

If you try to install some of these packages, like Mail2, you will get the following error:

How Can I Update The Latest PHP Verson On The Server

In such cases you will need to install this package manually via SSH. Since all packages are installed for each PHP versions separately, you will need to use PEAR installer from the corresponding folder as well. For example, in order to install Mail2 module for PHP 5.6 the command will be as following:

/opt/cpanel/ea-php56/root/usr/bin/pear  install -f --alldeps Mail2

where

/opt/cpanel/ea-php56/root/usr/bin/pear – path to PEAR installer for PHP 5.6  (version is specified in ea-phpXX folder, so for PHP 7.0 the path will be php /opt/cpanel/ea-php70/root/usr/bin/pear)

install – command used to start the installation of a module

-f – force flag which will force the installer to download beta and alpha releases if stable one is not available for some reason including package dependencies

–alldeps – the flag used to force the installer to download all package dependencies along with the package itself

Mail2 – the name of package or link to it (you can copy/paste channel:// link from the error message)

How Can I Update The Latest PHP Verson On The Server

Once done, installed modules should also appear in the list of installer PEAR packages in WHM:

How Can I Update The Latest PHP Verson On The Server

That’s all, you can now start using these packages in scripts without any additional adjustments.

PECL installer

PECL installer usage steps are mostly the same as for PEAR, except for the one specific step. All PECL extensions are being installed as .so file and in most cases should be compiled first. Apart from that you may need additional system packages to be installed first via yum or another package manager.

For example, you will not be able to compile mcrypt extension until you install libmcrypt and libmcrypt-devel packages. For more information about required packages refer to the official documentation of extensions you wish to install.

Also, in order to start using .so extensions, you should first add them to php.ini configuration file via MultiPHP INI Editor menu by adding the following line to the end of the file:

extension = “extension_name_you_wish_to_install.so”

For the purpose of this tutorial we will  install env extension via PECL manually for PHP 7.0.

PECL executable is located in the same folder as PEAR, so the command will be:

/opt/cpanel/ea-php70/root/usr/bin/pecl install --alldeps -f env

How Can I Update The Latest PHP Verson On The Server

Wait till build process is complete and check the result for any possible errors. If build is successful, you should see the corresponding message like the one in screenshot below:

How Can I Update The Latest PHP Verson On The Server

Once you add extension directive to php.ini, you should be able to check if module is enabled in info.php page or, if you are a console person,  by running the following command:

/opt/cpanel/ea-php70/root/usr/bin/php -i | grep env

where

/opt/cpanel/ea-php70/root/usr/bin/php – path to PHP executable (note the PHP version in file path)

-i – infromation flag which displays information about all PHP environment settings in similar way as phpinfo() function

| grep module_name – find information about your module in output

The output should be similar to the one in the screenshot:

How Can I Update The Latest PHP Verson On The Server

If the output is empty, then most likely the extension was not enabled in the correct php.ini file or you are using wrong version of PHP executable.

For more information about EasyApache 4 check official guides in cPanel Knowledge Base.

Doctor visit helper

Prepare before seeing a doctor

A simple rural-patient checklist to help you explain symptoms clearly, ask better questions, and avoid unsafe self-treatment.

Safety note: This is not a prescription or diagnosis. For severe symptoms, pregnancy danger signs, children with serious illness, chest pain, breathing difficulty, stroke-like weakness, or major injury, seek urgent care.

Which doctor may help?

Start with a registered doctor or the nearest qualified health center.

What to tell the doctor

  • Write when the problem started and how it changed.
  • Bring old prescriptions, investigation reports, and current medicines.
  • Write allergies, pregnancy status, diabetes, kidney/liver disease, and major past illnesses.
  • Bring one family member if the patient is weak, elderly, confused, or a child.

Questions to ask

  • What is the most likely cause of my symptoms?
  • Which danger signs mean I should go to hospital quickly?
  • Which tests are necessary now, and which can wait?
  • How should I take medicines safely and what side effects should I watch for?
  • When should I come for follow-up?

Tests to discuss

  • Vital signs: temperature, pulse, blood pressure, oxygen saturation
  • Basic physical examination by a clinician
  • CBC, urine test, blood sugar, or imaging only when clinically needed

Avoid these mistakes

  • Do not use antibiotics, steroid tablets/injections, or strong painkillers without proper medical advice.
  • Do not hide pregnancy, kidney disease, ulcer, allergy, or blood thinner use.
  • Do not delay emergency care when danger signs are present.

Medicine safety and first-aid guide

This section is for patient education only. It does not replace a doctor, pharmacist, or emergency care.

Safe first steps

  • Avoid heavy lifting, sudden bending, and prolonged bed rest.
  • Use comfortable posture and gentle movement as tolerated.
  • Discuss physiotherapy, X-ray, or MRI only when clinically needed.

OTC medicine safety

  • For mild back pain, pain-relief medicine may be discussed with a doctor or pharmacist.
  • Avoid repeated painkiller use if you have kidney disease, stomach ulcer, uncontrolled blood pressure, or are taking blood thinners.

Avoid these mistakes

  • Do not start antibiotics without a proper medical decision.
  • Do not use steroid tablets or injections casually for quick relief.
  • Do not delay emergency care because of home remedies.

Get urgent help if

  • Back pain with leg weakness, numbness around private area, loss of urine/stool control, fever, cancer history, or major injury needs urgent care.
Medicine names, dose, and timing must be decided by a qualified clinician or pharmacist after checking age, pregnancy, allergy, other diseases, and current medicines.

For rural patients and family caregivers

Patient health record and symptom diary

Write your symptoms, medicines already taken, test results, and questions before visiting a doctor. This note stays on your device unless you print or copy it.

Doctor to discuss: Doctor / qualified healthcare provider
Tests to discuss with doctor
  • Basic vital signs: temperature, pulse, blood pressure, oxygen level if needed
  • Relevant blood, urine, imaging, or specialist tests only after clinical assessment
Questions to ask
  • What is the most likely cause of my symptoms?
  • Which warning signs mean I should go to emergency care?
  • Which tests are really needed now?
  • Which medicines are safe for my age, pregnancy status, allergy, kidney/liver/stomach condition, and current medicines?

Emergency warning signs such as chest pain, severe breathing difficulty, sudden weakness, confusion, severe dehydration, major injury, or loss of bladder/bowel control need urgent medical care. Do not wait for online information.

Safe pathway to proper treatment

Care roadmap for: How Can I Update The Latest PHP Verson On The Server

Use this simple roadmap to understand the next safe steps. It is educational and does not replace examination by a doctor.

Go to emergency care if you notice:
  • Severe or rapidly worsening symptoms
  • Breathing difficulty, chest pain, fainting, confusion, severe weakness, major injury, or severe dehydration
Doctor / service to discuss: Qualified healthcare provider; specialist depends on symptoms and examination.
  1. Step 1

    Check danger signs first

    If danger signs are present, seek emergency care and do not wait for online information.

  2. Step 2

    Record the symptom story

    Write when symptoms started, severity, medicines already taken, allergies, pregnancy status, and test results.

  3. Step 3

    Visit a qualified clinician

    A doctor, nurse, or qualified healthcare provider can examine you and decide which tests or treatment are needed.

  4. Step 4

    Do only useful tests

    Do tests after clinical assessment. Avoid unnecessary tests, random antibiotics, or repeated medicines without diagnosis.

  5. Step 5

    Follow up and return early if worse

    If symptoms worsen, new warning signs appear, or treatment is not helping, return for review quickly.

Rural patient practical tips
  • Take a written symptom diary and all previous prescriptions/test reports.
  • Do not hide medicines already taken, even herbal or over-the-counter medicines.
  • Ask which warning signs mean urgent referral to hospital.

This roadmap is for education. A real diagnosis and treatment plan requires history, examination, and clinical judgment.

RX Patient Help

Ask a health question safely

Write your symptom story. A health professional or site editor can review it before any answer is prepared. This box is not for emergency care.

Emergency first: Severe chest pain, breathing trouble, unconsciousness, stroke signs, severe injury, heavy bleeding, or rapidly worsening symptoms need urgent local medical care now.

Frequently Asked Questions

Is this article a replacement for a doctor?

No. It is educational content only. Patients should consult a qualified clinician for diagnosis and treatment.

When should I seek urgent care?

Seek urgent care for severe symptoms, rapidly worsening condition, breathing difficulty, severe pain, neurological changes, or any emergency warning sign.

References

Add references, clinical guidelines, textbooks, journal articles, or trusted medical sources here. You can edit this area from the RX Article Professional Blocks panel.