#1 Le 05/01/2013, à 16:37
- Jarodd
[Résolu] Apache - Souci de config après migration vers 12.04
Edit 06/01 : résolu en ajoutant "sudo" quand je redémarre le service Apache
Bonjour,
Je viens de passer de Lucid 10.04 à Precise 12.04. Ma config Apache a semble-t-il été écrasée durant la migration. Voici le fichier /etc/apache2/sites-available/default que j'ai :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warnCustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory></VirtualHost>
Mais quand je veux lancer/redémarrer Apache, j'ai cette erreur :
* Restarting web server apache2
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
[Sat Jan 05 16:25:46 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sat Jan 05 16:25:46 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
[Sat Jan 05 16:25:46 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sat Jan 05 16:25:46 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
Si je comprend bien c'est un souci de port (le 80) et de droits, mais je ne vois pas bien quoi faire vu que c'est le fichier fourni par défaut !
Une idée des modifs à faire ?
Merci d'avance pour votre aide.
Dernière modification par Jarodd (Le 07/01/2013, à 20:20)
Ubuntu 22.04.3 LTS (64 bits)
Hors ligne
#2 Le 05/01/2013, à 20:29
- sylvain1970
Re : [Résolu] Apache - Souci de config après migration vers 12.04
The Apache error log may have more information.
Bonsoir,
y-a-t'il plus d'infos dans le fichier de log ?
Hors ligne
#3 Le 06/01/2013, à 00:14
- Jarodd
Re : [Résolu] Apache - Souci de config après migration vers 12.04
Oui, mais rien de bien utile :
[error] [client 127.0.0.1] File does not exist: /var/www/monsite
Ce qui est logique puisque le DocumentRoot du site n'est pas /var/www. Mais vu que je ne peux pas redémarrer le service, impossible de mettre le nouveau chemin...
Ubuntu 22.04.3 LTS (64 bits)
Hors ligne
#4 Le 06/01/2013, à 01:06
- Jarodd
Re : [Résolu] Apache - Souci de config après migration vers 12.04
J'ai trouvé c'était bien un problème de droits...
En ajoutant un sudo quand je redémarre Apache, ça passe, je n'ai plus les erreurs (je n'ai que des warning dont je m'occuperai plus tard).
Désormais il faut avoir les droits root pour faire cette action, ce n'est pas illogique mais l'erreur n'est pas très parlante !
Merci sylvain1970 !
Dernière modification par Jarodd (Le 06/01/2013, à 01:08)
Ubuntu 22.04.3 LTS (64 bits)
Hors ligne