Tag: apache2

  • Habilitar mod_rewrite en Ubuntu 14.04

    Habilitar mod_rewrite en Ubuntu 14.04

    Correr el comando para habilitar el mod_rewrite

    sudo a2enmod rewrite

    Se reinicia apache

    sudo service apache2 restart

    El archivo de configuracion por defecto en Ubuntu 14.04 cambió de default.conf a 000-default.conf

    sudo nano /etc/apache2/sites-available/000-default.conf

    Al final del archivo se agrega la ruta webserver:

    <Directory "/var/www/html">
        AllowOverride All
    </Directory>

    En Ubuntu 14.04 tambien cambia la ruta de /var/www/ a /var/www/html

    Reiniciamos apache y Listo

    sudo service apache2 restart

     

     

  • Solución: apache2 could not open error log file /var/log/apache2/error.log

    Si al tratar de subir el servicio apache2 aparece este mensaje:

    Starting web server: apache2(2)No such file or directory: 
    apache2: could not open error log file /var/log/apache2/error.log.
    Unable to open logs
    Action 'start' failed.
    The Apache error log may have more information.
    failed!

    (more…)