Munib
Munib

Reputation: 3701

How to Open php.ini file from cPanel or WHM

Recently I have purchased a VPS and I have the root access. I need to enable the extension=php_mysqli.dll in php.ini. But I could not find the php.ini file. Actually I am a Windows User and I do not know how to use Linux or SSH Commands. I want to find php.ini file and open it manually and make my desired changes. Can Any one help me?

Upvotes: 1

Views: 13774

Answers (1)

Sajan Parikh
Sajan Parikh

Reputation: 4960

Edit, on a cPanel server you should not be editing the PHP.ini file to enable extensions like that.

Within WHM, locate EasyApache and go through the guided setup for Apache and PHP. In the 'Exhaustive Options' screen, you'll find a checkbox to enable the mysqli extension.

Enable all the extensions you need, then hit 'Save and Build'. This will rebuild Apache and PHP using the configuration you just selected.

Upvotes: 1

Related Questions