Foros del Web » Administración de Sistemas » Apache »

Configurar php5 con mysql y apache2

Estas en el tema de Configurar php5 con mysql y apache2 en el foro de Apache en Foros del Web. Puse este post en linux pero nadie me contesto lo pongo tb aqui haber si alguien me ayuda, estoy desesperado no puedo instalar php con ...
  #1 (permalink)  
Antiguo 12/08/2004, 18:50
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
Configurar php5 con mysql y apache2

Puse este post en linux pero nadie me contesto lo pongo tb aqui haber si alguien me ayuda, estoy desesperado no puedo instalar php con soporte para php:


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:21
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
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 03:33.