Apache2 need more configuration files

Bug #95553 reported by g0su
6
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: apache2

The script for control the demond of apache and the httpd.conf don't exist.

root@DarkTemplar:/etc/apache2# aptitude show apache2
Paquete: apache2
Estado: instalado
Instalado automáticamente: no
Versión: 2.2.3-3.2build1
Prioridad: opcional
Sección: web
Desarrollador: Ubuntu Core Developers <email address hidden>
Tamaño sin comprimir: 86,0k
Depende de: apache2-mpm-worker (>= 2.2.3-3.2build1) | apache2-mpm-prefork (>=
            2.2.3-3.2build1) | apache2-mpm-event (>= 2.2.3-3.2build1)
Proporcionado por: apache2-mpm-event, apache2-mpm-itk, apache2-mpm-prefork,
                   apache2-mpm-worker
Descripción: Next generation, scalable, extendable web server
 Apache v2 is the next generation of the omnipresent Apache web server. This
 version - a total rewrite - introduces many new improvements, such as
 threading, a new API, IPv6 support, request/response filtering, and more.

root@DarkTemplar:/etc/apache2# aptitude install apache2
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Reading state information... Hecho
Leyendo la información de estado extendido
Inicializando el estado de los paquetes... Hecho
Construir la base de datos de etiquetas... Hecho
Los siguientes paquetes han sido retenidos automáticamente:
  libmysqlclient15off mysql-client-5.0 mysql-common mysql-server-5.0
Se han retenido los siguientes paquetes:
  libwpd8c2a mysql-client mysql-server ttf-thai-tlwg
0 paquetes actualizados, 0 nuevos instalados, 0 para eliminar y 8 sin actualizar.
Necesito descargar 0B de ficheros. Después de desempaquetar se usarán 0B.
Escribiendo información de estado extendido... Hecho

root@DarkTemplar:/etc/apache2# dpkg-reconfigure apache2
(Reconfigure don't does nothing)
root@DarkTemplar:/etc/apache2# ls -l /etc/init.d/ | grep apache2
(No script for apache2 demond)
root@DarkTemplar:/etc/apache2# ls /etc/apache2/ | grep httpd
root@DarkTemplar:/etc/apache2# /usr/sbin/apache2
apache2: Syntax error on line 189 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory
root@DarkTemplar:/etc/apache2# touch /etc/apache2/httpd.conf
root@DarkTemplar:/etc/apache2# /usr/sbin/apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Revision history for this message
SunnyBoy (holmogor) wrote :

I have similar problem with apache2.2.
While I'm googling in internet, then found much forum themes about this problem, but not found it's solution.

Revision history for this message
Loye Young (loyeyoung) wrote :

This "bug" should be closed because it's not a bug.

English ---
1. apache2 is already installed, as shown by aptitude. However, it's unclear which branch is installed. Apache2 requires either "event", "itk", "prefork", or "worker". Prefork is the most stable and compatible.
# aptitude install apache2-mpm-prefork

If aptitude says it's already installed, make sure it's completely configured:
# dpkg --configure -a

2. Second, httpd.conf is deprecated. The correct configuration file is /etc/apache2/apache2.conf. It refers to httpd.conf for backwards compatibility. Comment out line 189.

3. FQDN is not necessary for apache to run. However, telling apache the ServerName is part of the normal configuration before creating a production environment. To set the FQDN, edit /etc/apache2/sites-available/default as the instructions say.

Español (Pacencia con mio, por favor. Soy un gringo de Laredo, Texas. Aprendo español toda las dias, pero español es deficil por mi. Por favor, diga me lo que palabras no está corecto.)--
1. apache2 es instalado, como aptitude dice. Pero, no está claro cual forma de programa es instalado. Apache2 requere "event", "itk", "prefork", o "worker". Prefork es lo mejor por operando con programas otra. Entonces, mande eso:
# aptitude install apache2-mpm-prefork
Se aptitude dice que este es ya instalando, asegúrese de que es configurado:
# dpkg --configure -a

2. Segundo, httpd.conf es ya criticado y no bueno a mantener horita. El archivo de configuracción correcto es /etc/apache2/apache2.conf. Se remite al httpd.conf para que programas lo que no es modernas necisiten. Marque un # a el principio de linea 189.

3. Apache2 no requere un FQDN a pasar. Pero, diciendo a apache2 el nombre de server "ServerName" es un parte de configuración normal antes hechando un machina para producción. A poner el FQDN, cambia /etc/apache2/sites-available/default como los instrucciónes dice. ("ServerName = darktemplar.ejemplo.com.mx", por ejemplo. )

Y un algo mas. Necesite a actualizar los otros paquetes. Mande esso:
# aptitude dist-upgrade

Loye Young
http://www.iycc.biz
Laredo, Texas

Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

Thanks for your bug report. I confirm the comment from Loye Young that this is a neither a problem of missing configurations files nor of a missing control file. I also assume the -xyz apache package is missing. I will therefore mark this report as invalid. If you can prove that installing apache2 fails with the comments in mind, feel free to open a new bug report.

Changed in apache2:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.