How can I compile php in the cpanel. I have to edit the options in php.ini and have to recompile it. any idea how to do it????
How can I compile php in the cpanel. I have to edit the options in php.ini and have to recompile it. any idea how to do it????
Use EasyApache
su - to root.
Run EasyApache
/scripts/easyapache
Select the options you want for your configuration.
Serversignature.com - Professional Linux Consulting.
If you have root access, you can do it by ssh.
use /scripts/easyapache --force for recompiling php.
You can find the loaded php.ini file from the following command from shell:
#php --info | grep php.ini
Just to be clear and thorough, you do know that changing options in the PHP.INI file doesn't require you to recompile PHP, right?
That said, if you do need to recompile such as for adding new features that were not included in the original compile, the easiest way to do this is actually manually building the source but EasyApache either from the shell or from WHM will work as well.