Gazler is correct, for easy setup, you can simply configure Ubuntu through repositories via apt-get. For RHEL-based systems, yum will be equivalent. However, if you want to know more about how to compile from scratch (which will give you more control over the installation), you can do this.
Application compilation basics:
- Download the source code from a website (e.g. PHP, www.php.net)
- unzip source (
tar -xzvf source.tar.gz) cd source- Set Source (
./configure [install-option-flags]) - Compilation Source (
make) - Test Install (actually not installed) -
make test - Install software (
make install)
4 - . , - . PHP Core.
PHP , , , , , c- . gcc . Ubuntu ( Debian) apt-get install build-essential yum RHEL, , - yum install gcc.
, , , , , , , , .
, - (apt-get, yum, emerge, pacman ..), , .