Mandriva Flash - Pb installation apache

Bonjour,

je voudrais installer apache, php 4 et mysql. Je suis sur une Mandriva Flash, firefox 2.0, les urpmi sont à jour par easyurpmi.

J'ai suivi ce tutoriel là :
http://www.lea-linux.org/cached/index/Reseau-web-Apache_PHP_MySQL.html

J'ai donc commencer par taper :
urpmi apache2

J'ai eu comme retour :
Un des paquetages suivants est nécessaire :
1- apache-mpm-prefork-2.2.3-1mdv2007.0.i586 : Implements a non-threaded, pre-forking web server (stable) (to install)
2- apache-mpm-worker-2.2.3-1mdv2007.0.i586 : Implements a hybrid multi-threaded multi-process web server (experimental) (to install)
Que choisissez-vous ? (1-2)

Vu que le premier est soit-disant stable je l'ai choisi. J'ai donc eu :
Pour satisfaire les dépendances, les paquetages suivants vont être installés:
apache-base-2.2.3-1mdv2007.0.i586
apache-conf-2.2.3-3mdv2007.0.i586
apache-modules-2.2.3-1mdv2007.0.i586
apache-mpm-prefork-2.2.3-1mdv2007.0.i586
Procéder à l'installation des 4 paquetages ? (2 Mo) (O/n)

Je mis O puis valider. Les paquets se sont installer, pas de problème. Pour faire un test, j'ai arrété apache "service htttpd stop" puis redemarrer. Là une erreur intervient :

Starting httpd: httpd: apr_sockaddr_info_get() failed for pc-de-home
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[FAILED]

Et donc quand je me rend sur http://localhost => erreur page non trouvée (normal...)

J'ai donc désinstallé les paquets correctement et réinstaller avec la même commande, mais au premier choix j'ai choisis le second paquet. Dans celui-ci, tout se passe bien, start stop etc, mais quand je me rend sur http://localhost, toujours rien, ni http://localhost/~damien (fallait bien tester...)

Je suis aussi sous Firefox 2.0, y-a-t'il des réglages sur le navigateur à faire pour que ça marche ?

Voilà, je bloque donc à Apache, je ne peux pas poursuivre avec PHP et MySQL :(

Merci d'avance...
Configuration: Linux
Firefox 2.0.0.3

8 réponses

  1. Merci beaucoup, je l'avais vu ce topic, mais je ne l'ai pas suivi puisque lui au début, son navigateur affiche bien le "It wokrs" et moi non... Je vais quand même aller jeter un coup d'oeil à ce qu'il s'est dit :)

    Merci.
    0
    1. Bon, j'ai essayé de suivre ce qui a été dit dans le lien que tu m'as passé, et rien à faire je n'arrive toujours pas à avoir ce fichu "It works" (c'est fou comment on pourrait se réjouir parfois de voir "it works" sur un navigateur !)

      Des idées ?

      Dans mon /etc/hosts j'ai :
      127.0.0.1 localhost

      Et j'ai validé le choix 2 pour la question en suivant la commande urpmi apache2 (voir premier message du sujet, début).

      Merci d'avance
      0
      1. Modérateur
        Salut,
        affiche
        perl -ne 'print unless /^(\s*#|$)/' /etc/httpd/conf/httpd.conf
        ps aux | grep http
        --
        lami20j
        0
        1. Je tape su puis mon mot de passe.
          Ensuite, voici le resultat de la première commande :

          ServerRoot "/etc/httpd"
          GracefulShutDownTimeout 120
          <IfModule mpm_prefork_module>
          AcceptMutex fcntl
          CoreDumpDirectory /tmp
          EnableExceptionHook Off
          ListenBacklog 511
          LockFile logs/accept.lock
          MaxClients 256
          MaxMemFree 0
          MaxRequestsPerChild 4000
          PidFile /var/run/httpd.pid
          ReceiveBufferSize 0
          SendBufferSize 0
          ServerLimit 256
          StartServers 8
          MinSpareServers 5
          MaxSpareServers 20
          </IfModule>
          <IfModule mpm_worker_module>
          AcceptMutex fcntl
          CoreDumpDirectory /tmp
          EnableExceptionHook Off
          ListenBacklog 511
          LockFile logs/accept.lock
          MaxClients 150
          MaxMemFree 0
          MaxRequestsPerChild 0
          MaxSpareThreads 75
          MinSpareThreads 25
          PidFile /var/run/httpd.pid
          ReceiveBufferSize 0
          SendBufferSize 0
          ServerLimit 256
          StartServers 2
          ThreadLimit 64
          ThreadsPerChild 25
          ThreadStackSize 32768
          </IfModule>
          <IfModule mpm_event_module>
          AcceptMutex fcntl
          CoreDumpDirectory /tmp
          EnableExceptionHook Off
          ListenBacklog 511
          LockFile logs/accept.lock
          MaxClients 150
          MaxMemFree 0
          MaxRequestsPerChild 0
          MaxSpareThreads 75
          MinSpareThreads 25
          PidFile /var/run/httpd.pid
          ReceiveBufferSize 0
          SendBufferSize 0
          ServerLimit 256
          StartServers 2
          ThreadLimit 64
          ThreadsPerChild 25
          ThreadStackSize 32768
          </IfModule>
          Listen 0.0.0.0:80
          LoadModule authn_file_module modules/mod_authn_file.so
          LoadModule authn_anon_module modules/mod_authn_anon.so
          LoadModule authn_default_module modules/mod_authn_default.so
          LoadModule authn_alias_module modules/mod_authn_alias.so
          LoadModule authz_host_module modules/mod_authz_host.so
          LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
          LoadModule authz_user_module modules/mod_authz_user.so
          LoadModule authz_dbm_module modules/mod_authz_dbm.so
          LoadModule authz_owner_module modules/mod_authz_owner.so
          LoadModule authz_default_module modules/mod_authz_default.so
          LoadModule auth_basic_module modules/mod_auth_basic.so
          LoadModule auth_digest_module modules/mod_auth_digest.so
          LoadModule include_module modules/mod_include.so
          LoadModule filter_module modules/mod_filter.so
          LoadModule log_config_module modules/mod_log_config.so
          LoadModule env_module modules/mod_env.so
          LoadModule mime_magic_module modules/mod_mime_magic.so
          LoadModule expires_module modules/mod_expires.so
          LoadModule headers_module modules/mod_headers.so
          LoadModule usertrack_module modules/mod_usertrack.so
          LoadModule unique_id_module modules/mod_unique_id.so
          LoadModule setenvif_module modules/mod_setenvif.so
          LoadModule version_module modules/mod_version.so
          LoadModule mime_module modules/mod_mime.so
          LoadModule status_module modules/mod_status.so
          LoadModule autoindex_module modules/mod_autoindex.so
          LoadModule info_module modules/mod_info.so
          LoadModule cgi_module modules/mod_cgi.so
          LoadModule vhost_alias_module modules/mod_vhost_alias.so
          LoadModule negotiation_module modules/mod_negotiation.so
          LoadModule dir_module modules/mod_dir.so
          LoadModule imagemap_module modules/mod_imagemap.so
          LoadModule actions_module modules/mod_actions.so
          LoadModule alias_module modules/mod_alias.so
          LoadModule rewrite_module modules/mod_rewrite.so
          Include modules.d/*.conf
          Include conf.d/*.conf
          User apache
          Group apache
          ServerAdmin root@localhost
          ServerName localhost:80
          Timeout 300
          KeepAlive On
          MaxKeepAliveRequests 100
          KeepAliveTimeout 5
          UseCanonicalName Off
          ServerTokens OS
          ServerSignature On
          HostnameLookups Off
          DocumentRoot "/var/www/html"
          <Directory />
          Options -All -Multiviews
          AllowOverride None
          Order deny,allow
          Deny from all
          </Directory>
          <Directory "/var/www/html">
          Options -Indexes FollowSymLinks MultiViews
          AllowOverride None
          Order allow,deny
          Allow from all
          </Directory>
          <IfModule mod_include.c>
          <IfModule mod_dir.c>
          DirectoryIndex index.shtml
          </IfModule>
          </IfModule>
          <IfModule mod_dir.c>
          DirectoryIndex index.html index.html.var index.cgi index.pl index.htm Default.htm default.htm index.xml
          </IfModule>
          AccessFileName .htaccess
          <IfModule mod_authz_host.c>
          <FilesMatch "^\.ht">
          Order allow,deny
          Deny from all
          </FilesMatch>
          </IfModule>
          <IfModule mod_mime.c>
          TypesConfig conf/mime.types
          </IfModule>
          DefaultType text/plain
          <IfModule mod_mime_magic.c>
          MIMEMagicFile conf/magic
          </IfModule>
          ErrorLog logs/error_log
          LogLevel warn
          <IfModule mod_log_config.c>
          LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
          LogFormat "%h %l %u %t \"%r\" %>s %b" common
          LogFormat "%{Referer}i -> %U" referer
          LogFormat "%{User-agent}i" agent
          LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost
          <IfModule mod_logio.c>
          </IfModule>
          CustomLog logs/access_log common
          CustomLog logs/access_log combined
          </IfModule>
          <IfModule mod_alias.c>
          Alias /icons/ "/var/www/icons/"
          Alias /error/ "/var/www/error/"
          ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
          ScriptAlias /protected-cgi-bin/ "/var/www/protected-cgi-bin/"
          </IfModule>
          <Directory "/var/www/icons">
          Options -Indexes MultiViews
          AllowOverride None
          Order allow,deny
          Allow from all
          </Directory>
          <IfModule mod_cgid.c>
          </IfModule>
          <Directory "/var/www/cgi-bin">
          AllowOverride All
          Options ExecCGI
          Order allow,deny
          Allow from all
          </Directory>
          <Directory "/var/www/protected-cgi-bin">
          AllowOverride All
          Options ExecCGI
          Order deny,allow
          Deny from all
          Allow from 127.0.0.1
          </Directory>
          <IfModule mod_autoindex.c>
          IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
          AddIconByEncoding (CMP,/icons/compressed.png) x-compress x-gzip
          AddIconByType (TXT,/icons/text.png) text/*
          AddIconByType (IMG,/icons/image2.png) image/*
          AddIconByType (SND,/icons/sound2.png) audio/*
          AddIconByType (VID,/icons/movie.png) video/*
          AddIcon /icons/binary.png .bin .exe
          AddIcon /icons/binhex.png .hqx
          AddIcon /icons/tar.png .tar
          AddIcon /icons/world2.png .wrl .wrl.gz .vrml .vrm .iv
          AddIcon /icons/compressed.png .Z .z .tgz .gz .zip
          AddIcon /icons/a.png .ps .ai .eps
          AddIcon /icons/layout.png .html .shtml .htm .pdf
          AddIcon /icons/text.png .txt
          AddIcon /icons/c.png .c
          AddIcon /icons/p.png .pl .py
          AddIcon /icons/f.png .for
          AddIcon /icons/dvi.png .dvi
          AddIcon /icons/uuencoded.png .uu
          AddIcon /icons/script.png .conf .sh .shar .csh .ksh .tcl
          AddIcon /icons/tex.png .tex
          AddIcon /icons/bomb.png core
          AddIcon /icons/back.png ..
          AddIcon /icons/hand.right.png README
          AddIcon /icons/folder.png ^^DIRECTORY^^
          AddIcon /icons/blank.png ^^BLANKICON^^
          DefaultIcon /icons/unknown.png
          ReadmeName README.html
          HeaderName HEADER.html
          IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
          </IfModule>
          <IfModule mod_mime.c>
          AddLanguage ca .ca
          AddLanguage cs .cz .cs
          AddLanguage da .dk
          AddLanguage de .de
          AddLanguage el .el
          AddLanguage en .en
          AddLanguage eo .eo
          AddLanguage es .es
          AddLanguage et .et
          AddLanguage fr .fr
          AddLanguage he .he
          AddLanguage hr .hr
          AddLanguage it .it
          AddLanguage ja .ja
          AddLanguage ko .ko
          AddLanguage ltz .ltz
          AddLanguage nl .nl
          AddLanguage nn .nn
          AddLanguage no .no
          AddLanguage pl .po
          AddLanguage pt .pt
          AddLanguage pt-BR .pt-br
          AddLanguage ru .ru
          AddLanguage sv .sv
          AddLanguage zh-CN .zh-cn
          AddLanguage zh-TW .zh-tw
          <IfModule mod_negotiation.c>
          LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
          </IfModule>
          <IfModule mod_negotiation.c>
          ForceLanguagePriority Prefer Fallback
          </IfModule>
          AddCharset us-ascii.ascii .us-ascii
          AddCharset ISO-8859-1 .iso8859-1 .latin1
          AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
          AddCharset ISO-8859-3 .iso8859-3 .latin3
          AddCharset ISO-8859-4 .iso8859-4 .latin4
          AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
          AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
          AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
          AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
          AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
          AddCharset ISO-8859-10 .iso8859-10 .latin6
          AddCharset ISO-8859-13 .iso8859-13
          AddCharset ISO-8859-14 .iso8859-14 .latin8
          AddCharset ISO-8859-15 .iso8859-15 .latin9
          AddCharset ISO-8859-16 .iso8859-16 .latin10
          AddCharset ISO-2022-JP .iso2022-jp .jis
          AddCharset ISO-2022-KR .iso2022-kr .kis
          AddCharset ISO-2022-CN .iso2022-cn .cis
          AddCharset Big5 .Big5 .big5
          AddCharset WINDOWS-1251 .cp-1251 .win-1251
          AddCharset CP866 .cp866
          AddCharset KOI8 .koi8
          AddCharset KOI8-E .koi8-e
          AddCharset KOI8-r .koi8-r .koi8-ru
          AddCharset KOI8-U .koi8-u
          AddCharset KOI8-ru .koi8-uk .ua
          AddCharset ISO-10646-UCS-2 .ucs2
          AddCharset ISO-10646-UCS-4 .ucs4
          AddCharset UTF-7 .utf7
          AddCharset UTF-8 .utf8
          AddCharset UTF-16 .utf16
          AddCharset UTF-16BE .utf16be
          AddCharset UTF-16LE .utf16le
          AddCharset UTF-32 .utf32
          AddCharset UTF-32BE .utf32be
          AddCharset UTF-32LE .utf32le
          AddCharset GB2312 .gb2312 .gb
          AddCharset utf-7 .utf7
          AddCharset utf-8 .utf8
          AddCharset big5 .big5 .b5
          AddCharset EUC-TW .euc-tw
          AddCharset EUC-JP .euc-jp
          AddCharset EUC-KR .euc-kr
          AddCharset shift_jis .sjis
          AddDefaultCharset Off
          AddType application/x-compress .Z
          AddType application/x-gzip .gz .tgz
          AddType image/x-icon .ico
          AddHandler cgi-script .cgi
          AddHandler imap-file map
          AddHandler type-map var
          <IfModule mod_include.c>
          AddType text/html .shtml
          AddOutputFilter INCLUDES .shtml
          </IfModule>
          </IfModule>
          <IfModule mod_negotiation.c>
          <IfModule mod_include.c>
          <Directory "/var/www/error">
          AllowOverride None
          Options IncludesNoExec
          AddOutputFilter Includes html
          AddHandler type-map var
          Order allow,deny
          Allow from all
          LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
          ForceLanguagePriority Prefer Fallback
          </Directory>

          ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
          ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
          ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
          ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
          ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
          ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
          ErrorDocument 410 /error/HTTP_GONE.html.var
          ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
          ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
          ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
          ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
          ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
          ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
          ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
          ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
          ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
          ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
          </IfModule>
          </IfModule>
          <IfModule mod_setenvif.c>
          BrowserMatch "Mozilla/2" nokeepalive
          BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
          BrowserMatch "RealPlayer 4\.0" force-response-1.0
          BrowserMatch "Java/1\.0" force-response-1.0
          BrowserMatch "JDK/1\.0" force-response-1.0
          BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
          BrowserMatch "MS FrontPage" redirect-carefully
          BrowserMatch "^WebDrive" redirect-carefully
          BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
          BrowserMatch "^gnome-vfs" redirect-carefully
          BrowserMatch "^XML Spy" redirect-carefully
          BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
          </IfModule>

          <IfModule mod_status.c>
          <Location /server-status>
          SetHandler server-status
          Order deny,allow
          Deny from all
          allow from 127.0.0.1
          </Location>
          ExtendedStatus On
          </IfModule>
          <IfModule mod_info.c>
          <Location /server-info>
          SetHandler server-info
          Order deny,allow
          Deny from all
          allow from 127.0.0.1
          </Location>
          </IfModule>
          <IfModule mod_usertrack.c>
          CookieName Apache
          </IfModule>
          <Directory /var/www/html/addon-modules>
          Options Indexes FollowSymLinks
          </Directory>
          <Location /index.shtml>
          Options +Includes
          </Location>
          Include conf/fileprotector.conf
          Include conf/webapps.d/*.conf
          Include conf/vhosts.d/*.conf

          Voici la seconde commande :
          damien 9535 2.2 5.5 38644 20352 ? S 10:09 0:04 kwrite [kdeinit] /etc/httpd/conf/httpd.conf
          root 9763 0.0 0.2 2964 756 pts/1 R+ 10:13 0:00 grep --color http

          J'ai seulement rajouté :
          ServerName localhost
          dans le httpd.conf (comme j'avais vu que tu avais mis dans un autre problème)

          et mon fichier Hosts ressemble à :
          127.0.0.1 localhost

          Merci.
          0
          1. Modérateur
            Salut,

            ton serveur n'est pas en marche
            il faut le démarrer (en root fait)
            /sbin/chkconfig httpd on
            /sbin/service httpd start

            0
            1. J'ai tapé les commandes que tu m'as dites, mais toujours rien...

              J'ai vu que dans le httpd.conf il y a :
              User apache
              Group apache

              Est-ce normal ?
              Je suis connecté sous le compte "damien" et je passe en root pour toutes les commandes.

              Et ne faut-il rien faire avec "NameVirtualHost" ?

              Merci.
              0
              1. Modérateur
                J'ai tapé les commandes que tu m'as dites, mais toujours rien...

                Ne soit pas si sûr. Maintenant que tu as taper ce que je t'ai demandé et tu n'as pas eu des messages d'erreurs alors peut être qu'il y a des changement sans te rendre compte

                affiche maintenant
                ps aux | grep httpd
                chkconfig --list httpd
                --
                lami20j
                0