Modifying php and re-compiling

fxars

Registered
Aug 28, 2009
4
0
51
I've done this on non-cPanel servers, modifying PHP and re-compiling.

How do I do that on a cPanel server? Where do I find the php source on a cPanel server?

Do I use shell commands or the admin web interface?
=== Al
 

thewebhosting

Well-Known Member
May 9, 2008
1,201
1
68
To modify the PHP settings you will have to login in WHM --> Easy Apache (Apache Update) from the Software Section.

If you would like to modify the PHP configuration then you can configure it from the WHM --> PHP Configuration Editor from the Service Configuration Section.
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
I've done this on non-cPanel servers, modifying PHP and re-compiling.

How do I do that on a cPanel server? Where do I find the php source on a cPanel server?

Do I use shell commands or the admin web interface?
=== Al
Personally, I think manual compiling is far better if you have any experience in that as you say that you do ;)

However, Cpanel provides an interface to configure and setup both PHP and Apache called EasyApache and it is accessible on the web from the main WHM adminstrator panel or from the SSH shell.

In WHM, it's pretty obvious and you can select it from the menu.

In SSH, type /scripts/easyapache to get started.

If you want to manual compile your PHP (as I prefer) ....
Code:
# cd /usr/local/src
# wget http://us3.php.net/get/php-5.2.11.tar.bz2/from/this/mirror
# tar jxvf ./php-5.2.11.tar.bz2
# cd php-5.2.11
# ./configure  !!! WHATEVER OPTIONS YOU WANT !!!
# make
# make check
# make install