Instalação em sistemas Unix

ƍndice

A maioria dos sistemas operacionais e distribuições Unix (e Linux) possui uma versão empacotada de PHP e extensões disponíveis através de seu sistema de empacotamento. Existem seções com informações bÔsicas sobre como instalar o PHP usando esses sistemas.

Para algumas distribuições, também existem repositórios de pacotes de terceiros que geralmente incluem uma variedade maior de versões e extensões disponíveis.

O PHP tambƩm pode ser instalado como um componente de alguns servidores de aplicaƧƵes de terceiros.

Finalmente, o PHP sempre pode ser instalado a partir das distribuiƧƵes de origem, o que permite maior flexibilidade na escolha de quais recursos, extensƵes e APIs de servidor ativar. Existem seƧƵes com informaƧƵes sobre como compilar e configurar o PHP para uso com diferentes APIs de servidor em particular.

+adicionar nota

Notas de UsuƔrios 1 note

up
4
cj3 at clifjackson dot net ¶
8 years ago
I recently ran in to a situation where I was building PHP 7.1.13 from source. Configuration & make went fine, however, when I ran make install it hung. It turns out that if you are building PHP with Apache (apxs) the make file calls apxs with the -a flag which tells it to modify the httpd.conf file. If, for whatever reason, the file is not writeable then it fails and you get the hang.

Line 108 in my Makefile looks like this:

INSTALL_IT = $(mkinstalldirs) '$(INSTALL_ROOT)/usr/lib64/httpd/modules' && $(mkinstalldirs) '$(INSTALL_ROOT)/etc/httpd/conf' && /usr/sbin/apxs -S LIBEXECDIR='$(INSTALL_ROOT)/usr/lib64/httpd/modules'      -S SYSCONFDIR='$(INSTALL_ROOT)/etc/httpd/conf' -i -a -n php7 libphp7.la

I had to remove the -a flag and then it was fine.