Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2506 connectés 

 


Dernière réponse
Sujet : Impossible de se connecter au serveur Apache (ça marche toujours pas)
Olivier51 Merci beaucoup ça marche, je remercie sincèrement tout ceux qui m'ont aidé !!!

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Olivier51 Merci beaucoup ça marche, je remercie sincèrement tout ceux qui m'ont aidé !!!
Snipe Foo

Olivier51 a écrit a écrit :

C'est quoi "lo" ???




C'est une interface loopback, c'est comme une carte réseau sauf qu'elle est virtuelle, comme ça ton ordi peut lancer des serveurs et des clients sans avoir de connexions avec un réseau.

Sly Angel

Olivier51 a écrit a écrit :

C'est quoi "lo" ???




 
C'est localhost = 127.0.0.1

monokrome loopback interface
 
Sly Angel ifconfig lo down
ifconfig lo 127.0.0.1 netmask 255.0.0.0
 
Ca devrait aller mieux :)
Olivier51 C'est quoi "lo" ???
Snipe Foo J'ai pas de linux sous la main, il y en a pas un qui peut lui donner la config de lo genre
 
ifconfig lo 127.0.0.1 255.255.255.255
Olivier51 [root@localhost olivier]# ifconfig -a
lo        Link encap:Local Loopback
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
Snipe Foo donc le probleme ne viens pas d'apache, mais de ta config réseau...
 
ifconfig -a te donne koi ?
Olivier51 [olivier@localhost olivier]$ ping 127.0.0.1
connect: Network is unreachable
Snipe Foo si tu fais un ping localhost ou un ping 127.0.0.1, quel est le résultat ?
 
si tu as un serveur telnet ou ssh sur ta machine et que tu fais un telnet/ssh localhost ou telnet/ssh 127.0.0.1, est ce que cela fonctionne ?
Olivier51 J'ai déjà essayé avec le httpd.conf d'origine et ça marchait pas ...
chaica Essaie ServerName 127.0.0.1
 
CHaiCA
Snipe Foo Et si tu remet le fichier httpd.conf d'origine, ça fonctionne ?
Olivier51 :bounce: ça fait longtemps, mais j'ai toujours le problème, si il y en a qui ont une idée ...
Olivier51 Voici le résultat du telnet (Serveur Apache lancé) :

Code :
  1. [root@localhost bin]# telnet localhost 80
  2. Trying 127.0.0.1...
  3. telnet: Unable to connect to remote host: Connection timed out


 
Fichier : /var/log/httpd/error_log

Code :
  1. [Fri Aug 30 13:28:22 2002] [notice] Apache-AdvancedExtranetServer/1.3.19 (Linux-Mandrake/3mdk) configured -- resuming normal operations
  2. [Fri Aug 30 13:29:29 2002] [notice] caught SIGTERM, shutting down
  3. [Fri Aug 30 18:58:10 2002] [notice] Apache-AdvancedExtranetServer/1.3.19 (Linux-Mandrake/3mdk) configured -- resuming normal operations
  4. [Fri Aug 30 19:01:22 2002] [notice] caught SIGTERM, shutting down


 
Fichier : /var/log/httpd/logs/error_log

Code :
  1. [Sun Sep  1 18:13:12 2002] [notice] Apache/1.3.12 (Unix) configured -- resuming normal operations
  2. [Sun Sep  1 18:52:20 2002] [notice] caught SIGTERM, shutting down
  3. [Sun Sep  1 18:52:24 2002] [notice] Apache/1.3.26 (Unix) configured -- resuming normal operations
  4. [Sun Sep  1 18:52:24 2002] [notice] Accept mutex:  (Default: sysvsem)
  5. [Sun Sep  1 18:54:40 2002] [notice] caught SIGTERM, shutting down
  6. [Sun Sep  1 18:54:43 2002] [notice] Apache/1.3.26 (Unix) configured -- resuming normal operations
  7. [Sun Sep  1 18:54:43 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
  8. [Sun Sep  1 19:14:32 2002] [notice] caught SIGTERM, shutting down
  9. [Sun Sep  1 20:13:20 2002] [notice] Apache/1.3.26 (Unix) configured -- resuming normal operations
  10. [Sun Sep  1 20:13:20 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
  11. [Sun Sep  1 22:09:42 2002] [notice] caught SIGTERM, shutting down
  12. [Mon Sep  2 11:47:56 2002] [notice] Apache/1.3.26 (Unix) configured -- resuming normal operations
  13. [Mon Sep  2 11:47:56 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
  14. [Mon Sep  2 12:06:45 2002] [notice] caught SIGTERM, shutting down

Olivier51 Pour le error_log (fichier donné dans le post de départ) :

Code :
  1. [Sat Aug 31 12:32:26 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
  2. [Sat Aug 31 12:36:37 2002] [notice] caught SIGTERM, shutting down
  3. [Sat Aug 31 14:39:30 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
  4. [Sat Aug 31 14:50:49 2002] [notice] caught SIGTERM, shutting down
  5. [Sat Aug 31 14:50:53 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
  6. [Sat Aug 31 14:59:49 2002] [notice] caught SIGTERM, shutting down
  7. [Sat Aug 31 14:59:53 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
  8. [Sat Aug 31 15:02:14 2002] [notice] caught SIGTERM, shutting down
  9. [Sat Aug 31 15:02:17 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
  10. [Sat Aug 31 15:08:51 2002] [notice] caught SIGTERM, shutting down
  11. [Sat Aug 31 15:08:53 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
  12. [Sat Aug 31 15:13:05 2002] [notice] caught SIGTERM, shutting down
  13. [Sat Aug 31 15:13:12 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations


 
Donc il quitte normalement.

grognon74 et le fichier error_log , y a koi dedans , ?
Sly Angel impossible de se connecter donc c'est pas un problème de config de droits ça sinon ça serait un forbidden.
 
C'est quand même curieux que ton apache écoute tout sur le bon port et que tu es un "impossible de se connecter" :??:
 
Si tu fais un "telnet localhost 80" , ça donne quoi ?
 
Olivier51 Si ça peux aider voilà un ps -ax :

Code :
  1. PID TTY      STAT   TIME COMMAND
  2.     1 ?        S      0:04 init
  3.     2 ?        SW     0:00 [keventd]
  4.     3 ?        SW     0:31 [kapm-idled]
  5.     4 ?        SW     0:00 [kswapd]
  6.     5 ?        SW     0:00 [kreclaimd]
  7.     6 ?        SW     0:00 [bdflush]
  8.     7 ?        SW     0:00 [kupdated]
  9.     8 ?        SW<    0:00 [mdrecoveryd]
  10.   331 ?        SW     0:00 [khubd]
  11.   361 ?        S      0:00 /usr/sbin/usbd -l
  12.   373 ?        S      0:00 syslogd -m 0
  13.   382 ?        S      0:00 klogd -2
  14.   561 ?        S      0:00 crond
  15.   574 ?        S      0:00 xfs -port -1 -daemon -user xfs
  16.   635 tty1     S      0:00 /sbin/mingetty tty1
  17.   636 tty2     S      0:00 /sbin/mingetty tty2
  18.   637 tty3     S      0:00 /sbin/mingetty tty3
  19.   638 tty4     S      0:00 /sbin/mingetty tty4
  20.   639 tty5     S      0:00 /sbin/mingetty tty5
  21.   640 tty6     S      0:00 /sbin/mingetty tty6
  22.   641 ?        S      0:00 /usr/bin/kdm -nodaemon
  23.   649 ?        R      2:10 /etc/X11/X -deferglyphs 16 -auth /etc/X11/xdm/authdir  653 ?        S      0:00 -:0
  24.   671 ?        S      0:00 ksmserver --restore
  25.   730 ?        S      0:00 kdeinit: dcopserver --nosid
  26.   732 ?        S      0:00 kdeinit: klauncher
  27.   734 ?        S      0:00 kdeinit: kded
  28.   738 ?        S      0:00 kdeinit: kxmlrpcd
  29.   745 ?        S      0:01 artsd -F 10 -S 4096
  30.   746 ?        S      0:00 kdeinit: Running...
  31.   748 ?        S      0:00 knotify
  32.   749 ?        S      0:01 kdeinit: kwin
  33.   751 ?        S      0:01 kdeinit: kdesktop
  34.   753 ?        S      0:01 kdeinit: kicker
  35.   756 ?        S      0:00 kdeinit: klipper -icon klipper -miniicon klipper
  36.   758 ?        S      0:00 kdeinit: khotkeys
  37.   760 ?        S      0:00 kdeinit: kwrited
  38.   761 pts/0    S      0:00 /bin/cat
  39.   781 ?        S      0:00 /usr/bin/kppp
  40.   782 ?        S      0:00 /usr/bin/kppp
  41.   792 ttyS0    S      0:00 pppd 115200 -detach crtscts defaultroute usepeerdns -  805 ?        S      0:00 kdeinit: kcookiejar
  42.   808 ?        S      0:00 kdesud
  43.   814 ?        S      0:01 kdeinit: konsole -icon konsole.png -miniicon konsole.  815 pts/1    S      0:00 /bin/bash
  44.   859 ?        S      0:37 kdeinit: konqueror --silent
  45.   860 ?        S      0:00 kdeinit: kio_file file /tmp/ksocket-olivier/klauncher  861 ?        S      0:00 kdeinit: kio_file file /tmp/ksocket-olivier/klauncher  862 ?        S      0:00 kdeinit: kio_file file /tmp/ksocket-olivier/klauncher  863 ?        S      0:00 kdeinit: kio_file file /tmp/ksocket-olivier/klauncher  864 ?        S      0:00 kdeinit: kio_http http /tmp/ksocket-olivier/klauncher  866 ?        S      0:00 kdeinit: kio_http http /tmp/ksocket-olivier/klauncher  870 ?        S      0:00 kdeinit: kio_http http /tmp/ksocket-olivier/klauncher  871 ?        S      0:00 kdeinit: kio_http http /tmp/ksocket-olivier/klauncher  872 ?        S      0:00 kdeinit: kio_http http /tmp/ksocket-olivier/klauncher  873 ?        S      0:00 kdeinit: kio_http http /tmp/ksocket-olivier/klauncher  899 ?        S      0:00 kdeinit: konsole -icon konsole.png -miniicon konsole.  901 pts/2    S      0:00 /bin/bash
  46.   919 pts/2    S      0:00 su
  47.   923 pts/2    S      0:00 bash
  48.   949 ?        S      0:00 /usr/local/apache/bin/httpd
  49.   950 ?        S      0:00 /usr/local/apache/bin/httpd
  50.   951 ?        S      0:00 /usr/local/apache/bin/httpd
  51.   952 ?        S      0:00 /usr/local/apache/bin/httpd
  52.   953 ?        S      0:00 /usr/local/apache/bin/httpd
  53.   954 ?        S      0:00 /usr/local/apache/bin/httpd
  54.   955 pts/2    R      0:00 ps -ax

Olivier51 Je viens de télécharger la dernière version d'Apache 1.3.26 (sur leur site) et je l'ai installé comme ça :
 
su
./configure --mandir=/usr/local/man --sysconfdir=/etc/httpd/conf \
> --localstatedir=/var/log/httpd --htdocsdir=/var/www/html --cgidir=/var/www/cgi-bin;
make
make install
 
Et ça ne marche toujours pas, toujours le même msg d'erreur, peut-être est-ce un problème de droit ... Aidez moi s'il vous plait !!!
Olivier51 Exact, mais normalement ça ne devrais rien changer pour le fonctionnement du serveur, je vais essayer de réinstaller Apache pour voir si ça va mieux ...
slaanesh

ServerName localhost


le ServerName localhost tu peux l'oublier et le mettre en commentaires.
 

<IfModule mod_userdir.c>
   UserDir www
</IfModule>
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>


Pour rester cohérent, puisque tu as définit le user_dir à 'www', change aussi '/home/*/public_html' par '/home/*/www'

Olivier51

Code :
  1. ##
  2. ## httpd.conf -- Apache HTTP server configuration file
  3. ##
  4. ServerType standalone
  5. ServerRoot "/usr/local/apache"
  6. #LockFile /usr/local/apache/logs/httpd.lock
  7. PidFile /usr/local/apache/logs/httpd.pid
  8. ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
  9. #ResourceConfig conf/srm.conf
  10. #AccessConfig conf/access.conf
  11. Timeout 300
  12. KeepAlive On
  13. MaxKeepAliveRequests 100
  14. KeepAliveTimeout 15
  15. MinSpareServers 5
  16. MaxSpareServers 10
  17. StartServers 5
  18. MaxClients 150
  19. MaxRequestsPerChild 0
  20. #Listen 3000
  21. #Listen 12.34.56.78:80
  22. #BindAddress *
  23. #ExtendedStatus On
  24. Port 80
  25. User nobody
  26. Group nobody
  27. ServerAdmin root@localhost.localdomain
  28. #ServerName localhost.localdomain    -> dans tous les cas ça marche pas
  29. ServerName localhost
  30. DocumentRoot "/var/www/html"
  31. <Directory />
  32.     Options FollowSymLinks
  33.     AllowOverride None
  34. </Directory>
  35. <Directory "/var/www/html">
  36.     Options Indexes FollowSymLinks MultiViews
  37.     AllowOverride None
  38.     Order allow,deny
  39.     Allow from all
  40. </Directory>
  41. <IfModule mod_userdir.c>
  42.     UserDir www
  43. </IfModule>
  44. #<Directory /home/*/public_html>
  45. #    AllowOverride FileInfo AuthConfig Limit
  46. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  47. #    <Limit GET POST OPTIONS PROPFIND>
  48. #        Order allow,deny
  49. #        Allow from all
  50. #    </Limit>
  51. #    <LimitExcept GET POST OPTIONS PROPFIND>
  52. #        Order deny,allow
  53. #        Deny from all
  54. #    </LimitExcept>
  55. #</Directory>
  56. <IfModule mod_dir.c>
  57.     DirectoryIndex index.html index.htm index.php index.php3 index.php4
  58. </IfModule>
  59. AccessFileName .htaccess
  60. <Files ~ "^\.ht">
  61.     Order allow,deny
  62.     Deny from all
  63. </Files>
  64. UseCanonicalName On
  65. <IfModule mod_mime.c>
  66.     TypesConfig /usr/local/apache/conf/mime.types
  67. </IfModule>
  68. DefaultType text/plain
  69. <IfModule mod_mime_magic.c>
  70.     MIMEMagicFile /usr/local/apache/conf/magic
  71. </IfModule>
  72. HostnameLookups Off
  73. ErrorLog /usr/local/apache/logs/error_log
  74. LogLevel warn
  75. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  76. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  77. LogFormat "%{Referer}i -> %U" referer
  78. LogFormat "%{User-agent}i" agent
  79. CustomLog /usr/local/apache/logs/access_log common
  80. #CustomLog /usr/local/apache/logs/referer_log referer
  81. #CustomLog /usr/local/apache/logs/agent_log agent
  82. #CustomLog /usr/local/apache/logs/access_log combined
  83. ServerSignature On
  84. <IfModule mod_alias.c>
  85.     Alias /icons/ "/usr/local/apache/icons/"
  86.     <Directory "/usr/local/apache/icons">
  87.         Options Indexes MultiViews
  88.         AllowOverride None
  89.         Order allow,deny
  90.         Allow from all
  91.     </Directory>
  92.     ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  93.     <Directory "/var/www/cgi-bin">
  94.         AllowOverride None
  95.         Options None
  96.         Order allow,deny
  97.         Allow from all
  98.     </Directory>
  99. </IfModule>
  100. <IfModule mod_autoindex.c>
  101.     IndexOptions FancyIndexing
  102.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  103.     AddIconByType (TXT,/icons/text.gif) text/*
  104.     AddIconByType (IMG,/icons/image2.gif) image/*
  105.     AddIconByType (SND,/icons/sound2.gif) audio/*
  106.     AddIconByType (VID,/icons/movie.gif) video/*
  107.     AddIcon /icons/binary.gif .bin .exe
  108.     AddIcon /icons/binhex.gif .hqx
  109.     AddIcon /icons/tar.gif .tar
  110.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  111.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  112.     AddIcon /icons/a.gif .ps .ai .eps
  113.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  114.     AddIcon /icons/text.gif .txt
  115.     AddIcon /icons/c.gif .c
  116.     AddIcon /icons/p.gif .pl .py
  117.     AddIcon /icons/f.gif .for
  118.     AddIcon /icons/dvi.gif .dvi
  119.     AddIcon /icons/uuencoded.gif .uu
  120.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  121.     AddIcon /icons/tex.gif .tex
  122.     AddIcon /icons/bomb.gif core
  123.     AddIcon /icons/back.gif ..
  124.     AddIcon /icons/hand.right.gif README
  125.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  126.     AddIcon /icons/blank.gif ^^BLANKICON^^
  127.     DefaultIcon /icons/unknown.gif
  128.     #AddDescription "GZIP compressed document" .gz
  129.     #AddDescription "tar archive" .tar
  130.     #AddDescription "GZIP compressed tar archive" .tgz
  131.     ReadmeName README
  132.     HeaderName HEADER
  133.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  134. </IfModule>
  135. <IfModule mod_mime.c>
  136.     AddEncoding x-compress Z
  137.     AddEncoding x-gzip gz tgz
  138.     AddLanguage da .dk
  139.     AddLanguage nl .nl
  140.     AddLanguage en .en
  141.     AddLanguage et .ee
  142.     AddLanguage fr .fr
  143.     AddLanguage de .de
  144.     AddLanguage el .el
  145.     AddLanguage it .it
  146.     AddLanguage ja .ja
  147.     AddCharset ISO-2022-JP .jis
  148.     AddLanguage pl .po
  149.     AddCharset ISO-8859-2 .iso-pl
  150.     AddLanguage pt .pt
  151.     AddLanguage pt-br .pt-br
  152.     AddLanguage ltz .lu
  153.     AddLanguage ca .ca
  154.     AddLanguage es .es
  155.     AddLanguage sv .se
  156.     AddLanguage cz .cz
  157.     <IfModule mod_negotiation.c>
  158.         LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv
  159.     </IfModule>
  160.     AddType application/x-httpd-php3 .php3
  161.     AddType application/x-httpd-php3-source .phps
  162.     AddType application/x-httpd-php .php .php4
  163.     AddType application/x-httpd-php-source .phps
  164.     AddType application/x-tar .tgz
  165.     #AddHandler cgi-script .cgi
  166.     #AddType text/html .shtml
  167.     #AddHandler server-parsed .shtml
  168.     #AddHandler send-as-is asis
  169.     #AddHandler imap-file map
  170.     #AddHandler type-map var
  171. </IfModule>
  172. <IfModule mod_setenvif.c>
  173.     BrowserMatch "Mozilla/2" nokeepalive
  174.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  175.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  176.     BrowserMatch "Java/1\.0" force-response-1.0
  177.     BrowserMatch "JDK/1\.0" force-response-1.0
  178. </IfModule>
  179. #<Location /server-status>
  180. #    SetHandler server-status
  181. #    Order deny,allow
  182. #    Deny from all
  183. #    Allow from .your_domain.com
  184. #</Location>
  185. #<Location /server-info>
  186. #    SetHandler server-info
  187. #    Order deny,allow
  188. #    Deny from all
  189. #    Allow from .your_domain.com
  190. #</Location>
  191. #<Location /cgi-bin/phf*>
  192. #    Deny from all
  193. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  194. #</Location>
  195. #<IfModule mod_proxy.c>
  196.     #ProxyRequests On
  197.     #
  198.     #<Directory proxy:*>
  199.     #    Order deny,allow
  200.     #    Deny from all
  201.     #    Allow from .your_domain.com
  202.     #</Directory>
  203.     #ProxyVia On
  204.     #CacheRoot "/usr/local/apache/proxy"
  205.     #CacheSize 5
  206.     #CacheGcInterval 4
  207.     #CacheMaxExpire 24
  208.     #CacheLastModifiedFactor 0.1
  209.     #CacheDefaultExpire 1
  210.     #NoCache a_domain.com another_domain.edu joes.garage_sale.com
  211. #</IfModule>
  212. #NameVirtualHost 12.34.56.78:80
  213. #NameVirtualHost 12.34.56.78
  214. #<VirtualHost ip.address.of.host.some_domain.com>
  215. #    ServerAdmin webmaster@host.some_domain.com
  216. #    DocumentRoot /www/docs/host.some_domain.com
  217. #    ServerName host.some_domain.com
  218. #    ErrorLog logs/host.some_domain.com-error_log
  219. #    CustomLog logs/host.some_domain.com-access_log common
  220. #</VirtualHost>
  221. #<VirtualHost _default_:*>
  222. #</VirtualHost

slaanesh non...
si tu a un localhost:www-http, ca veut dir qu'il écoutes uniquement les requêtes qui sont envoyer sur 127.0.0.1 (le localhost) tandis que si tu as *:www-http, il écoutes toutes requêtes sur le port www-http qui lui parviennent et ce quel que soit l'IP de destination demandé dans la requete
Olivier51 pour mon netstat ça dvra pas tre écrit comme ça

Code :
  1. [root@localhost olivier]# netstat --inet -a -p | grep httpd
  2. tcp        0      0 localhost:www-http              *:*                     LISTEN      943/httpd

 
au lieu de :

Code :
  1. [root@localhost olivier]# netstat --inet -a -p | grep httpd
  2. tcp        0      0 *:www-http              *:*                     LISTEN      943/httpd

slaanesh fé voir ton httpd.conf
Olivier51 ça change rien ...
 
Petite précision, j'ai bien mis :
ServerName localhost
 
(j'ai essayé de change cette ligne et ça change rien ...)
slaanesh et en remplacant l'adresse que tu utilises par:
http://127.0.0.1
ca change rien ?
Olivier51 J'ai pas de firewall ...
slaanesh bon et tu est sûr ke tu ne bloques par l'accès au port http avec ton firewall ??
Olivier51 [root@localhost olivier]# netstat --inet -a -p | grep httpd
tcp        0      0 *:www-http              *:*                     LISTEN      943/httpd
slaanesh tapes la commande suivante (en root) et donnes son résultat :

netstat --inet -a -p | grep httpd

Olivier51 Je viens d'installer un serveur Apache sur mon ordinateur, je l'ai lancé, j'ai vérifié qui s'était bien lancé (ps -ax|grep -i apache) et pas de problèmes jusque là, les processus sont bien lancé.
Je lance mon navigateur Internet et saisie l'adresse : http://localhost/ et voilà qu'un message d'erreur apparaît :
Impossible de se connecter à l'hôte localhost
 
Voici ce qui est écrit dans le fichier error_log
[Sat Aug 31 12:32:26 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
[Sat Aug 31 12:36:37 2002] [notice] caught SIGTERM, shutting down
[Sat Aug 31 14:39:30 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
[Sat Aug 31 14:50:49 2002] [notice] caught SIGTERM, shutting down
[Sat Aug 31 14:50:53 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
[Sat Aug 31 14:59:49 2002] [notice] caught SIGTERM, shutting down
[Sat Aug 31 14:59:53 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
[Sat Aug 31 15:02:14 2002] [notice] caught SIGTERM, shutting down
[Sat Aug 31 15:02:17 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
[Sat Aug 31 15:08:51 2002] [notice] caught SIGTERM, shutting down
[Sat Aug 31 15:08:53 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
[Sat Aug 31 15:13:05 2002] [notice] caught SIGTERM, shutting down
[Sat Aug 31 15:13:12 2002] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming normal operations
 
D'après ce que j'ai compris, il n'y a pas l'air d'avoir de problème, peut-être que ça vient du fichier httpd.conf que j'ai modifié ...

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)