To regenerate a new php.ini file, I would move the existing (empty or incomplete) file out of the way, renaming it if needed.
Then, run EasyApache, following through to build completion; this will generate a fresh php.ini file.
Here is the command to run EasyApache via root SSH access:
Code:
# /scripts/easyapache
Here is the menu path to run EasyApache via your root WHM control panel:
WHM: Main >> Software >> EasyApache (Apache Update)
Immediately following the build completion, I recommend saving a custom backup of the php.ini file in case it is needed later to revert back to (e.g., after editing or for testing).
Code:
# cp -pv /usr/local/lib/php.ini /usr/local/lib/php.ini.backup