PHP and build process (/.configure, make and install): orientation, please

I'm a newbie, and after I learned to build my simple yet useful web services quite successfully, I managed to put myself in a position where I needed to set up my own PHP build.

The problem is that I really don't know what building means - and they never built anything.

My broad question is: Any good step-by-step tutorial that doesn't just say โ€œmust have dependenciesโ€?

My specific question: For example, one that shows how to create PHP with odbc, then rebuild (configure.nice and make it nice?) Using imap.

If someone finds the PHP package that comes with odbc, fine; with odbc and imap, better. But I'm really looking for someone to show me how to fish. You are welcome.

Thnx. AND.

+3
source share
2 answers

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 ..), , .

+8

, , ubuntu :

sudo apt-get install lamp-server^ php5-imap php5-odbc

, .

+1

Source: https://habr.com/ru/post/1777786/


All Articles