[[TOC]] [[wiki:OSGeo4W_fr Retour]] = Paquet Apache sur OSGeo4W = == Version == * Apache 2.x * you can also browse the exact versions available for OSGeo4W [http://download.osgeo.org/osgeo4w/release/apache/ here] * the source is available at [http://httpd.apache.org/ apache.org] == Installation == === Automatic Install/Start (Windows 7 and beyond) === * the installer will create and start the Apache service during installation automatically * available since Apache package version 2.2.14-2 === Installation/Démarrage manuel (XP et Vista) === * Apache is not automatically installed as a service for WindowsXP & Vista * to install the Apache service: * click on the "OSGeo4w" shortcut on your desktop * the OSGeo4W command window will open * type the following command: {{{ apache-install.bat }}} * you should see a message such as: {{{ Installing the Apache OSGeo4W Web Server service The Apache OSGeo4W Web Server service is successfully installed. Testing httpd.conf.... Errors reported here must be corrected before the service can be started. The Apache OSGeo4W Web Server service is starting. The Apache OSGeo4W Web Server service was started successfully. }}} * The ''apache-uninstall.bat'' and ''apache-restart.bat'' commands are also available to uninstall the service, or restart the server. === Note sur les privilèges administrateurs === If you are using Vista or more recent, you may receive an error when trying to install the Apache service, such as: {{{ >apache-install.bat Installing the Apache OSGeo4W Web Server service (OS 5)Access is denied. : Failed to open the WinNT service manager The service name is invalid. More help is available by typing NET HELPMSG 2185. }}} Starting with Vista, Windows made changes so that you must allow commands to run as administrator. To get around this, you should: * right-click on the "OSGeo4W" shortcut on your desktop * click on "Run as Administrator" [[Image(ticket:145:runas.gif, nolink,title="")]] === Vérifier qu'Apache est installé en tant que Service === * aller dans le menu Démarrer/Panneau de contrôle/Outils d'administration/Services * chercher le serveur web OSGeo4W Apache listé ici [[Image(ticket:145:services.PNG, nolink,title="")]] == Port == * Codé en dur pour le moment pour fonctionner sur le port 80. * Si vous voulez qu'Apache utilise un port différent : * ouvrez ''/osgeo4w/apache/conf/httpd.conf'' dans un éditeur de texte * cherchez "Listen 80" (autour de la ligne 46) * changez la valeur "80" en une autre valeur (telle que "8080") * redémarrez le "serveur web Apache de l'OSGeo4W" Note : si vous avez des problèmes avec les ports, vous pouvez utiliser [http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx TCPView] pour obtenir une liste des ports actifs. == Démarrer == Une fois qu'Apache est installé, vous pouvez maintenant ouvrir un navigateur Internet (Firefox ou Internet Explorer) et aller sur http://localhost [[Image(ticket:145:localhost.gif, nolink,title="")]] == Mainteneurs == * Yewondwossen Assefa * [http://wiki.osgeo.org/wiki/User:Jmckenna Jeff McKenna]