How to: Compiling PHP and Apache - cPanel

Status
Not open for further replies.

NationWebHost

Active Member
349
2010
0
0
In this tutorial I will teach you how to compile PHP and Apache with addons.

Login to SSH and type in:
/scripts/easyapache

Once that has loaded you will get an output like this:
ss20101129161857.png


We want PHP Security. Use the down arrow button to go down and enter to select. Once you have selected PHP Security, press TAB and then use the right button to hover on 'Start customizing based on profile' and Enter to continue.

Next we will be prompt with which version of Apache we would like to run. I would recommend Apache 2.2 because it is the latest version should run faster than 1.3 and 2.0. Press tab and press enter on Next Step.

We will yet again be prompted. This time it is for which version of PHP we would like to run. I would again recommend the latest version. Hit tab and select Next Step. You will be asked in more detail which version of PHP you wish to run, I am currently running 5.2.9 and for this tutorial that is what we will be using. Tab, next step.

A list of short options will be displayed. Here is what I have enabled:
ss20101129162331.png


I suggest you enable to the same unless required software requires anything else on the list.

Tab, Exhaustive Options list.

I am going to screen the next 14 pages. You may select more than what I have if required. I would keep the amount of options you select as low as possible as enabled more than you need can open up your server to more vulnerabilities.

ss20101129163651.png

ss20101129163747.png

ss20101129163916.png

ss20101129164010.png

ss20101129164058.png

ss20101129164211.png

For ^, you can enter any Save As, Profile Name and description name.
Tab, Next step.
ss20101129163406.png

Save and Build.

PHP and Apache should now recompile with the addons you have selected.
 
5 comments
You can do it in WHM small or big operation, it is just likely if you have less than 1GB or RAM it is likely that when you re-compile PHP and Apache your server will run out of memory. If it does, you go to step one and run basic then do the whole process as I've showed again. This is also a method of installing SuHosin.
 
Status
Not open for further replies.
Back
Top