Foros del Web » Administración de Sistemas » Unix / Linux »

Compilar php5 con apach2 y mysql

Estas en el tema de Compilar php5 con apach2 y mysql en el foro de Unix / Linux en Foros del Web. Hola tengo instalado mysql y apache2, y estoy intentando configurar php5 con soporte de mysql y apache2, con estas lineas: ./configure --with-mysql=/usr/include/mysql/ --with-apxs2=/contenedor/apxs/apxs && make ...
  #1 (permalink)  
Antiguo 12/08/2004, 15:39
Avatar de bichomen  
Fecha de Ingreso: junio-2003
Ubicación: Barcelona y alrededores, España
Mensajes: 877
Antigüedad: 20 años, 10 meses
Puntos: 2
Compilar php5 con apach2 y mysql

Hola tengo instalado mysql y apache2, y estoy intentando configurar php5 con soporte de mysql y apache2, con estas lineas:

./configure --with-mysql=/usr/include/mysql/ --with-apxs2=/contenedor/apxs/apxs

&&

make && make install

El problema, lle ga cuando me intenta compilar el modulo: mod_php5.c

me da lo siguientes errores:

Código:
  -D_REENTRANT -I/contenedor/php5/php-5.0.0/TSRM  -g -O2 -pthread -DZTS  -prefer-pic -c /contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c -o sapi/apache2handler/mod_php5.lo
In file included from /contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:26:
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:24:19: httpd.h: No such file or directory
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:25:25: http_config.h: No such file or directory
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:26:23: http_core.h: No such file or directory
In file included from /contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:26:
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:29: error: parse error before "AP_MODULE_DECLARE_DATA"
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:29: warning: data definition has no type or storage class
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:37: error: parse error before "request_rec"
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:37: warning: no semicolon at end of struct or union
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:38: warning: data definition has no type or storage class
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:47: error: parse error before '}' token
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:47: warning: data definition has no type or storage class
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:49: error: parse error before '*' token
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:50: error: parse error before '*' token
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:53: error: parse error before "php_dir_cmds"
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:53: warning: data definition has no type or storage class
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:54: error: parse error before '*' token
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:28: error: parse error before "module"
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:29: error: `STANDARD20_MODULE_STUFF' undeclared here (not in a function)
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:29: error: initializer element is not constant
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:29: error: (near initialization for `php5_module')
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:30: warning: excess elements in scalar initializer
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:30: warning: (near initialization for `php5_module')
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:31: warning: excess elements in scalar initializer
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:31: warning: (near initialization for `php5_module')
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:32: warning: excess elements in scalar initializer
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:32: warning: (near initialization for `php5_module')
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:34: warning: excess elements in scalar initializer
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:34: warning: (near initialization for `php5_module')
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:36: warning: excess elements in scalar initializer
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:36: warning: (near initialization for `php5_module')
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:38: warning: excess elements in scalar initializer
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:38: warning: (near initialization for `php5_module')
/contenedor/php5/php-5.0.0/sapi/apache2handler/mod_php5.c:38: warning: data definition has no type or storage class
/contenedor/php5/php-5.0.0/sapi/apache2handler/php_apache.h:53: warning: array `php_dir_cmds' assumed to have one element
make: *** [sapi/apache2handler/mod_php5.lo] Error 1
Que es lo que pasa, es necesario, este modulo? lo puedo borrar y si es necesario, donde esta el problema??

bichomen
__________________
"Se sabe con exactitud, con cuanta imprecisión, se sabe algo"
Linux Registered User #320332
  #2 (permalink)  
Antiguo 13/08/2004, 12:20
Avatar de bichomen  
Fecha de Ingreso: junio-2003
Ubicación: Barcelona y alrededores, España
Mensajes: 877
Antigüedad: 20 años, 10 meses
Puntos: 2
Ya lo arregle, no le indica bien la ruta del apache

bichomen
__________________
"Se sabe con exactitud, con cuanta imprecisión, se sabe algo"
Linux Registered User #320332
  #3 (permalink)  
Antiguo 23/04/2008, 09:10
Avatar de arkangel_sysadmin  
Fecha de Ingreso: abril-2008
Mensajes: 7
Antigüedad: 16 años
Puntos: 0
Re: Compilar php5 con apach2 y mysql

y como lo solucionaste ?? tengo el mismo problema
  #4 (permalink)  
Antiguo 24/04/2008, 18:28
Avatar de bichomen  
Fecha de Ingreso: junio-2003
Ubicación: Barcelona y alrededores, España
Mensajes: 877
Antigüedad: 20 años, 10 meses
Puntos: 2
Re: Compilar php5 con apach2 y mysql

Madre mía ese post, lo puse hace 4 años, ya ni me acuerdo, pero parece ser que fue un problema como indico, de la ruta del apache


bichomen
__________________
"Se sabe con exactitud, con cuanta imprecisión, se sabe algo"
Linux Registered User #320332
  #5 (permalink)  
Antiguo 25/04/2008, 09:40
 
Fecha de Ingreso: marzo-2008
Ubicación: Palma del Río
Mensajes: 11
Antigüedad: 16 años, 1 mes
Puntos: 0
Re: Compilar php5 con apach2 y mysql

Cita:
Iniciado por bichomen Ver Mensaje
Madre mía ese post, lo puse hace 4 años, ya ni me acuerdo, pero parece ser que fue un problema como indico, de la ruta del apache


bichomen
Jeje ya lo habra solucionado imagino..
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:55.