How to enable php extensions?

gph09

New member
Registered
Joined
Nov 10, 2019
Messages
2
Points
1
I require these in my hosting service. How do I make sure if these are available and how to enable...?

OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension

My hosting provider says I can enable these through cPanel. The main problem for me is, I do not know if these are named the same as it appears.

I only see "Mbstring" in PHP version. Where are others if these are available to enable in cPanel.
 

NoFrillsCloud

Member
Registered
Joined
Nov 13, 2019
Messages
15
Points
3
These PHP extensions are fairly common and should be enabled by default for most hosting providers.

If your provider said that you can enable them through cPanel, I believe they are using CloudLinux's PHP Selector. If this is the case, you will be able to enable/disable the PHP extensions in your cPanel > Select PHP Version.

If you want to confirm whether the PHP extensions are already enabled, you can create a PHP Info file:-

1. Create a file with the name phpinfo.php under your public_html with the cPanel File Manager.

2. Insert the following codes into the file:-
PHP:
<?php

phpinfo();

?>
3. Browse to <YourDomain.com>/phpinfo.php and it will show you the PHP extensions that are enabled (you can use your browser's search feature to find the PHP extensions you want).
 

serveria

Member
Registered
Joined
Dec 7, 2019
Messages
36
Points
8
You should be able to do it in your cpanel: Home>Software>Easy Apache and choose PHP extensions there.
 

tuxandrew

Well-known member
Registered
Joined
Aug 19, 2012
Messages
126
Points
18
Once enabled these modules, it would appears as below in PHPINFO page.
- OpenSSL
- PDO
- Mbstring
- Tokenizer
- XML
 
Recommended Threads
Replies
3
Views
2,959
Replies
2
Views
2,936
Replies
3
Views
2,828
Replies
3
Views
1,610

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top