Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration

Tuesday, November 7th, 2006 @ 5:18 pm | Apache, Debian

En Debian testing al actualizar ahora ocurre este problema:

# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 141 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
 failed!

Si vemos la documentación de Apache, el comando ‘Order’ pertenece al modulo mod_access

Al pararecer este módulo ya no está enlazado estáticamente si no que se cargará dinámicamente, lo podemos hacer con

# a2enmod authz_host

Lo que ahora lanza otro error:

debian:/etc/apache2/mods-available# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 145 of /etc/apache2/apache2.conf:
Invalid command 'TypesConfig', perhaps misspelled or defined by a module not included in the server configuration
 failed!

Pareceser que hay que activar todo esto:

#a2enmod mime

Ahora este otro error:

# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 22 of /etc/apache2/sites-enabled/000-default:
Invalid command 'ScriptAlias', perhaps misspelled or defined by a module not included in the server configuration
 failed!

solucionamos con :

#a2enmod alias

ahora uno típico:

debian:/etc/apache2/mods-available# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd (no pid file) not running
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
.

Añadimos /etc/apache2/apache2.conf

ServerName localhost

reiniciar y listo

P.D.: en algunas listas recomiendan añadir tambien el modulo setenvif

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Recently

  • wiki.developers.facebook.com hacked
  • gnome terminal : copiar y pegar = truncado
  • He visto cosas que vosotros no creeríais
  • perl forking
  • OpenSolaris colgando de un hilo
  • iframe sospechoso
  • VirtualBox 3.2 ( cuidado que cruje )
  • cambiar password de usuario sistema en modo batch
  • google fue hackeada desde dentro
  • pezones en el pie !!! wtf !!!
  •