commandes utiles - Apache (archives)

Si message d'erreur à relance Apache "Could not reliably determine the server's fully qualified domain name"

modifier /etc/hosts en 127.0.0.1         localhost.localdomain localhost

old: mettre ds /etc/httpd.conf     Servername localhost    et relancer

Pour debian 2.4:

# create the configuration file in the "available" section
echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/servername.conf
# enable it by creating a symlink to it from the "enabled" section
sudo a2enconf servername
# restart the server
sudo service apache2 restart

 

modules à installer (pour drupal): libapache2-mod-php5.
libapache2-mod-auth-mysql.
paquets à installer php5-common php5 php5-gd libapache2-mod-php5

apache2 apache2-utils apache2-mpm-prefork libapache2-mod-chroot libapache2-mod-auth-pam libapache2-mod-auth-sys-group

 

Note : Ubuntu 10 – apache2.conf
Qd Apache se lance, il lit /etc/apache2/apache2.conf

apache2.conf comporte les lignes:
Include ports.conf
Include conf.d/ (other-vhosts-acess-log, security)
Include sites-enabled/

update version debian apache 2.4 (mai 2014) *

/etc/apache2.conf est le fichier d'entrée. Voici comment les autres /etc/apache2/*.conf sont lus:
#    /etc/apache2/
#    |-- apache2.conf
#    |    `--  ports.conf
#    |-- mods-enabled
#    |    |-- *.load
#    |    `-- *.conf
#    |-- conf-enabled
#    |    `-- *.conf
#     `-- sites-enabled
#         `-- *.conf

 

For Ubuntu 10.04: http://drupal.org/node/945860

edit the file: /etc/apache2/sites-enabled/default
(ou /etc/apache2/sites-enabled/000-default)
y chercher:
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

et le modifier tq:
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>