Instalación en sistemas Unix

Tabla de contenidos

La mayoría de los sistemas operativos y distribuciones Unix (y Linux) ofrecen una versión empaquetada de PHP y extensiones disponibles a través de su sistema de gestión de paquetes. Hay secciones con información básica sobre la instalación de PHP usando estos sistemas.

Para algunas distribuciones, también existen repositorios de paquetes de terceros que suelen incluir una mayor variedad de versiones y extensiones disponibles.

PHP también puede ser instalado como un componente de ciertos servidores de aplicaciones de terceros .

Por último, PHP siempre puede instalarse desde las distribuciones fuente, lo que ofrece la mayor flexibilidad a la hora de elegir qué características, extensiones y APIs de servidor habilitar. Hay secciones que contienen información sobre la compilación y configuración configuración de PHP para su uso con diferentes APIs de servidor en particular.

add a note

User Contributed Notes 1 note

up
6
cj3 at clifjackson dot net
7 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