domingo, 29 de julio de 2012

No such file or directory: Digest: error generating secret: No such file or directory Configuration Failed


Luego de un corte general en el server el servicio del lampp no iniciaba.

Viendo servicios levantados de lampp:

# /etc/init.d/lampp status
Version:
Apache is not running.
MySQL is running.


Decía que el apache no estaba corriendo el servicio del apache.


Intenté iniciarlo con el siguiente comando:

# /etc/init.d/lampp stopapache
# /etc/init.d/lampp startapache


Seguía sin levantar, luego probé reiniciar todo el lampp con el siguiente comando y nada:

# /etc/init.d/lampp restart


Viendo los logs del lampp mientras se reiniciaba el servicio aparece lo siguiente:

# tail -f /opt/lampp/logs/error_log
[crit] (2)No such file or directory: Digest: error generating secret: No such file or directory
Configuration Failed


Googleando un poco llegué a que había que modificar algo en el httpd.conf, lo busqué, pero aparecían varios, fuí modificando uno por uno y probando hasta dar con el que realmente era:

# locate httpd.conf
/otra/ruta/httpd.conf
/otra/ruta/diferente/httpd.conf
/opt/lampp/etc/httpd.conf


Edité el archivo httpd.conf y comenté la siguiente línea:

# vim /opt/lampp/etc/httpd.conf
#LoadModule auth_digest_module modules/mod_auth_digest.so


Reiniciamos el lampp nuevamente y eureka, reinició:

# /etc/init.d/lampp restart


Verificamos que ahora sí está corriendo el proceso de lampp y nuetro webserver funciona correctamente:

# /etc/init.d/lampp status
Version:
Apache is running.
MySQL is running.


Si queremos iniciar sólo uno de los servicios del lampp sólo ejecutamos el comando sin ningún parámetro y vermos lo siguiente:

# /etc/init.d/lampp
Usage: /etc/init.d/lampp
        start        Start XAMPP (Apache, MySQL and eventually others)
        startapache  Start only Apache
        startssl     Start only SSL support
        startmysql   Start only MySQL
        startftp     Start only ProFTPD
        stop         Stop XAMPP (Apache, MySQL and eventually others)
        stopapache   Stop only Apache
        stopssl      Stop only SSL support
        stopmysql    Stop only MySQL
        stopftp      Stop only ProFTPD
        reload       Reload XAMPP (Apache, MySQL and eventually others)
        reloadapache Reload only Apache
        reloadmysql  Reload only MySQL
        reloadftp    Reload only ProFTPD
        restart      Stop and start XAMPP
        security     Check XAMPP's security
        php5         Activate PHP5
        php4         Activate PHP4
        phpstatus    Which version of PHP is active?
        backup       Make backup file of your XAMPP config, log and data files
        panel        Starts graphical XAMPP control panel


Luego quedó también sin iniciar el SSL, simplemente con la descripción anterior hacemos lo siguiente:

# /etc/init.d/lampp startssl


No hay comentarios: