PHP 8.4.0 RC3 available for testing

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.

adicione uma nota

Notas Enviadas por Usuários (em inglês) 1 note

up
25
cj3 at clifjackson dot net
6 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.
To Top