Web Hosting Talk







View Full Version : recompile PHP with cPanel?


JeremyV
12-13-2002, 11:39 AM
I'm fairly new to cPanel and WHM, and recently I installed some things that I need to recompile into PHP. Well, after looking nearly everywhere, I can't find the PHP install directory with the configure and makefiles and such. So I went to WHM and I can install RPMs in there.

Well, it listed a bunch of various php options. Well, I don't get this whole GUI crap, all I know is the ./configure command I need to use to correctly compile with my options, and how to do it that way. So I guess my question is, with cpanel can you still recompile php w/o doing it from within the program itself? And if so how? If not.. how do you do it within the program?

Any help would be great. Thanks.

rcs
12-13-2002, 11:45 AM
Log to the shell,
download,
configure --options
make
make install
... done ;)

JeremyV
12-13-2002, 11:48 AM
well yes I could just redownload it :D But was trying to get a grasp on all features within WHM, find out where it stores files, etc. But yes, I have already downloaded it and am ready to go, but was hoping to learn more before I just do it the old way ;)

TheVoice
12-13-2002, 04:48 PM
go into ssh. then type /scripts/easyapache

choose number 5 for advanced. There you can choose which php and apache modules you want installed. This will also upgrade your php, apache, and mysql all in one shot. Theres a reason its called easyapache. Because its so damn easy.

mpope
12-13-2002, 06:34 PM
yes, use easyapache or buildapache for the latest version of PHP. It works great, and you don't have to worry about messing up cpanel's inter-workings ;)