[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache veut plus demarer!!!




Question bête : ton serveur est bien paramétré en StandAlone (et non par
inetd/xinetd) ? (quoique si ce n'était pas le cas, il ne t'indiquerait
probablement pas d'erreur dans ton fichier de config).

Si c'est bien le cas, tu peux peut-être nous indiquer la trace du
lancement :

sh -x /etc/init.d/apache restart

ultimate:~# sh -x /etc/init.d/apache restart
+ NAME=apache
+ DAEMON=/usr/sbin/apache
+ PIDFILE=/var/run/apache.pid
+ CONF=/etc/apache/httpd.conf
+ APACHECTL=/usr/sbin/apachectl
++ which start-stop-daemon
+ SSD=/sbin/start-stop-daemon
+ ENV=env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin
+ trap '' 1
+ egrep -q -i '^[[:space:]]*ServerType[[:space:]]+inet' /etc/apache/httpd.conf
+ test_config
+ '[' '!' -x /usr/sbin/apachectl ']'
+ APACHECTL=env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin /usr/sbin/apachectl + env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin /usr/sbin/apachectl configtest
+ echo -n 'Restarting apache'
Restarting apache+ start-stop-daemon -q --stop --pidfile /var/run/apache.pid --signal HUP + env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin /sbin/start-stop-daemon --start --pidfile /var/run/apache.pid --exec /usr/sbin/apache
+ '[' 0 -eq 0 ']'
+ echo .
.
+ exit 0
ultimate:~#


Et s'il ne semble pas y avoir de problème, la trace suivante (ou
seulement la fin) :

strace apache -F

voici la fin
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
read(3, "www/guy\n#    ServerName saumonfu"..., 4096) = 1141
lstat64("/etc/squirrelmail/apache.conf", {st_mode=S_IFREG|0644, st_size=722, ...}) = 0
open("/etc/squirrelmail/apache.conf", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=722, ...}) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=722, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
read(4, "Alias /squirrelmail /usr/share/s"..., 4096) = 722
open("./php-apache.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/php4/apache/php-apache.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("./php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/php4/apache/php.ini", O_RDONLY) = 5
getcwd("/", 4096)                       = 2
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
lstat64("/etc/php4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/etc/php4/apache", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/etc/php4/apache/php.ini", {st_mode=S_IFREG|0644, st_size=26732, ...}) = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=26732, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000
read(5, "[PHP]\n\n;;;;;;;;;;;\n; WARNING ;\n;"..., 8192) = 8192
read(5, "me notices (these are warnings w"..., 8192) = 8192
read(5, "guration directives are used by "..., 8192) = 8192
read(5, "_reporting(0) around the eval()."..., 8192) = 2156
read(5, "", 4096)                       = 0
read(5, "", 8192)                       = 0
close(5)                                = 0
munmap(0x40026000, 4096)                = 0
open("/etc/protocols", O_RDONLY)        = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=2478, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000
read(5, "# Internet (IP) protocols\n#\n# Up"..., 4096) = 2478
close(5)                                = 0
munmap(0x40026000, 4096)                = 0
open("/etc/protocols", O_RDONLY)        = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=2478, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000
read(5, "# Internet (IP) protocols\n#\n# Up"..., 4096) = 2478
close(5)                                = 0
munmap(0x40026000, 4096)                = 0
geteuid32()                             = 0
getpid()                                = 8454
unlink("/tmp/session_mm_apache0.mem") = -1 ENOENT (No such file or directory)
open("/tmp/session_mm_apache0.mem", O_RDWR|O_CREAT|O_EXCL, 0600) = 5
ftruncate(5, 67108864)                  = 0
write(5, "\0\0\0\0", 4)                 = 4
old_mmap(NULL, 67108864, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0) = 0x44b4e000
close(5)                                = 0
unlink("/tmp/session_mm_apache0.sem") = -1 ENOENT (No such file or directory)
open("/tmp/session_mm_apache0.sem", O_RDWR|O_CREAT|O_EXCL, 0600) = 5
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
getpid()                                = 8454
fcntl64(5, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
fcntl64(5, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
ultimate:~#

c'est tres gentil a vous d'aider un pauvre debianniste un peu perdu la ;-)
Guy



Fred





Reply to: