Archive for November 7th, 2006

 

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

Nov 07, 2006 in 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