FORUM Syndrome-OC - Jacky-PC


  Software et OS Alternatif


  Autres


  [ Reglé ] APPACHE config pour php

 




Le salon de discussion : Static, 1 utilisateur anonyme et 7 utilisateurs inconnus

 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[ Reglé ] APPACHE config pour php

n°36465
THC ziG
Posté le 17-06-2005 à 03:44:38  profilanswer
 

bonjour, je m'essail a crée un serveur web jai trouvé un tuto en frençais :)
http://zigzaginnss.free.fr/tst/Tut [...] ur_Web.pdf
 
Probleme je bloque a l'instalation du php :(
systaxe error ligne 137
a la ligne jai le module qui permet a appache de geré le php

Code :
  1. LoadModule E:/Serveur/php4/sapi/php4apache.dll
  2. AddModule mod_php4.c
  3. AddType application/x-httpd-php .php .php3 .php4


 
Message derreur complet

Code :
  1. Syntax error on line 134 of E:/Serveur/ApacheGroupe/Apache2/conf/httpd.conf:
  2. loadmodule takes tow arguments, a module name and the name of a shared objet file to load it from
  3. note the errors or message above, and press the esc...


 
 :hello: Merci du coup de main


Message édité par THC ziG le 17-06-2005 à 22:35:25
mood
Google
Posté le 17-06-2005 à 03:44:38  profilanswer
 

n°36466
M4vrick
Inventeur de la Watercase
Posté le 17-06-2005 à 07:54:32  profilanswer
 

j'ai jamais fait de config d'apache ou autre... mais quand je vois marqué ca : "loadmodule takes tow arguments" alors que tu n'as qu'un seul argument dans ton loadmodule je pense que c'est plutot clair non?


---------------
--== M4vr|ck ==--  Le Tuning jusqu'au bout des cables
Flea Award 2003 de la machine la plus artistique au PC Tuning Show
n°36467
Le Veilleu​r
.:. .:.
Posté le 17-06-2005 à 08:29:24  profilanswer
 

Si tu recopiais convenablement, je suis certain que ca marcherait mieux
 

Code :
  1. LoadModule php4_module c:/php4/sapi/php4apache.dll
  2. AddModule mod_php4.c
  3. AddType application/x-httpd-php .php .php3 .php4


Message édité par Le Veilleur le 17-06-2005 à 08:29:46

---------------
http://LeVeilleur.net
Hostipics.net : Hébergement gratuit de vos photos pour forums, ...
n°36474
THC ziG
Posté le 17-06-2005 à 14:15:05  profilanswer
 

toujour le meme probleme, toujour la meme erreur.
esque sa pourrai etre parce que les fichier ce trouve sur mon HDD 2 ? et non pas dans c: ?

n°36475
Le Veilleu​r
.:. .:.
Posté le 17-06-2005 à 16:45:31  profilanswer
 

THC ziG a écrit :

toujour le meme probleme, toujour la meme erreur.
esque sa pourrai etre parce que les fichier ce trouve sur mon HDD 2 ? et non pas dans c: ?


non je ne pense pas.
Balance ton httpd.conf au complet, histoire que l'on regarde à ca ;)


---------------
http://LeVeilleur.net
Hostipics.net : Hébergement gratuit de vos photos pour forums, ...
n°36476
THC ziG
Posté le 17-06-2005 à 16:48:50  profilanswer
 

ok voici voila

Code :
  1. ===
  2. #
  3. # Based upon the NCSA server configuration files originally by Rob McCool.
  4. #
  5. # This is the main Apache server configuration file.  It contains the
  6. # configuration directives that give the server its instructions.
  7. # See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
  8. # the directives.
  9. #
  10. # Do NOT simply read the instructions in here without understanding
  11. # what they do.  They're here only as hints or reminders.  If you are unsure
  12. # consult the online docs. You have been warned. 
  13. #
  14. # The configuration directives are grouped into three basic sections:
  15. #  1. Directives that control the operation of the Apache server process as a
  16. #     whole (the 'global environment').
  17. #  2. Directives that define the parameters of the 'main' or 'default' server,
  18. #     which responds to requests that aren't handled by a virtual host.
  19. #     These directives also provide default values for the settings
  20. #     of all virtual hosts.
  21. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  22. #     different IP addresses or hostnames and have them handled by the
  23. #     same Apache server process.
  24. #
  25. # Configuration and logfile names: If the filenames you specify for many
  26. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  27. # server will use that explicit path.  If the filenames do *not* begin
  28. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  29. # with ServerRoot set to "E:/Serveur/ApacheGroupe/Apache2" will be interpreted by the
  30. # server as "E:/Serveur/ApacheGroupe/Apache2/logs/foo.log".
  31. #
  32. # NOTE: Where filenames are specified, you must use forward slashes
  33. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache" ).
  34. # If a drive letter is omitted, the drive on which Apache.exe is located
  35. # will be used by default.  It is recommended that you always supply
  36. # an explicit drive letter in absolute paths, however, to avoid
  37. # confusion.
  38. #
  39. ### Section 1: Global Environment
  40. #
  41. # The directives in this section affect the overall operation of Apache,
  42. # such as the number of concurrent requests it can handle or where it
  43. # can find its configuration files.
  44. #
  45. #
  46. # ServerRoot: The top of the directory tree under which the server's
  47. # configuration, error, and log files are kept.
  48. #
  49. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  50. # mounted filesystem then please read the LockFile documentation (available
  51. # at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile> );
  52. # you will save yourself a lot of trouble.
  53. #
  54. # Do NOT add a slash at the end of the directory path.
  55. #
  56. ServerRoot "e:/Serveur/ApacheGroupe/Apache2"
  57. #
  58. # ScoreBoardFile: File used to store internal server process information.
  59. # If unspecified (the default), the scoreboard will be stored in an
  60. # anonymous shared memory segment, and will be unavailable to third-party
  61. # applications.
  62. # If specified, ensure that no two invocations of Apache share the same
  63. # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
  64. #
  65. #ScoreBoardFile logs/apache_runtime_status
  66. #
  67. # PidFile: The file in which the server should record its process
  68. # identification number when it starts.
  69. #
  70. PidFile logs/httpd.pid
  71. #
  72. # Timeout: The number of seconds before receives and sends time out.
  73. #
  74. Timeout 300
  75. #
  76. # KeepAlive: Whether or not to allow persistent connections (more than
  77. # one request per connection). Set to "Off" to deactivate.
  78. #
  79. KeepAlive On
  80. #
  81. # MaxKeepAliveRequests: The maximum number of requests to allow
  82. # during a persistent connection. Set to 0 to allow an unlimited amount.
  83. # We recommend you leave this number high, for maximum performance.
  84. #
  85. MaxKeepAliveRequests 100
  86. #
  87. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  88. # same client on the same connection.
  89. #
  90. KeepAliveTimeout 15
  91. ##
  92. ## Server-Pool Size Regulation (MPM specific)
  93. ##
  94. # WinNT MPM
  95. # ThreadsPerChild: constant number of worker threads in the server process
  96. # MaxRequestsPerChild: maximum  number of requests a server process serves
  97. <IfModule mpm_winnt.c>
  98. ThreadsPerChild 250
  99. MaxRequestsPerChild  0
  100. </IfModule>
  101. #
  102. # Listen: Allows you to bind Apache to specific IP addresses and/or
  103. # ports, instead of the default. See also the <VirtualHost>
  104. # directive.
  105. #
  106. # Change this to Listen on specific IP addresses as shown below to
  107. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  108. #
  109. #Listen 12.34.56.78:80
  110. Listen 80
  111. #
  112. # Dynamic Shared Object (DSO) Support
  113. #
  114. # To be able to use the functionality of a module which was built as a DSO you
  115. # have to place corresponding `LoadModule' lines at this location so the
  116. # directives contained in it are actually available _before_ they are used.
  117. # Statically compiled modules (those listed by `httpd -l') do not need
  118. # to be loaded here.
  119. #
  120. # Example:
  121. # LoadModule foo_module modules/mod_foo.so
  122. #
  123. LoadModule php4_module E:/Serveur/php4/sapi/php4apache.dll
  124. AddModule mod_php4.c
  125. AddType application/x-httpd-php .php .php3 .php4
  126. LoadModule access_module modules/mod_access.so
  127. LoadModule actions_module modules/mod_actions.so
  128. LoadModule alias_module modules/mod_alias.so
  129. LoadModule asis_module modules/mod_asis.so
  130. LoadModule auth_module modules/mod_auth.so
  131. #LoadModule auth_anon_module modules/mod_auth_anon.so
  132. #LoadModule auth_dbm_module modules/mod_auth_dbm.so
  133. #LoadModule auth_digest_module modules/mod_auth_digest.so
  134. LoadModule autoindex_module modules/mod_autoindex.so
  135. #LoadModule cern_meta_module modules/mod_cern_meta.so
  136. LoadModule cgi_module modules/mod_cgi.so
  137. #LoadModule dav_module modules/mod_dav.so
  138. #LoadModule dav_fs_module modules/mod_dav_fs.so
  139. LoadModule dir_module modules/mod_dir.so
  140. LoadModule env_module modules/mod_env.so
  141. #LoadModule expires_module modules/mod_expires.so
  142. #LoadModule file_cache_module modules/mod_file_cache.so
  143. #LoadModule headers_module modules/mod_headers.so
  144. LoadModule imap_module modules/mod_imap.so
  145. LoadModule include_module modules/mod_include.so
  146. #LoadModule info_module modules/mod_info.so
  147. LoadModule isapi_module modules/mod_isapi.so
  148. LoadModule log_config_module modules/mod_log_config.so
  149. LoadModule mime_module modules/mod_mime.so
  150. #LoadModule mime_magic_module modules/mod_mime_magic.so
  151. #LoadModule proxy_module modules/mod_proxy.so
  152. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  153. #LoadModule proxy_http_module modules/mod_proxy_http.so
  154. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  155. LoadModule negotiation_module modules/mod_negotiation.so
  156. #LoadModule rewrite_module modules/mod_rewrite.so
  157. LoadModule setenvif_module modules/mod_setenvif.so
  158. #LoadModule speling_module modules/mod_speling.so
  159. #LoadModule status_module modules/mod_status.so
  160. #LoadModule unique_id_module modules/mod_unique_id.so
  161. LoadModule userdir_module modules/mod_userdir.so
  162. #LoadModule usertrack_module modules/mod_usertrack.so
  163. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  164. #LoadModule ssl_module modules/mod_ssl.so
  165. #
  166. # ExtendedStatus controls whether Apache will generate "full" status
  167. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  168. # Off) when the "server-status" handler is called. The default is Off.
  169. #
  170. #ExtendedStatus On
  171. ### Section 2: 'Main' server configuration
  172. #
  173. # The directives in this section set up the values used by the 'main'
  174. # server, which responds to any requests that aren't handled by a
  175. # <VirtualHost> definition.  These values also provide defaults for
  176. # any <VirtualHost> containers you may define later in the file.
  177. #
  178. # All of these directives may appear inside <VirtualHost> containers,
  179. # in which case these default settings will be overridden for the
  180. # virtual host being defined.
  181. #
  182. #
  183. # ServerAdmin: Your address, where problems with the server should be
  184. # e-mailed.  This address appears on some server-generated pages, such
  185. # as error documents.  e.g. admin@your-domain.com
  186. #
  187. ServerAdmin ZIGZAGINNSS@gmail.com
  188. #
  189. # ServerName gives the name and port that the server uses to identify itself.
  190. # This can often be determined automatically, but we recommend you specify
  191. # it explicitly to prevent problems during startup.
  192. #
  193. # If this is not set to valid DNS name for your host, server-generated
  194. # redirections will not work.  See also the UseCanonicalName directive.
  195. #
  196. # If your host doesn't have a registered DNS name, enter its IP address here.
  197. # You will have to access it by its address anyway, and this will make
  198. # redirections work in a sensible way.
  199. #
  200. ServerName THCclan:80
  201. #
  202. # UseCanonicalName: Determines how Apache constructs self-referencing
  203. # URLs and the SERVER_NAME and SERVER_PORT variables.
  204. # When set "Off", Apache will use the Hostname and Port supplied
  205. # by the client.  When set "On", Apache will use the value of the
  206. # ServerName directive.
  207. #
  208. UseCanonicalName Off
  209. #
  210. # DocumentRoot: The directory out of which you will serve your
  211. # documents. By default, all requests are taken from this directory, but
  212. # symbolic links and aliases may be used to point to other locations.
  213. #
  214. DocumentRoot "E:/Serveur/ApacheGroupe/Apache2/htdocs"
  215. #
  216. # Each directory to which Apache has access can be configured with respect
  217. # to which services and features are allowed and/or disabled in that
  218. # directory (and its subdirectories).
  219. #
  220. # First, we configure the "default" to be a very restrictive set of
  221. # features. 
  222. #
  223. <Directory />
  224.     Options FollowSymLinks
  225.     AllowOverride None
  226. </Directory>
  227. #
  228. # Note that from this point forward you must specifically allow
  229. # particular features to be enabled - so if something's not working as
  230. # you might expect, make sure that you have specifically enabled it
  231. # below.
  232. #
  233. #
  234. # This should be changed to whatever you set DocumentRoot to.
  235. #
  236. <Directory "E:/Serveur/ApacheGroupe/Apache2/htdocs">
  237. #
  238. # Possible values for the Options directive are "None", "All",
  239. # or any combination of:
  240. #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  241. #
  242. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  243. # doesn't give it to you.
  244. #
  245. # The Options directive is both complicated and important.  Please see
  246. # http://httpd.apache.org/docs-2.0/mod/core.html#options
  247. # for more information.
  248. #
  249.     Options Indexes FollowSymLinks
  250. #
  251. # AllowOverride controls what directives may be placed in .htaccess files.
  252. # It can be "All", "None", or any combination of the keywords:
  253. #   Options FileInfo AuthConfig Limit
  254. #
  255.     AllowOverride None
  256. #
  257. # Controls who can get stuff from this server.
  258. #
  259.     Order allow,deny
  260.     Allow from all
  261. </Directory>
  262. #
  263. # UserDir: The name of the directory that is appended onto a user's home
  264. # directory if a ~user request is received.  Be especially careful to use
  265. # proper, forward slashes here.  On Windows NT, "Personal/My Website"
  266. # is a more appropriate choice.
  267. #
  268. UserDir "My Documents/My Website"
  269. #
  270. # Control access to UserDir directories.  The following is an example
  271. # for a site where these directories are restricted to read-only.
  272. #
  273. # You must correct the path for the root to match your system's configured
  274. # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
  275. # or whichever, as appropriate.
  276. #
  277. #<Directory "C:/Documents and Settings/*/My Documents/My Website">
  278. #    AllowOverride FileInfo AuthConfig Limit
  279. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  280. #    <Limit GET POST OPTIONS PROPFIND>
  281. #        Order allow,deny
  282. #        Allow from all
  283. #    </Limit>
  284. #    <LimitExcept GET POST OPTIONS PROPFIND>
  285. #        Order deny,allow
  286. #        Deny from all
  287. #    </LimitExcept>
  288. #</Directory>
  289. #
  290. # DirectoryIndex: sets the file that Apache will serve if a directory
  291. # is requested.
  292. #
  293. # The index.html.var file (a type-map) is used to deliver content-
  294. # negotiated documents.  The MultiViews Option can be used for the
  295. # same purpose, but it is much slower.
  296. #
  297. DirectoryIndex index.html index.html.var
  298. #
  299. # AccessFileName: The name of the file to look for in each directory
  300. # for additional configuration directives.  See also the AllowOverride
  301. # directive.
  302. #
  303. AccessFileName .htaccess
  304. #
  305. # The following lines prevent .htaccess and .htpasswd files from being
  306. # viewed by Web clients.
  307. #
  308. <Files ~ "^\.ht">
  309.     Order allow,deny
  310.     Deny from all
  311. </Files>
  312. #
  313. # TypesConfig describes where the mime.types file (or equivalent) is
  314. # to be found.
  315. #
  316. TypesConfig conf/mime.types
  317. #
  318. # DefaultType is the default MIME type the server will use for a document
  319. # if it cannot otherwise determine one, such as from filename extensions.
  320. # If your server contains mostly text or HTML documents, "text/plain" is
  321. # a good value.  If most of your content is binary, such as applications
  322. # or images, you may want to use "application/octet-stream" instead to
  323. # keep browsers from trying to display binary files as though they are
  324. # text.
  325. #
  326. DefaultType text/plain
  327. #
  328. # The mod_mime_magic module allows the server to use various hints from the
  329. # contents of the file itself to determine its type.  The MIMEMagicFile
  330. # directive tells the module where the hint definitions are located.
  331. #
  332. <IfModule mod_mime_magic.c>
  333.     MIMEMagicFile conf/magic
  334. </IfModule>
  335. #
  336. # HostnameLookups: Log the names of clients or just their IP addresses
  337. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  338. # The default is off because it'd be overall better for the net if people
  339. # had to knowingly turn this feature on, since enabling it means that
  340. # each client request will result in AT LEAST one lookup request to the
  341. # nameserver.
  342. #
  343. HostnameLookups Off
  344. #
  345. # EnableMMAP: Control whether memory-mapping is used to deliver
  346. # files (assuming that the underlying OS supports it).
  347. # The default is on; turn this off if you serve from NFS-mounted
  348. # filesystems.  On some systems, turning it off (regardless of
  349. # filesystem) can improve performance; for details, please see
  350. # http://httpd.apache.org/docs-2.0/m [...] enablemmap
  351. #
  352. #EnableMMAP off
  353. #
  354. # EnableSendfile: Control whether the sendfile kernel support is
  355. # used  to deliver files (assuming that the OS supports it).
  356. # The default is on; turn this off if you serve from NFS-mounted
  357. # filesystems.  Please see
  358. # http://httpd.apache.org/docs-2.0/m [...] lesendfile
  359. #
  360. #EnableSendfile off
  361. #
  362. # ErrorLog: The location of the error log file.
  363. # If you do not specify an ErrorLog directive within a <VirtualHost>
  364. # container, error messages relating to that virtual host will be
  365. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  366. # container, that host's errors will be logged there and not here.
  367. #
  368. ErrorLog logs/error.log
  369. #
  370. # LogLevel: Control the number of messages logged to the error.log.
  371. # Possible values include: debug, info, notice, warn, error, crit,
  372. # alert, emerg.
  373. #
  374. LogLevel warn
  375. #
  376. # The following directives define some format nicknames for use with
  377. # a CustomLog directive (see below).
  378. #
  379. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  380. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  381. LogFormat "%{Referer}i -> %U" referer
  382. LogFormat "%{User-agent}i" agent
  383. # You need to enable mod_logio.c to use %I and %O
  384. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  385. #
  386. # The location and format of the access logfile (Common Logfile Format).
  387. # If you do not define any access logfiles within a <VirtualHost>
  388. # container, they will be logged here.  Contrariwise, if you *do*
  389. # define per-<VirtualHost> access logfiles, transactions will be
  390. # logged therein and *not* in this file.
  391. #
  392. CustomLog logs/access.log common
  393. #
  394. # If you would like to have agent and referer logfiles, uncomment the
  395. # following directives.
  396. #
  397. #CustomLog logs/referer.log referer
  398. #CustomLog logs/agent.log agent
  399. #
  400. # If you prefer a single logfile with access, agent, and referer information
  401. # (Combined Logfile Format) you can use the following directive.
  402. #
  403. #CustomLog logs/access.log combined
  404. #
  405. # ServerTokens
  406. # This directive configures what you return as the Server HTTP response
  407. # Header. The default is 'Full' which sends information about the OS-Type
  408. # and compiled in modules.
  409. # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
  410. # where Full conveys the most information, and Prod the least.
  411. #
  412. ServerTokens Full
  413. #
  414. # Optionally add a line containing the server version and virtual host
  415. # name to server-generated pages (internal error documents, FTP directory
  416. # listings, mod_status and mod_info output etc., but not CGI generated
  417. # documents or custom error documents).
  418. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  419. # Set to one of:  On | Off | EMail
  420. #
  421. ServerSignature On
  422. #
  423. # Aliases: Add here as many aliases as you need (with no limit). The format is
  424. # Alias fakename realname
  425. #
  426. # Note that if you include a trailing / on fakename then the server will
  427. # require it to be present in the URL.  So "/icons" isn't aliased in this
  428. # example, only "/icons/".  If the fakename is slash-terminated, then the
  429. # realname must also be slash terminated, and if the fakename omits the
  430. # trailing slash, the realname must also omit it.
  431. #
  432. # We include the /icons/ alias for FancyIndexed directory listings.  If you
  433. # do not use FancyIndexing, you may comment this out.
  434. #
  435. Alias /icons/ "E:/Serveur/ApacheGroupe/Apache2/icons/"
  436. <Directory "E:/Serveur/ApacheGroupe/Apache2/icons">
  437.     Options Indexes MultiViews
  438.     AllowOverride None
  439.     Order allow,deny
  440.     Allow from all
  441. </Directory>
  442. #
  443. # This should be changed to the ServerRoot/manual/.  The alias provides
  444. # the manual, even if you choose to move your DocumentRoot.  You may comment
  445. # this out if you do not care for the documentation.
  446. #
  447. AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "E:/Serveur/ApacheGroupe/Apache2/manual$1"
  448. <Directory "E:/Serveur/ApacheGroupe/Apache2/manual">
  449.     Options Indexes
  450.     AllowOverride None
  451.     Order allow,deny
  452.     Allow from all
  453.     <Files *.html>
  454.         SetHandler type-map
  455.     </Files>
  456.     SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
  457.     RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
  458. </Directory>
  459. #
  460. # ScriptAlias: This controls which directories contain server scripts.
  461. # ScriptAliases are essentially the same as Aliases, except that
  462. # documents in the realname directory are treated as applications and
  463. # run by the server when requested rather than as documents sent to the client.
  464. # The same rules about trailing "/" apply to ScriptAlias directives as to
  465. # Alias.
  466. #
  467. ScriptAlias /cgi-bin/ "E:/Serveur/ApacheGroupe/Apache2/cgi-bin/"
  468. #
  469. # "E:/Serveur/ApacheGroupe/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
  470. # CGI directory exists, if you have that configured.
  471. #
  472. <Directory "E:/Serveur/ApacheGroupe/Apache2/cgi-bin">
  473.     AllowOverride None
  474.     Options None
  475.     Order allow,deny
  476.     Allow from all
  477. </Directory>
  478. #
  479. # Redirect allows you to tell clients about documents which used to exist in
  480. # your server's namespace, but do not anymore. This allows you to tell the
  481. # clients where to look for the relocated document.
  482. # Example:
  483. # Redirect permanent /foo http://www.example.com/bar
  484. #
  485. # Directives controlling the display of server-generated directory listings.
  486. #
  487. #
  488. # IndexOptions: Controls the appearance of server-generated directory
  489. # listings.
  490. #
  491. IndexOptions FancyIndexing VersionSort
  492. #
  493. # AddIcon* directives tell the server which icon to show for different
  494. # files or filename extensions.  These are only displayed for
  495. # FancyIndexed directories.
  496. #
  497. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  498. AddIconByType (TXT,/icons/text.gif) text/*
  499. AddIconByType (IMG,/icons/image2.gif) image/*
  500. AddIconByType (SND,/icons/sound2.gif) audio/*
  501. AddIconByType (VID,/icons/movie.gif) video/*
  502. AddIcon /icons/binary.gif .bin .exe
  503. AddIcon /icons/binhex.gif .hqx
  504. AddIcon /icons/tar.gif .tar
  505. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  506. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  507. AddIcon /icons/a.gif .ps .ai .eps
  508. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  509. AddIcon /icons/text.gif .txt
  510. AddIcon /icons/c.gif .c
  511. AddIcon /icons/p.gif .pl .py
  512. AddIcon /icons/f.gif .for
  513. AddIcon /icons/dvi.gif .dvi
  514. AddIcon /icons/uuencoded.gif .uu
  515. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  516. AddIcon /icons/tex.gif .tex
  517. AddIcon /icons/bomb.gif core
  518. AddIcon /icons/back.gif ..
  519. AddIcon /icons/hand.right.gif README
  520. AddIcon /icons/folder.gif ^^DIRECTORY^^
  521. AddIcon /icons/blank.gif ^^BLANKICON^^
  522. #
  523. # DefaultIcon is which icon to show for files which do not have an icon
  524. # explicitly set.
  525. #
  526. DefaultIcon /icons/unknown.gif
  527. #
  528. # AddDescription allows you to place a short description after a file in
  529. # server-generated indexes.  These are only displayed for FancyIndexed
  530. # directories.
  531. # Format: AddDescription "description" filename
  532. #
  533. #AddDescription "GZIP compressed document" .gz
  534. #AddDescription "tar archive" .tar
  535. #AddDescription "GZIP compressed tar archive" .tgz
  536. #
  537. # ReadmeName is the name of the README file the server will look for by
  538. # default, and append to directory listings.
  539. #
  540. # HeaderName is the name of a file which should be prepended to
  541. # directory indexes.  
  542. ReadmeName README.html
  543. HeaderName HEADER.html
  544. #
  545. # IndexIgnore is a set of filenames which directory indexing should ignore
  546. # and not include in the listing.  Shell-style wildcarding is permitted.
  547. #
  548. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  549. #
  550. # DefaultLanguage and AddLanguage allows you to specify the language of  
  551. # a document. You can then use content negotiation to give a browser a  
  552. # file in a language the user can understand.
  553. #
  554. # Specify a default language. This means that all data
  555. # going out without a specific language tag (see below) will  
  556. # be marked with this one. You probably do NOT want to set
  557. # this unless you are sure it is correct for all cases.
  558. #
  559. # * It is generally better to not mark a page as  
  560. # * being a certain language than marking it with the wrong
  561. # * language!
  562. #
  563. # DefaultLanguage nl
  564. #
  565. # Note 1: The suffix does not have to be the same as the language
  566. # keyword --- those with documents in Polish (whose net-standard
  567. # language code is pl) may wish to use "AddLanguage pl .po" to
  568. # avoid the ambiguity with the common suffix for perl scripts.
  569. #
  570. # Note 2: The example entries below illustrate that in some cases  
  571. # the two character 'Language' abbreviation is not identical to  
  572. # the two character 'Country' code for its country,
  573. # E.g. 'Danmark/dk' versus 'Danish/da'.
  574. #
  575. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  576. # specifier. There is 'work in progress' to fix this and get
  577. # the reference data for rfc1766 cleaned up.
  578. #
  579. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  580. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  581. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  582. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  583. # Norwegian (no) - Polish (pl) - Portugese (pt)
  584. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  585. # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  586. #
  587. AddLanguage ca .ca
  588. AddLanguage cs .cz .cs
  589. AddLanguage da .dk
  590. AddLanguage de .de
  591. AddLanguage el .el
  592. AddLanguage en .en
  593. AddLanguage eo .eo
  594. AddLanguage es .es
  595. AddLanguage et .et
  596. AddLanguage fr .fr
  597. AddLanguage he .he
  598. AddLanguage hr .hr
  599. AddLanguage it .it
  600. AddLanguage ja .ja
  601. AddLanguage ko .ko
  602. AddLanguage ltz .ltz
  603. AddLanguage nl .nl
  604. AddLanguage nn .nn
  605. AddLanguage no .no
  606. AddLanguage pl .po
  607. AddLanguage pt .pt
  608. AddLanguage pt-BR .pt-br
  609. AddLanguage ru .ru
  610. AddLanguage sv .sv
  611. AddLanguage zh-CN .zh-cn
  612. AddLanguage zh-TW .zh-tw
  613. #
  614. # LanguagePriority allows you to give precedence to some languages
  615. # in case of a tie during content negotiation.
  616. #
  617. # Just list the languages in decreasing order of preference. We have
  618. # more or less alphabetized them here. You probably want to change this.
  619. #
  620. 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
  621. #
  622. # ForceLanguagePriority allows you to serve a result page rather than
  623. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  624. # [in case no accepted languages matched the available variants]
  625. #
  626. ForceLanguagePriority Prefer Fallback
  627. #
  628. # Commonly used filename extensions to character sets. You probably
  629. # want to avoid clashes with the language extensions, unless you
  630. # are good at carefully testing your setup after each change.
  631. # See http://www.iana.org/assignments/character-sets for the
  632. # official list of charset names and their respective RFCs.
  633. #
  634. AddCharset ISO-8859-1  .iso8859-1 .latin1
  635. AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
  636. AddCharset ISO-8859-3  .iso8859-3 .latin3
  637. AddCharset ISO-8859-4  .iso8859-4 .latin4
  638. AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
  639. AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
  640. AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
  641. AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
  642. AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
  643. AddCharset ISO-2022-JP .iso2022-jp .jis
  644. AddCharset ISO-2022-KR .iso2022-kr .kis
  645. AddCharset ISO-2022-CN .iso2022-cn .cis
  646. AddCharset Big5        .Big5       .big5
  647. # For russian, more than one charset is used (depends on client, mostly):
  648. AddCharset WINDOWS-1251 .cp-1251   .win-1251
  649. AddCharset CP866       .cp866
  650. AddCharset KOI8-r      .koi8-r .koi8-ru
  651. AddCharset KOI8-ru     .koi8-uk .ua
  652. AddCharset ISO-10646-UCS-2 .ucs2
  653. AddCharset ISO-10646-UCS-4 .ucs4
  654. AddCharset UTF-8       .utf8
  655. # The set below does not map to a specific (iso) standard
  656. # but works on a fairly wide range of browsers. Note that
  657. # capitalization actually matters (it should not, but it
  658. # does for some browsers).
  659. #
  660. # See http://www.iana.org/assignments/character-sets
  661. # for a list of sorts. But browsers support few.
  662. #
  663. AddCharset GB2312      .gb2312 .gb  
  664. AddCharset utf-7       .utf7
  665. AddCharset utf-8       .utf8
  666. AddCharset big5        .big5 .b5
  667. AddCharset EUC-TW      .euc-tw
  668. AddCharset EUC-JP      .euc-jp
  669. AddCharset EUC-KR      .euc-kr
  670. AddCharset shift_jis   .sjis
  671. #
  672. # AddType allows you to add to or override the MIME configuration
  673. # file mime.types for specific file types.
  674. #
  675. #AddType application/x-tar .tgz
  676. #
  677. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  678. # information on the fly. Note: Not all browsers support this.
  679. # Despite the name similarity, the following Add* directives have nothing
  680. # to do with the FancyIndexing customization directives above.
  681. #
  682. #AddEncoding x-compress .Z
  683. #AddEncoding x-gzip .gz .tgz
  684. #
  685. # If the AddEncoding directives above are commented-out, then you
  686. # probably should define those extensions to indicate media types:
  687. #
  688. AddType application/x-compress .Z
  689. AddType application/x-gzip .gz .tgz
  690. #
  691. # AddHandler allows you to map certain file extensions to "handlers":
  692. # actions unrelated to filetype. These can be either built into the server
  693. # or added with the Action directive (see below)
  694. #
  695. # To use CGI scripts outside of ScriptAliased directories:
  696. # (You will also need to add "ExecCGI" to the "Options" directive.)
  697. #
  698. #AddHandler cgi-script .cgi
  699. #
  700. # For files that include their own HTTP headers:
  701. #
  702. #AddHandler send-as-is asis
  703. #
  704. # For server-parsed imagemap files:
  705. #
  706. #AddHandler imap-file map
  707. #
  708. # For type maps (negotiated resources):
  709. # (This is enabled by default to allow the Apache "It Worked" page
  710. #  to be distributed in multiple languages.)
  711. #
  712. AddHandler type-map var
  713. #
  714. # Filters allow you to process content before it is sent to the client.
  715. #
  716. # To parse .shtml files for server-side includes (SSI):
  717. # (You will also need to add "Includes" to the "Options" directive.)
  718. #
  719. #AddType text/html .shtml
  720. #AddOutputFilter INCLUDES .shtml
  721. #
  722. # Action lets you define media types that will execute a script whenever
  723. # a matching file is called. This eliminates the need for repeated URL
  724. # pathnames for oft-used CGI file processors.
  725. # Format: Action media/type /cgi-script/location
  726. # Format: Action handler-name /cgi-script/location
  727. #
  728. #
  729. # Customizable error responses come in three flavors:
  730. # 1) plain text 2) local redirects 3) external redirects
  731. #
  732. # Some examples:
  733. #ErrorDocument 500 "The server made a boo boo."
  734. #ErrorDocument 404 /missing.html
  735. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  736. #ErrorDocument 402 http://www.example.com/subscription_info.html
  737. #
  738. #
  739. # Putting this all together, we can internationalize error responses.
  740. #
  741. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  742. # our collection of by-error message multi-language collections.  We use  
  743. # includes to substitute the appropriate text.
  744. #
  745. # You can modify the messages' appearance without changing any of the
  746. # default HTTP_<error>.html.var files by adding the line:
  747. #
  748. #   Alias /error/include/ "/your/include/path/"
  749. #
  750. # which allows you to create your own set of files by starting with the
  751. # @exp_errordir@/include/ files and copying them to /your/include/path/,  
  752. # even on a per-VirtualHost basis.  The default include files will display
  753. # your Apache version number and your ServerAdmin email address regardless
  754. # of the setting of ServerSignature.
  755. #
  756. # The internationalized error documents require mod_alias, mod_include
  757. # and mod_negotiation.  To activate them, uncomment the following 30 lines.
  758. #    Alias /error/ "@exp_errordir@/"
  759. #
  760. #    <Directory "@exp_errordir@">
  761. #        AllowOverride None
  762. #        Options IncludesNoExec
  763. #        AddOutputFilter Includes html
  764. #        AddHandler type-map var
  765. #        Order allow,deny
  766. #        Allow from all
  767. #        LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
  768. #        ForceLanguagePriority Prefer Fallback
  769. #    </Directory>
  770. #
  771. #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  772. #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  773. #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  774. #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  775. #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  776. #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  777. #    ErrorDocument 410 /error/HTTP_GONE.html.var
  778. #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  779. #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  780. #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  781. #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  782. #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  783. #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  784. #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  785. #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  786. #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  787. #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  788. #
  789. # The following directives modify normal HTTP response behavior to
  790. # handle known problems with browser implementations.
  791. #
  792. BrowserMatch "Mozilla/2" nokeepalive
  793. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  794. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  795. BrowserMatch "Java/1\.0" force-response-1.0
  796. BrowserMatch "JDK/1\.0" force-response-1.0
  797. #
  798. # The following directive disables redirects on non-GET requests for
  799. # a directory that does not include the trailing slash.  This fixes a  
  800. # problem with Microsoft WebFolders which does not appropriately handle  
  801. # redirects for folders with DAV methods.
  802. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  803. #
  804. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  805. BrowserMatch "^WebDrive" redirect-carefully
  806. BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
  807. BrowserMatch "^gnome-vfs" redirect-carefully
  808. #
  809. # Allow server status reports generated by mod_status,
  810. # with the URL of http://servername/server-status
  811. # Change the ".localhost" to match your domain to enable.
  812. #
  813. #<Location /server-status>
  814. #    SetHandler server-status
  815. #    Order deny,allow
  816. #    Deny from all
  817. #    Allow from .localhost
  818. #</Location>
  819. #
  820. # Allow remote server configuration reports, with the URL of
  821. http://servername/server-info (requires that mod_info.c be loaded).
  822. # Change the ".localhost" to match your domain to enable.
  823. #
  824. #<Location /server-info>
  825. #    SetHandler server-info
  826. #    Order deny,allow
  827. #    Deny from all
  828. #    Allow from .localhost
  829. #</Location>
  830. #
  831. # Bring in additional module-specific configurations
  832. #
  833. <IfModule mod_ssl.c>
  834.     Include conf/ssl.conf
  835. </IfModule>
  836. ### Section 3: Virtual Hosts
  837. #
  838. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  839. # machine you can setup VirtualHost containers for them. Most configurations
  840. # use only name-based virtual hosts so the server doesn't need to worry about
  841. # IP addresses. This is indicated by the asterisks in the directives below.
  842. #
  843. # Please see the documentation at  
  844. # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
  845. # for further details before you try to setup virtual hosts.
  846. #
  847. # You may use the command line option '-S' to verify your virtual host
  848. # configuration.
  849. #
  850. # Use name-based virtual hosting.
  851. #
  852. #NameVirtualHost *:80
  853. #
  854. # VirtualHost example:
  855. # Almost any Apache directive may go into a VirtualHost container.
  856. # The first VirtualHost section is used for requests without a known
  857. # server name.
  858. #
  859. #<VirtualHost *:80>
  860. #    ServerAdmin webmaster@dummy-host.example.com
  861. #    DocumentRoot /www/docs/dummy-host.example.com
  862. #    ServerName dummy-host.example.com
  863. #    ErrorLog logs/dummy-host.example.com-error_log
  864. #    CustomLog logs/dummy-host.example.com-access_log common
  865. #</VirtualHost>


Message édité par THC ziG le 17-06-2005 à 16:53:09
n°36477
Le Veilleu​r
.:. .:.
Posté le 17-06-2005 à 16:57:45  profilanswer
 

Mets un coup le AddModule mod_php4.c après le LoadModule, et pas avant.
 
J'ai rien dit


Message édité par Le Veilleur le 17-06-2005 à 16:58:33

---------------
http://LeVeilleur.net
Hostipics.net : Hébergement gratuit de vos photos pour forums, ...
n°36478
THC ziG
Posté le 17-06-2005 à 17:45:35  profilanswer
 

moi j'vois pas d'erreur j'ai fait comme expliquer sur le tuto :/

n°36479
Trracer
Posté le 17-06-2005 à 22:19:15  profilanswer
 

Au risque de dire une connerie, tu charge php4apache.dll qui est le module isapi pour Apache 1.3. C'est php4apache2.dll pour Apache 2.0.
Ensuite le AddModule n'est pas a preciser dans une config sous windows...

n°36480
THC ziG
Posté le 17-06-2005 à 22:34:59  profilanswer
 

Finalement je vais passé sous easyPHP, plus simple pour un debutant comme moi, on verra la config d'apache plus tard
Merci a vous deux de votre aide ;)

n°36482
Le Veilleu​r
.:. .:.
Posté le 18-06-2005 à 00:28:13  profilanswer
 

Trracer a écrit :

Au risque de dire une connerie, tu charge php4apache.dll qui est le module isapi pour Apache 1.3. C'est php4apache2.dll pour Apache 2.0.
Ensuite le AddModule n'est pas a preciser dans une config sous windows...


Tu dois avoir raison :jap:
 
edit: bien vu  LoadModule php4_module "c:/php/php4apache2.dll"  
http://www.zdnet.fr/builder/archit [...] -39000778c


Message édité par Le Veilleur le 18-06-2005 à 00:29:24

---------------
http://LeVeilleur.net
Hostipics.net : Hébergement gratuit de vos photos pour forums, ...
mood
Google
Posté le 18-06-2005 à 00:28:13  profilanswer
 


Aller à :
Ajouter une réponse

  FORUM Syndrome-OC - Jacky-PC


  Software et OS Alternatif


  Autres


  [ Reglé ] APPACHE config pour php

 

Hit Parade