Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/06/2006, à 00:00

Seta

[apache2] impossible de le lancer

Hello,

J'ai un problème avec apache, quoique je fasse je n'arrive pas à le lancer

L'install par le apt-get install apache2 se fait sans accroc, mais quand je veux le lancer (avec start ou reload) il me fait une erreur sur les modules du httpd.conf

Exemple:

:~$ sudo /etc/init.d/apache2 reload
 * Reloading apache 2.0 configuration... Syntax error on line 20 of /etc/apache2/httpd.conf:
Cannot load /etc/apache2/web/libexec/mod_security.so into server: /etc/apache2/web/libexec/mod_security.so: cannot open shared object file: No such file or directory

J'ai essayé de mettre la ligne en commentaire pour voir si ça venait de ce module en particulier mais non, ça le fait sur tous

J'ai essayé de faire un remove, un remove purge, de le reinstaller en apt-get et par le gestionnaire de paquets mais rien n'y fait, toujours la même erreur hmm

(je suis sous drapper)

Si vous voyiez la solution, vous m'oteriez une fière chandelle du pied (c)

Hors ligne

#2 Le 14/06/2006, à 11:28

loloemr

Re : [apache2] impossible de le lancer

alors déjà j'aimerais bien voir ta ligne qui plante. La commenter, c'est pas mal pour tester mais en l'occurrence, je pense qu'il lance un module que tu n'as pas ajouter dans apache.

Va toujours voir cela, c'est de l'Anglais et du Fedora mais cela peut t'aider ...
http://fedoranews.org/jorge/mod_security/


L'open source est garant de notre indépendance technologique, permet de créer des emplois locaux et véhiculent deux idées fondamentales : la transparence de l'information et la supériorité de la collaboration sur la concurrence ... GNU/Linux c'est bon mangez-en !!

Hors ligne

#3 Le 14/06/2006, à 14:47

dexinou

Re : [apache2] impossible de le lancer

OUvre le fichier dans un éditeur de texte et regarde la ligne 20 !!
et si tu pige pas fait un copier coller de la ligne 20 de ton fichier
Les modules ne se chargent pas commen dans windaube ici !! ils se chargent avec la commande a2enmod

Dernière modification par dexinou (Le 14/06/2006, à 14:48)


Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...

Hors ligne

#4 Le 14/06/2006, à 16:43

Seta

Re : [apache2] impossible de le lancer

La ligne 20 c'est:

LoadModule security_module libexec/mod_security.so

Idem pour les autres modules, c'est le httpd.conf par défaut, donc normalement c'est pas un problème de syntaxe

Hors ligne

#5 Le 14/06/2006, à 22:18

Seta

Re : [apache2] impossible de le lancer

A noter qu'en fait, quand je mets la ligne 20 en comment, il me fait une erreur à la 21, mais différente

Syntax error on line 21 of /etc/apache2/httpd.conf:
module env_module is built-in and can't be loaded

J'ai essayé d'installer quelques libapache2 depuis synpatic mais ça change rien >_<


edit: ça doit venir du httpd.conf qui est daubé, quelqu'un pourrait me fournir un httpd.conf "de base" ?
merci

Dernière modification par Seta (Le 14/06/2006, à 22:57)

Hors ligne

#6 Le 15/06/2006, à 12:47

dexinou

Re : [apache2] impossible de le lancer

salut,
commente la ligne 20 et reload apache.
Pour activer un module tu fais :

# a2enmod

il va te donner une liste de modules à activer et tu choisi celui que tu veux.

Dernière modification par dexinou (Le 15/06/2006, à 12:48)


Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...

Hors ligne

#7 Le 17/06/2006, à 16:44

Seta

Re : [apache2] impossible de le lancer

Ok merci
C'est bon maintenant pour la ligne20, par contre maintenant il bloque à la 21, qui est un load module qui n'apparait pas dans la liste quand on tape la commande que tu m'as donnée

La ligne:

LoadModule env_module libexec/mod_env.so

l'erreur:

* Reloading apache 2.0 configuration... [Sat Jun 17 16:44:00 2006] [warn] module security_module is already loaded, skipping
Syntax error on line 21 of /etc/apache2/httpd.conf:
module env_module is built-in and can't be loaded

Donc je sais pas comment faire là hmm

Hors ligne

#8 Le 17/06/2006, à 18:10

dexinou

Re : [apache2] impossible de le lancer

met un '#' sans les gguiilemets au début de la ligne 21

Sinon montre-moi ton fichier de configuration apache pour qu'on en finisse une fois pour toutes avec ces modules big_smile

Dernière modification par dexinou (Le 17/06/2006, à 18:12)


Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...

Hors ligne

#9 Le 17/06/2006, à 18:50

Seta

Re : [apache2] impossible de le lancer

ça déconne ligne 22 si je comment la 21, en fait ça déconne pour tous les modules

Le voilà.
En gros c'est le fichier de base avec juste 2-3 modifs

ServerType standalone
ServerRoot "/etc/apache2/web"
PidFile /etc/apache2/logs/httpd.pid
ScoreBoardFile /etc/apache2/logs/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 200
MaxRequestsPerChild 0
LoadModule security_module libexec/mod_security.so
#LoadModule env_module libexec/mod_env.so
LoadModule config_log_module libexec/mod_log_config.so
LoadModule mime_module libexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule status_module libexec/mod_status.so
LoadModule includes_module libexec/mod_include.so
LoadModule autoindex_module libexec/mod_autoindex.so
LoadModule dir_module libexec/mod_dir.so
LoadModule cgi_module libexec/mod_cgi.so
LoadModule asis_module libexec/mod_asis.so
LoadModule imap_module libexec/mod_imap.so
LoadModule action_module libexec/mod_actions.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule alias_module libexec/mod_alias.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule access_module libexec/mod_access.so
LoadModule auth_module libexec/mod_auth.so
LoadModule setenvif_module libexec/mod_setenvif.so
<IfDefine SSL>
LoadModule ssl_module libexec/libssl.so
</IfDefine>
LoadModule php4_module libexec/libphp4.so
LoadModule perl_module libexec/libperl.so
ClearModuleList
AddModule mod_security.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
AddModule mod_php4.c
AddModule mod_perl.c
Port 80
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>
ExtendedStatus On
ServerSignature Off
ServerTokens Full
User apache
Group apache
ServerAdmin root@site.com
DocumentRoot "/var/www"
PerlTaintCheck On
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/etc/apache2/web/">
AllowOverride None
Options none
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/apache/www.site.com/cgi-bin/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory "/etc/apache2/web/secure">
AllowOverride AuthConfig
Options none
Order allow,deny
Allow from all
</Directory>
ErrorDocument 500 "erreur 500"
ErrorDocument 400 "erreur 400"
ErrorDocument 404 "erreur 404"
ErrorDocument 402 "erreur 402"
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.php index.php3 index.php4
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig /usr/local/apache/conf/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /usr/local/apache/conf/magic
</IfModule>
HostnameLookups Off
ErrorLog /usr/local/apache/logs/error_log
LogLevel warn
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
CustomLog /usr/local/apache/logs/access_log combined
<IfModule mod_alias.c>
Alias /icons/ "/usr/local/apache/icons/"
<Directory "/usr/local/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
<IfModule mod_security.c>
SecFilterEngine On
SecServerSignature "Microsoft-IIS/4.0"
SecChrootdir /home/chroot/
SecFilterCheckURLEncoding On
SecFilterCheckUnicodeEncoding On
SecFilterForceByteRange 0 255
SecAuditEngine RelevantOnly
SecAuditLog logs/modsec_log
SecFilterDebugLog logs/modsec_debug_log
SecFilterDebugLevel 0
SecFilterScanPOST On
SecFilterDefaultAction "deny,log,status:401"
# include /usr/local/apache/conf/modsec.conf
</IfModule>
<IfModule mod_mime.c>
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cs .cz .cs
AddLanguage ru .ru
AddLanguage zh-TW .zh-tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddHandler cgi-script .cgi .pl
AddType text/html .shtml
AddHandler server-parsed .shtml
</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
</IfModule>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
AddType application/x-httpd-php .php .php3 .php4
AddType application/x-httpd-php-source .phps
AddType text/html .shtml
AddType application/xml .rss .xml
AddHandler server-parsed .shtml
<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>
<IfModule mod_ssl.c>
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/usr/local/apache/logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /usr/local/apache/logs/ssl_engine_log
SSLLogLevel info
</IfModule>
NameVirtualHost 192.168.1.102
<IfDefine SSL>
NameVirtualHost 192.168.1.102:443
<VirtualHost 192.168.1.102:443>
DocumentRoot /etc/apache2/web/
ServerName 127.0.0.1
ServerAdmin monmail@free.fr
ErrorLog /etc/apache2/logs/error_log
TransferLog /etc/apache2/logs/access_log
SSLEngine off
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
#SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
#SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
#<Files ~ "\.(cgi|shtml|phtml|php3?)$">
#SSLOptions +StdEnvVars
#</Files>
#<Directory "/usr/local/apache/cgi-bin">
#SSLOptions +StdEnvVars
#</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /usr/local/apache/logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</VirtualHost>
</IfDefine>
<VirtualHost 127.0.0.1>
ServerAdmin nicokanasii@free.fr
DocumentRoot /etc/apache2/web/
ScriptAlias /etc/apache2/cgi-bin/
ServerName 127.0.0.1
ErrorLog logs/-error_log
CustomLog logs/site.com-access_log combined
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</VirtualHost>
AddType application/x-httpd-php .php .php3

Dernière modification par Seta (Le 17/06/2006, à 19:01)

Hors ligne

#10 Le 17/06/2006, à 19:01

dexinou

Re : [apache2] impossible de le lancer

DIs-moi tu n'aurais pas installer apache et ensuite apache2 ?
car si c ça tu aurais du faire un purge.

# apt-get --purge remove apache

sinon voilà :

ServerType standalone
ServerRoot "/etc/apache2/web"
PidFile /etc/apache2/logs/httpd.pid
ScoreBoardFile /etc/apache2/logs/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 200
MaxRequestsPerChild 0
#LoadModule security_module libexec/mod_security.so
#LoadModule env_module libexec/mod_env.so
#LoadModule config_log_module libexec/mod_log_config.so
#LoadModule mime_module libexec/mod_mime.so
#LoadModule negotiation_module libexec/mod_negotiation.so
#LoadModule status_module libexec/mod_status.so
#LoadModule includes_module libexec/mod_include.so
#LoadModule autoindex_module libexec/mod_autoindex.so
#LoadModule dir_module libexec/mod_dir.so
#LoadModule cgi_module libexec/mod_cgi.so
#LoadModule asis_module libexec/mod_asis.so
#LoadModule imap_module libexec/mod_imap.so
#LoadModule action_module libexec/mod_actions.so
#LoadModule userdir_module libexec/mod_userdir.so
#LoadModule alias_module libexec/mod_alias.so
#LoadModule rewrite_module libexec/mod_rewrite.so
#LoadModule access_module libexec/mod_access.so
#LoadModule auth_module libexec/mod_auth.so
#LoadModule setenvif_module libexec/mod_setenvif.so
#<IfDefine SSL>
#LoadModule ssl_module libexec/libssl.so
#</IfDefine>
#LoadModule php4_module libexec/libphp4.so
#LoadModule perl_module libexec/libperl.so
ClearModuleList
#AddModule mod_security.c
#AddModule mod_env.c
#AddModule mod_log_config.c
#AddModule mod_mime.c
#AddModule mod_negotiation.c
#AddModule mod_status.c
#AddModule mod_include.c
#AddModule mod_autoindex.c
#AddModule mod_dir.c
#AddModule mod_cgi.c
#AddModule mod_asis.c
#AddModule mod_imap.c
#AddModule mod_actions.c
#AddModule mod_userdir.c
#AddModule mod_alias.c
#AddModule mod_rewrite.c
#AddModule mod_access.c
#AddModule mod_auth.c
#AddModule mod_so.c
#AddModule mod_setenvif.c
#<IfDefine SSL>
#AddModule mod_ssl.c
#</IfDefine>
#AddModule mod_php4.c
#AddModule mod_perl.c
Port 80
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>
ExtendedStatus On
ServerSignature Off
ServerTokens Full
User apache
Group apache
ServerAdmin root@site.com
DocumentRoot "/var/www"
PerlTaintCheck On
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/etc/apache2/web/">
AllowOverride None
Options none
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/apache/www.site.com/cgi-bin/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory "/etc/apache2/web/secure">
AllowOverride AuthConfig
Options none
Order allow,deny
Allow from all
</Directory>
ErrorDocument 500 "erreur 500"
ErrorDocument 400 "erreur 400"
ErrorDocument 404 "erreur 404"
ErrorDocument 402 "erreur 402"
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.php index.php3 index.php4
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig /usr/local/apache/conf/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /usr/local/apache/conf/magic
</IfModule>
HostnameLookups Off
ErrorLog /usr/local/apache/logs/error_log
LogLevel warn
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
CustomLog /usr/local/apache/logs/access_log combined
<IfModule mod_alias.c>
Alias /icons/ "/usr/local/apache/icons/"
<Directory "/usr/local/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
<IfModule mod_security.c>
SecFilterEngine On
SecServerSignature "Microsoft-IIS/4.0"
SecChrootdir /home/chroot/
SecFilterCheckURLEncoding On
SecFilterCheckUnicodeEncoding On
SecFilterForceByteRange 0 255
SecAuditEngine RelevantOnly
SecAuditLog logs/modsec_log
SecFilterDebugLog logs/modsec_debug_log
SecFilterDebugLevel 0
SecFilterScanPOST On
SecFilterDefaultAction "deny,log,status:401"
# include /usr/local/apache/conf/modsec.conf
</IfModule>
<IfModule mod_mime.c>
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cs .cz .cs
AddLanguage ru .ru
AddLanguage zh-TW .zh-tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddHandler cgi-script .cgi .pl
AddType text/html .shtml
AddHandler server-parsed .shtml
</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
</IfModule>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
AddType application/x-httpd-php .php .php3 .php4
AddType application/x-httpd-php-source .phps
AddType text/html .shtml
AddType application/xml .rss .xml
AddHandler server-parsed .shtml
<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>
<IfModule mod_ssl.c>
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/usr/local/apache/logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /usr/local/apache/logs/ssl_engine_log
SSLLogLevel info
</IfModule>
NameVirtualHost 192.168.1.102
<IfDefine SSL>
NameVirtualHost 192.168.1.102:443
<VirtualHost 192.168.1.102:443>
DocumentRoot /etc/apache2/web/
ServerName 127.0.0.1
ServerAdmin nicokanasii@free.fr
ErrorLog /etc/apache2/logs/error_log
TransferLog /etc/apache2/logs/access_log
SSLEngine off
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
#SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
#SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
#<Files ~ "\.(cgi|shtml|phtml|php3?)$">
#SSLOptions +StdEnvVars
#</Files>
#<Directory "/usr/local/apache/cgi-bin">
#SSLOptions +StdEnvVars
#</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /usr/local/apache/logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</VirtualHost>
</IfDefine>
<VirtualHost 127.0.0.1>
ServerAdmin nicokanasii@free.fr
DocumentRoot /etc/apache2/web/
ScriptAlias /etc/apache2/cgi-bin/
ServerName 127.0.0.1
ErrorLog logs/-error_log
CustomLog logs/site.com-access_log combined
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</VirtualHost>
AddType application/x-httpd-php .php .php3

Dernière modification par dexinou (Le 17/06/2006, à 19:05)


Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...

Hors ligne

#11 Le 17/06/2006, à 23:09

Seta

Re : [apache2] impossible de le lancer

ça me donne ça:

* Reloading apache 2.0 configuration... Syntax error on line 1 of /etc/apache2/httpd.conf:
Invalid command 'ServerType', perhaps mis-spelled or defined by a module not included in the server configuratio

alors que la ligne1 c'est :

servertype standalone

le truc de base quoi, j'y comprends rien hmm

Hors ligne

#12 Le 17/06/2006, à 23:30

Seta

Re : [apache2] impossible de le lancer

Bon ben j'ai viré apache2 et installé apache1, et ça marche direct.
Faut que ça marche pour lundi donc j'avais pas le temps de chercher plus

merci pour ton aide cepandant

Hors ligne