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

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [apache] Phpmyadmin ne fonctionne plus

 


 Mot :   Pseudo :  
 
 Page :   1  2
Page Précédente
Auteur Sujet :

[apache] Phpmyadmin ne fonctionne plus

n°934063
guepe
J'ai du noir sur la truffe ?
Posté le 14-07-2007 à 17:47:17  profilanswer
 

Peut etre qu'il ne s'agit pas de la bonne sous categorie... patapé !!
 
Mon installation LAMP fonctionne tres bien (je tourne sous linux ubuntu 7.04).. j'ai voulu executer le script de configuration de phpmyadmin, j'ai donc touché aux droits du script de configuration... depuis lorsque je suis dans phomyadmin dans un browser, les fichier .php ne sont pas executes mais firefox demande simplement si je veut les ouvrir....
J'ai tenté une réinstallation de phpmyadmin.... toujours pareil, pourtant les droits du script sont revenus.
 
apache tourne bien, un script phpinfo renvoi tout ce qu'il faut, c'est comme si phpmyadmin n'était plus relié a apache ???
 
Je suis perduuuuu  :whistle:


Message édité par guepe le 20-07-2007 à 02:48:39

---------------
Un blog qu'il est bien
mood
Publicité
Posté le 14-07-2007 à 17:47:17  profilanswer
 

n°935253
paprika
Posté le 18-07-2007 à 04:41:01  profilanswer
 

Tu mélanges php et phpmyadmin...
regardes si dans ton httpd.conf la ligne "AddType application/x-httpd-php .php" est décommentée...

n°935542
guepe
J'ai du noir sur la truffe ?
Posté le 19-07-2007 à 00:36:41  profilanswer
 

paprika a écrit :

Tu mélanges php et phpmyadmin...
regardes si dans ton httpd.conf la ligne "AddType application/x-httpd-php .php" est décommentée...


Ahhh.. j'ai l'impression que j'ai un soucis : ce fichier est completement VIDE. Assez surprenant.
 
Peut etre y a til un moyen pour le recreer ?? J'ai eu beau desinstaller / reinstaller php, ca n'a rien changé... A moins que cela ne soit normal qu'il soit vide ?


---------------
Un blog qu'il est bien
n°935543
paprika
Posté le 19-07-2007 à 00:49:24  profilanswer
 

Citation :

A moins que cela ne soit normal qu'il soit vide ?


 :heink:  
non c'est pas normal que ton httpd.conf soit vide
 
apt-get remove --purge apache
apt-get install apache et tu decommentes la ligne...

n°935546
guepe
J'ai du noir sur la truffe ?
Posté le 19-07-2007 à 02:51:46  profilanswer
 

paprika a écrit :

Citation :

A moins que cela ne soit normal qu'il soit vide ?


 :heink:  
non c'est pas normal que ton httpd.conf soit vide
 
apt-get remove --purge apache
apt-get install apache et tu decommentes la ligne...


Bon c'ezt fait.... mais /etc/apache2/httpd.conf est toujours vide


Message édité par guepe le 19-07-2007 à 02:53:13

---------------
Un blog qu'il est bien
n°935559
fighting_f​alcon
Posté le 19-07-2007 à 08:06:39  profilanswer
 

tu es avec apache 1.3 ou apache 2 ????
 
parce que apt-get remove --purge apache && apt-get install apache => tu réinstalles apache 1.3
 
/etc/apache2/httpd.conf => c'est le fichier de conf d'apache 2 ..
 
pour apache 1.3 c'est /etc/apache/httpd.conf
 
 
et d'ailleurs httpd.conf c'est pour Mandriva ... sous Debian et clônes (Ubuntu compris) c'est apache.conf / apache2.conf

n°935581
Le_Tolier
Hello IT ?
Posté le 19-07-2007 à 10:03:34  profilanswer
 

euh nan sous debian c'est aussi httpd.conf du moins sur la sarge et etch :o pour apache 1.3


Message édité par Le_Tolier le 19-07-2007 à 10:03:46

---------------
Never f**k with your systems administrator. Why? Because they know what you do with all that free time! |?? | SAVE Jericho !
n°935643
fighting_f​alcon
Posté le 19-07-2007 à 13:27:13  profilanswer
 

bon bein c'est juste apache2.conf pour apache2 alors ...

n°935689
guepe
J'ai du noir sur la truffe ?
Posté le 19-07-2007 à 14:46:35  profilanswer
 

fighting_falcon a écrit :

bon bein c'est juste apache2.conf pour apache2 alors ...


Arf ok... je suis con j'ai pas precise ma distrib, j'utilise ubuntu. Je sais bien developper... mais paas les technos web, la j'y connais a peu pres pas grand chose  :ange:
[edit] Ce soir je regarde ce fichier


Message édité par guepe le 19-07-2007 à 14:46:57

---------------
Un blog qu'il est bien
n°935823
guepe
J'ai du noir sur la truffe ?
Posté le 20-07-2007 à 02:43:28  profilanswer
 

paprika a écrit :

Tu mélanges php et phpmyadmin...
regardes si dans ton httpd.conf la ligne "AddType application/x-httpd-php .php" est décommentée...


Il s'avere que je n'ai pas cette ligne... je la rajoute.

 

Bon bah je l'ai ajoute au milieu des autres AddType application mais maintenant lorsque je restart le server apache, j'ai ceci :

 
Code :
  1. xglurb@xglurb:/media$ sudo apache2 -k restart
  2. Password:
  3. apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
  4. [Thu Jul 19 20:43:28 2007] [warn] NameVirtualHost 127.0.0.1:0 has no VirtualHosts
 

Bon le warning c'est pas bien grave... mais le reste m'a l'air plus embetant

 

[edit] petite recherche google -> ok j'ai plus l'erreur, que le warning... mais ca ne marche pas plus !!!
Une idée ?


Message édité par guepe le 20-07-2007 à 02:47:49

---------------
Un blog qu'il est bien
mood
Publicité
Posté le 20-07-2007 à 02:43:28  profilanswer
 

n°935831
fighting_f​alcon
Posté le 20-07-2007 à 08:07:44  profilanswer
 

c'est bizarre que tu n'aies pas déjà la ligne addtype pour les .php ...
 
Si Ubuntu fait exactement la même chose que Debian, pour un Apache 2, la configuration est organisée comme telle :
dans /etc/apache2 :
- fichier apache2.conf -> configuration globale du serveur, faite par la distrib
- fichier httpd.conf -> configuration globale du serveur, personnelle. C'est dans ce fichier qu'il faut rajouter nos directives, le fichier apache2.conf étant mis à jour par les paquets apache2. Ce fichier est inclus par apache2.conf
- fichier ports.conf -> contient les ports et adresses IP sur lesquels écoute le serveur apache. Ce fichier est inclus par apache2.conf
 
- fichier mods-enabled/php5.load -> contient l'instruction indiquant à Apache de charge le module php5
- fichier mods-enables/php5.conf -> contient la configuration globale spécifique à php5 (le fameux AddType)
 
Si tu n'as pas ces deux fichiers : a2enmod php5
 
- fichier sites-enabled/000-default -> contient la configuration du virtual hôte par défaut, écoutant sur toute adresse ip, port 80, et pointant vers /var/www. A adapter donc où à désactiver et remplacer par son (ses) propre(s) fichier(s)
 
 
Du coup, pour ton cas :
as tu bien les fichiers /etc/apache2/mods-enabled/php5.[load|conf] ?
as tu la définition de l'hôte virtuel par défaut où l'as tu modifié ?
Si tu l'as modifié, peux tu poster ta configuration
Où sont placées les scripts php de phpmyadmin sur ta machine ?
Peux tu poster le résultat d'un ls -al dans ce répertoire

n°936072
guepe
J'ai du noir sur la truffe ?
Posté le 20-07-2007 à 19:07:02  profilanswer
 

fighting_falcon a écrit :

c'est bizarre que tu n'aies pas déjà la ligne addtype pour les .php ...
 
Si Ubuntu fait exactement la même chose que Debian, pour un Apache 2, la configuration est organisée comme telle :
dans /etc/apache2 :
- fichier apache2.conf -> configuration globale du serveur, faite par la distrib
- fichier httpd.conf -> configuration globale du serveur, personnelle. C'est dans ce fichier qu'il faut rajouter nos directives, le fichier apache2.conf étant mis à jour par les paquets apache2. Ce fichier est inclus par apache2.conf
- fichier ports.conf -> contient les ports et adresses IP sur lesquels écoute le serveur apache. Ce fichier est inclus par apache2.conf
 
- fichier mods-enabled/php5.load -> contient l'instruction indiquant à Apache de charge le module php5
- fichier mods-enables/php5.conf -> contient la configuration globale spécifique à php5 (le fameux AddType)
 
Si tu n'as pas ces deux fichiers : a2enmod php5
 
- fichier sites-enabled/000-default -> contient la configuration du virtual hôte par défaut, écoutant sur toute adresse ip, port 80, et pointant vers /var/www. A adapter donc où à désactiver et remplacer par son (ses) propre(s) fichier(s)
 
 
Du coup, pour ton cas :
as tu bien les fichiers /etc/apache2/mods-enabled/php5.[load|conf] ?
as tu la définition de l'hôte virtuel par défaut où l'as tu modifié ?
Si tu l'as modifié, peux tu poster ta configuration
Où sont placées les scripts php de phpmyadmin sur ta machine ?
Peux tu poster le résultat d'un ls -al dans ce répertoire


Merci pour ton aide... Je te poste cela quand j'aurai ma machine ET internet... spas gagne


---------------
Un blog qu'il est bien
n°936518
guepe
J'ai du noir sur la truffe ?
Posté le 22-07-2007 à 23:38:41  profilanswer
 

fighting_falcon a écrit :

c'est bizarre que tu n'aies pas déjà la ligne addtype pour les .php ...
 
Si Ubuntu fait exactement la même chose que Debian, pour un Apache 2, la configuration est organisée comme telle :
dans /etc/apache2 :
- fichier apache2.conf -> configuration globale du serveur, faite par la distrib
- fichier httpd.conf -> configuration globale du serveur, personnelle. C'est dans ce fichier qu'il faut rajouter nos directives, le fichier apache2.conf étant mis à jour par les paquets apache2. Ce fichier est inclus par apache2.conf
- fichier ports.conf -> contient les ports et adresses IP sur lesquels écoute le serveur apache. Ce fichier est inclus par apache2.conf
 
- fichier mods-enabled/php5.load -> contient l'instruction indiquant à Apache de charge le module php5
- fichier mods-enables/php5.conf -> contient la configuration globale spécifique à php5 (le fameux AddType)
 
Si tu n'as pas ces deux fichiers : a2enmod php5
 
- fichier sites-enabled/000-default -> contient la configuration du virtual hôte par défaut, écoutant sur toute adresse ip, port 80, et pointant vers /var/www. A adapter donc où à désactiver et remplacer par son (ses) propre(s) fichier(s)
 


 
Du coup, pour ton cas :
as tu bien les fichiers /etc/apache2/mods-enabled/php5.[load|conf] ?
Oui
 
as tu la définition de l'hôte virtuel par défaut où l'as tu modifié ?
Non modifié (enfin je crois pas) mais au cas ou :

Code :
  1. NameVirtualHost *
  2. <VirtualHost *>
  3. ServerAdmin webmaster@localhost
  4. DocumentRoot /var/www/
  5. <Directory />
  6.  Options FollowSymLinks
  7.  AllowOverride None
  8. </Directory>
  9. <Directory /var/www/>
  10.  Options Indexes FollowSymLinks MultiViews
  11.  AllowOverride None
  12.  Order allow,deny
  13.  allow from all
  14.  # This directive allows us to have apache2's default start page
  15.                 # in /apache2-default/, but still have / go to the right place
  16.                 #RedirectMatch ^/$ /apache2-default/
  17. </Directory>
  18. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  19. <Directory "/usr/lib/cgi-bin">
  20.  AllowOverride None
  21.  Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
  22.  Order allow,deny
  23.  Allow from all
  24. </Directory>
  25. ErrorLog /var/log/apache2/error.log
  26. # Possible values include: debug, info, notice, warn, error, crit,
  27. # alert, emerg.
  28. LogLevel warn
  29. CustomLog /var/log/apache2/access.log combined
  30. ServerSignature On
  31.     Alias /doc/ "/usr/share/doc/"
  32.     <Directory "/usr/share/doc/">
  33.         Options Indexes MultiViews FollowSymLinks
  34.         AllowOverride None
  35.         Order deny,allow
  36.         Deny from all
  37.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  38.     </Directory>
  39. </VirtualHost>


 
Où sont placées les scripts php de phpmyadmin sur ta machine ?
dans phpmyadmin : /var/www/phpmyadmin
 
Peux tu poster le résultat d'un ls -al dans ce répertoire

Code :
  1. total 1404
  2. drwxr-xr-x   9 root root   4096 2007-07-14 11:58 .
  3. drwxr-xr-x 326 root root  12288 2007-07-14 11:58 ..
  4. -rw-r--r--   1 root root  10910 2007-03-24 19:47 browse_foreigners.php
  5. -rw-r--r--   1 root root    711 2007-03-24 19:47 calendar.php
  6. -rw-r--r--   1 root root 202428 2007-03-24 19:47 ChangeLog
  7. -rw-r--r--   1 root root   3466 2007-03-24 19:47 changelog.php
  8. -rw-r--r--   1 root root    445 2007-03-24 19:47 chk_rel.php
  9. drwxr-xr-x   2 root root   4096 2007-07-14 11:58 config
  10. -rw-r--r--   1 root root    186 2007-03-24 19:47 config.footer.inc.php
  11. -rw-r--r--   1 root root    186 2007-03-24 19:47 config.header.inc.php
  12. -rw-r--r--   1 root root   3322 2007-03-24 19:47 config.inc.php
  13. -rw-r--r--   1 root root   1706 2007-03-24 19:47 config.sample.inc.php
  14. drwxr-xr-x   2 root root   4096 2007-07-14 11:58 css
  15. -rw-r--r--   1 root root   1184 2007-03-24 19:47 db_create.php
  16. -rw-r--r--   1 root root  10617 2007-03-24 19:47 db_datadict.php
  17. -rw-r--r--   1 root root   2303 2007-03-24 19:47 db_details_export.php
  18. -rw-r--r--   1 root root  12548 2007-03-24 19:47 db_details_importdocsql.php
  19. -rw-r--r--   1 root root    786 2007-03-24 19:47 db_details.php
  20. -rw-r--r--   1 root root  34537 2007-03-24 19:47 db_details_qbe.php
  21. -rw-r--r--   1 root root  21426 2007-03-24 19:47 db_details_structure.php
  22. -rw-r--r--   1 root root    456 2007-03-24 19:47 db_import.php
  23. -rw-r--r--   1 root root  17662 2007-03-24 19:47 db_operations.php
  24. -rw-r--r--   1 root root   7610 2007-03-24 19:47 db_printview.php
  25. -rw-r--r--   1 root root  11944 2007-03-24 19:47 db_search.php
  26. -rw-r--r--   1 root root   4583 2007-03-24 19:47 docs.css
  27. -rw-r--r--   1 root root 213402 2007-03-24 19:47 Documentation.html
  28. -rw-r--r--   1 root root   1959 2007-03-24 19:47 error.php
  29. -rw-r--r--   1 root root  24647 2007-03-24 19:47 export.php
  30. lrwxrwxrwx   1 root root     24 2007-07-14 11:58 .htaccess -> /etc/phpmyadmin/htaccess
  31. -rw-r--r--   1 root root  13946 2007-03-24 19:47 import.php
  32. -rw-r--r--   1 root root   6252 2007-03-24 19:47 index.php
  33. -rw-r--r--   1 root root    179 2007-03-24 19:47 INSTALL
  34. drwxr-xr-x   2 root root   4096 2007-07-14 11:58 js
  35. drwxr-xr-x   2 root root  12288 2007-07-14 11:58 lang
  36. -rw-r--r--   1 root root  21040 2007-03-24 19:47 left.php
  37. drwxr-xr-x  11 root root   4096 2007-07-14 11:58 libraries
  38. -rw-r--r--   1 root root    315 2007-03-24 19:47 license.php
  39. -rw-r--r--   1 root root  14304 2007-03-24 19:47 main.php
  40. -rw-r--r--   1 root root  27296 2007-03-24 19:47 pdf_pages.php
  41. -rw-r--r--   1 root root  53341 2007-03-24 19:47 pdf_schema.php
  42. -rw-r--r--   1 root root    341 2007-03-24 19:47 phpinfo.php
  43. -rw-r--r--   1 root root  13951 2007-03-24 19:47 querywindow.php
  44. -rw-r--r--   1 root root   2629 2007-03-24 19:47 README
  45. -rw-r--r--   1 root root    313 2007-03-24 19:47 readme.php
  46. drwxr-xr-x   2 root root   4096 2007-07-14 11:58 scripts
  47. -rw-r--r--   1 root root   3341 2007-03-24 19:47 server_binlog.php
  48. -rw-r--r--   1 root root   2773 2007-03-24 19:47 server_collations.php
  49. -rw-r--r--   1 root root  15982 2007-03-24 19:47 server_databases.php
  50. -rw-r--r--   1 root root   8285 2007-03-24 19:47 server_engines.php
  51. -rw-r--r--   1 root root   1774 2007-03-24 19:47 server_export.php
  52. -rw-r--r--   1 root root    452 2007-03-24 19:47 server_import.php
  53. -rw-r--r--   1 root root 112668 2007-03-24 19:47 server_privileges.php
  54. -rw-r--r--   1 root root   2845 2007-03-24 19:47 server_processlist.php
  55. -rw-r--r--   1 root root    543 2007-03-24 19:47 server_sql.php
  56. -rw-r--r--   1 root root  20286 2007-03-24 19:47 server_status.php
  57. -rw-r--r--   1 root root   2410 2007-03-24 19:47 server_variables.php
  58. -rw-r--r--   1 root root    283 2007-03-24 19:47 show_config_errors.php
  59. -rw-r--r--   1 root root  34885 2007-03-24 19:47 sql.php
  60. -rw-r--r--   1 root root   9159 2007-03-24 19:47 tbl_addfield.php
  61. -rw-r--r--   1 root root   9511 2007-03-24 19:47 tbl_alter.php
  62. -rw-r--r--   1 root root  45723 2007-03-24 19:47 tbl_change.php
  63. -rw-r--r--   1 root root   8682 2007-03-24 19:47 tbl_create.php
  64. -rw-r--r--   1 root root    640 2007-03-24 19:47 tbl_import.php
  65. -rw-r--r--   1 root root  16568 2007-03-24 19:47 tbl_indexes.php
  66. -rw-r--r--   1 root root   2102 2007-03-24 19:47 tbl_move_copy.php
  67. -rw-r--r--   1 root root  18325 2007-03-24 19:47 tbl_printview.php
  68. -rw-r--r--   1 root root   3925 2007-03-24 19:47 tbl_properties_export.php
  69. -rw-r--r--   1 root root  19869 2007-03-24 19:47 tbl_properties_operations.php
  70. -rw-r--r--   1 root root    811 2007-03-24 19:47 tbl_properties.php
  71. -rw-r--r--   1 root root  33635 2007-03-24 19:47 tbl_properties_structure.php
  72. -rw-r--r--   1 root root  23600 2007-03-24 19:47 tbl_relation.php
  73. -rw-r--r--   1 root root  11904 2007-03-24 19:47 tbl_replace.php
  74. -rw-r--r--   1 root root   4659 2007-03-24 19:47 tbl_row_action.php
  75. -rw-r--r--   1 root root  17111 2007-03-24 19:47 tbl_select.php
  76. drwxr-xr-x   4 root root   4096 2007-07-14 11:58 themes
  77. -rw-r--r--   1 root root    974 2007-03-24 19:47 themes.php
  78. -rw-r--r--   1 root root   1727 2007-03-24 19:47 transformation_overview.php
  79. -rw-r--r--   1 root root   4049 2007-03-24 19:47 transformation_wrapper.php
  80. -rw-r--r--   1 root root   8127 2007-03-24 19:47 translators.html
  81. -rw-r--r--   1 root root   5712 2007-03-24 19:47 user_password.php


---------------
Un blog qu'il est bien
n°936550
fighting_f​alcon
Posté le 23-07-2007 à 07:59:57  profilanswer
 

ok, donc a priori :
 
1/ vire le AddType ... que tu as rajouté dans apache2.conf ou httpd.conf
Il est déjà présent dans le fichier php5.conf
 
2/ ton install de phpmyadmin tu l'as faite manuellement ou via un paquet ?
si manuellement, reprends les droits sur ton dossier /var/www/phpmyadmin : chown -R www-data:www-data /var/www/phpmyadmin
 
 
 
une fois ces modifs faites (au moins le 1), redémarre ton service apache et reteste. Si ça ne marche toujours pas, poste nous :
- ton apache2.conf
- ton httpd.conf
- ton ports.conf
- ton php5.load
- les erreurs que tu as (/var/log/apache2/error.log)

n°937332
guepe
J'ai du noir sur la truffe ?
Posté le 25-07-2007 à 19:22:18  profilanswer
 

J'ai tout installé par packetage (apt-get powa), j'ai donc juste fait le 1, toujours pas.
[edit] : cf error.log de apache2 : apparemment y'a un probleme !!!
apache2.conf (attention c'est long)

 
Code :
  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file.  It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://httpd.apache.org/docs-2.1/> for detailed information about
  7. # the directives.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do.  They're here only as hints or reminders.  If you are unsure
  11. # consult the online docs. You have been warned. 
  12. #
  13. # The configuration directives are grouped into three basic sections:
  14. #  1. Directives that control the operation of the Apache server process as a
  15. #     whole (the 'global environment').
  16. #  2. Directives that define the parameters of the 'main' or 'default' server,
  17. #     which responds to requests that aren't handled by a virtual host.
  18. #     These directives also provide default values for the settings
  19. #     of all virtual hosts.
  20. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  21. #     different IP addresses or hostnames and have them handled by the
  22. #     same Apache server process.
  23. #
  24. # Configuration and logfile names: If the filenames you specify for many
  25. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  26. # server will use that explicit path.  If the filenames do *not* begin
  27. # with "/", the value of ServerRoot is prepended -- so "/var/log/apache2/foo.log"
  28. # with ServerRoot set to "" will be interpreted by the
  29. # server as "//var/log/apache2/foo.log".
  30. #
  31. ### Section 1: Global Environment
  32. #
  33. # The directives in this section affect the overall operation of Apache,
  34. # such as the number of concurrent requests it can handle or where it
  35. # can find its configuration files.
  36. #
  37. #
  38. # ServerRoot: The top of the directory tree under which the server's
  39. # configuration, error, and log files are kept.
  40. #
  41. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  42. # mounted filesystem then please read the LockFile documentation (available
  43. # at <URL:http://httpd.apache.org/docs-2.1/mod/mpm_common.html#lockfile> );
  44. # you will save yourself a lot of trouble.
  45. #
  46. # Do NOT add a slash at the end of the directory path.
  47. #
  48. ServerRoot "/etc/apache2"
  49. #
  50. # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
  51. #
  52. #<IfModule !mpm_winnt.c>
  53. #<IfModule !mpm_netware.c>
  54. LockFile /var/lock/apache2/accept.lock
  55. #</IfModule>
  56. #</IfModule>
  57. #
  58. # PidFile: The file in which the server should record its process
  59. # identification number when it starts.
  60. #
  61. PidFile /var/run/apache2.pid
  62. #
  63. # Timeout: The number of seconds before receives and sends time out.
  64. #
  65. Timeout 300
  66. #
  67. # KeepAlive: Whether or not to allow persistent connections (more than
  68. # one request per connection). Set to "Off" to deactivate.
  69. #
  70. KeepAlive On
  71. #
  72. # MaxKeepAliveRequests: The maximum number of requests to allow
  73. # during a persistent connection. Set to 0 to allow an unlimited amount.
  74. # We recommend you leave this number high, for maximum performance.
  75. #
  76. MaxKeepAliveRequests 100
  77. #
  78. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  79. # same client on the same connection.
  80. #
  81. KeepAliveTimeout 15
  82. ##
  83. ## Server-Pool Size Regulation (MPM specific)
  84. ##
  85. # prefork MPM
  86. # StartServers: number of server processes to start
  87. # MinSpareServers: minimum number of server processes which are kept spare
  88. # MaxSpareServers: maximum number of server processes which are kept spare
  89. # MaxClients: maximum number of server processes allowed to start
  90. # MaxRequestsPerChild: maximum number of requests a server process serves
  91. <IfModule mpm_prefork_module>
  92.     StartServers          5
  93.     MinSpareServers       5
  94.     MaxSpareServers      10
  95.     MaxClients          150
  96.     MaxRequestsPerChild   0
  97. </IfModule>
  98. # worker MPM
  99. # StartServers: initial number of server processes to start
  100. # MaxClients: maximum number of simultaneous client connections
  101. # MinSpareThreads: minimum number of worker threads which are kept spare
  102. # MaxSpareThreads: maximum number of worker threads which are kept spare
  103. # ThreadsPerChild: constant number of worker threads in each server process
  104. # MaxRequestsPerChild: maximum number of requests a server process serves
  105. <IfModule mpm_worker_module>
  106.     StartServers          2
  107.     MaxClients          150
  108.     MinSpareThreads      25
  109.     MaxSpareThreads      75
  110.     ThreadsPerChild      25
  111.     MaxRequestsPerChild   0
  112. </IfModule>
  113. User www-data
  114. Group www-data
  115. #
  116. # AccessFileName: The name of the file to look for in each directory
  117. # for additional configuration directives.  See also the AllowOverride
  118. # directive.
  119. #
  120. AccessFileName .htaccess
  121. #
  122. # The following lines prevent .htaccess and .htpasswd files from being
  123. # viewed by Web clients.
  124. #
  125. <Files ~ "^\.ht">
  126.     Order allow,deny
  127.     Deny from all
  128. </Files>
  129. TypesConfig /etc/mime.types
  130. #
  131. # DefaultType is the default MIME type the server will use for a document
  132. # if it cannot otherwise determine one, such as from filename extensions.
  133. # If your server contains mostly text or HTML documents, "text/plain" is
  134. # a good value.  If most of your content is binary, such as applications
  135. # or images, you may want to use "application/octet-stream" instead to
  136. # keep browsers from trying to display binary files as though they are
  137. # text.
  138. #
  139. DefaultType text/plain
  140. #
  141. # HostnameLookups: Log the names of clients or just their IP addresses
  142. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  143. # The default is off because it'd be overall better for the net if people
  144. # had to knowingly turn this feature on, since enabling it means that
  145. # each client request will result in AT LEAST one lookup request to the
  146. # nameserver.
  147. #
  148. HostnameLookups Off
  149. # ErrorLog: The location of the error log file.
  150. # If you do not specify an ErrorLog directive within a <VirtualHost>
  151. # container, error messages relating to that virtual host will be
  152. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  153. # container, that host's errors will be logged there and not here.
  154. #
  155. ErrorLog /var/log/apache2/error.log
  156. #
  157. # LogLevel: Control the number of messages logged to the error_log.
  158. # Possible values include: debug, info, notice, warn, error, crit,
  159. # alert, emerg.
  160. #
  161. LogLevel warn
  162. # Include module configuration:
  163. Include /etc/apache2/mods-enabled/*.load
  164. Include /etc/apache2/mods-enabled/*.conf
  165. # Include all the user configurations:
  166. Include /etc/apache2/httpd.conf
  167. # Include ports listing
  168. Include /etc/apache2/ports.conf
  169. # Include generic snippets of statements
  170. Include /etc/apache2/conf.d/
  171. #
  172. # The following directives define some format nicknames for use with
  173. # a CustomLog directive (see below).
  174. #
  175. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  176. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  177. LogFormat "%{Referer}i -> %U" referer
  178. LogFormat "%{User-agent}i" agent
  179. #
  180. # ServerTokens
  181. # This directive configures what you return as the Server HTTP response
  182. # Header. The default is 'Full' which sends information about the OS-Type
  183. # and compiled in modules.
  184. # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
  185. # where Full conveys the most information, and Prod the least.
  186. #
  187. ServerTokens Full
  188. #
  189. # Optionally add a line containing the server version and virtual host
  190. # name to server-generated pages (internal error documents, FTP directory
  191. # listings, mod_status and mod_info output etc., but not CGI generated
  192. # documents or custom error documents).
  193. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  194. # Set to one of:  On | Off | EMail
  195. #
  196. ServerSignature On
  197. <IfModule alias_module>
  198.     #
  199.     # Aliases: Add here as many aliases as you need (with no limit). The format is
  200.     # Alias fakename realname
  201.     #
  202.     # Note that if you include a trailing / on fakename then the server will
  203.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  204.     # example, only "/icons/".  If the fakename is slash-terminated, then the
  205.     # realname must also be slash terminated, and if the fakename omits the
  206.     # trailing slash, the realname must also omit it.
  207.     #
  208.     # We include the /icons/ alias for FancyIndexed directory listings.  If
  209.     # you do not use FancyIndexing, you may comment this out.
  210.     #
  211.     Alias /icons/ "/usr/share/apache2/icons/"
  212.     <Directory "/usr/share/apache2/icons">
  213.         Options Indexes MultiViews
  214.         AllowOverride None
  215.         Order allow,deny
  216.         Allow from all
  217.     </Directory>
  218. </IfModule>
  219. #
  220. # Directives controlling the display of server-generated directory listings.
  221. #
  222. <IfModule mod_autoindex.c>
  223.     #
  224.     # IndexOptions: Controls the appearance of server-generated directory
  225.     # listings.
  226.     #
  227.     IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=*
  228.     #
  229.     # AddIcon* directives tell the server which icon to show for different
  230.     # files or filename extensions.  These are only displayed for
  231.     # FancyIndexed directories.
  232.     #
  233.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  234.     AddIconByType (TXT,/icons/text.gif) text/*
  235.     AddIconByType (IMG,/icons/image2.gif) image/*
  236.     AddIconByType (SND,/icons/sound2.gif) audio/*
  237.     AddIconByType (VID,/icons/movie.gif) video/*
  238.     AddIcon /icons/binary.gif .bin .exe
  239.     AddIcon /icons/binhex.gif .hqx
  240.     AddIcon /icons/tar.gif .tar
  241.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  242.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  243.     AddIcon /icons/a.gif .ps .ai .eps
  244.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  245.     AddIcon /icons/text.gif .txt
  246.     AddIcon /icons/c.gif .c
  247.     AddIcon /icons/p.gif .pl .py
  248.     AddIcon /icons/f.gif .for
  249.     AddIcon /icons/dvi.gif .dvi
  250.     AddIcon /icons/uuencoded.gif .uu
  251.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  252.     AddIcon /icons/tex.gif .tex
  253.     AddIcon /icons/bomb.gif core
  254.     AddIcon /icons/back.gif ..
  255.     AddIcon /icons/hand.right.gif README
  256.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  257.     AddIcon /icons/blank.gif ^^BLANKICON^^
  258.     #
  259.     # DefaultIcon is which icon to show for files which do not have an icon
  260.     # explicitly set.
  261.     #
  262.     DefaultIcon /icons/unknown.gif
  263.     #
  264.     # AddDescription allows you to place a short description after a file in
  265.     # server-generated indexes.  These are only displayed for FancyIndexed
  266.     # directories.
  267.     # Format: AddDescription "description" filename
  268.     #
  269.     #AddDescription "GZIP compressed document" .gz
  270.     #AddDescription "tar archive" .tar
  271.     #AddDescription "GZIP compressed tar archive" .tgz
  272.     #
  273.     # ReadmeName is the name of the README file the server will look for by
  274.     # default, and append to directory listings.
  275.     #
  276.     # HeaderName is the name of a file which should be prepended to
  277.     # directory indexes.
  278.     ReadmeName README.html
  279.     HeaderName HEADER.html
  280.     #
  281.     # IndexIgnore is a set of filenames which directory indexing should ignore
  282.     # and not include in the listing.  Shell-style wildcarding is permitted.
  283.     #
  284.     IndexIgnore .??* *~ *# RCS CVS *,v *,t
  285. </IfModule>
  286. <IfModule mod_mime.c>
  287.     #
  288.     # AddType allows you to add to or override the MIME configuration
  289.     # file mime.types for specific file types.
  290.     #
  291.     #AddType application/x-gzip .tgz
  292.     #
  293.     # AddEncoding allows you to have certain browsers uncompress
  294.     # information on the fly. Note: Not all browsers support this.
  295.     # Despite the name similarity, the following Add* directives have
  296.     # nothing to do with the FancyIndexing customization directives above.
  297.     #
  298.     #AddEncoding x-compress .Z
  299.     #AddEncoding x-gzip .gz .tgz
  300.     #
  301.     # If the AddEncoding directives above are commented-out, then you
  302.     # probably should define those extensions to indicate media types:
  303.     #
  304.     AddType application/x-compress .Z
  305.     AddType application/x-gzip .gz .tgz
  306.     #
  307.     # DefaultLanguage and AddLanguage allows you to specify the language of
  308.     # a document. You can then use content negotiation to give a browser a
  309.     # file in a language the user can understand.
  310.     #
  311.     # Specify a default language. This means that all data
  312.     # going out without a specific language tag (see below) will
  313.     # be marked with this one. You probably do NOT want to set
  314.     # this unless you are sure it is correct for all cases.
  315.     #
  316.     # * It is generally better to not mark a page as
  317.     # * being a certain language than marking it with the wrong
  318.     # * language!
  319.     #
  320.     # DefaultLanguage nl
  321.     #
  322.     # Note 1: The suffix does not have to be the same as the language
  323.     # keyword --- those with documents in Polish (whose net-standard
  324.     # language code is pl) may wish to use "AddLanguage pl .po" to
  325.     # avoid the ambiguity with the common suffix for perl scripts.
  326.     #
  327.     # Note 2: The example entries below illustrate that in some cases
  328.     # the two character 'Language' abbreviation is not identical to
  329.     # the two character 'Country' code for its country,
  330.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  331.     #
  332.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  333.     # specifier. There is 'work in progress' to fix this and get
  334.     # the reference data for rfc1766 cleaned up.
  335.     #
  336.     # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  337.     # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  338.     # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  339.     # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  340.     # Norwegian (no) - Polish (pl) - Portugese (pt)
  341.     # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  342.     # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  343.     #
  344.     AddLanguage ca .ca
  345.     AddLanguage cs .cz .cs
  346.     AddLanguage da .dk
  347.     AddLanguage de .de
  348.     AddLanguage el .el
  349.     AddLanguage en .en
  350.     AddLanguage eo .eo
  351.     AddLanguage es .es
  352.     AddLanguage et .et
  353.     AddLanguage fr .fr
  354.     AddLanguage he .he
  355.     AddLanguage hr .hr
  356.     AddLanguage it .it
  357.     AddLanguage ja .ja
  358.     AddLanguage ko .ko
  359.     AddLanguage ltz .ltz
  360.     AddLanguage nl .nl
  361.     AddLanguage nn .nn
  362.     AddLanguage no .no
  363.     AddLanguage pl .po
  364.     AddLanguage pt .pt
  365.     AddLanguage pt-BR .pt-br
  366.     AddLanguage ru .ru
  367.     AddLanguage sv .sv
  368.     AddLanguage zh-CN .zh-cn
  369.     AddLanguage zh-TW .zh-tw
  370. </IfModule>
  371. <IfModule mod_negotiation.c>
  372.     #
  373.     # LanguagePriority allows you to give precedence to some languages
  374.     # in case of a tie during content negotiation.
  375.     #
  376.     # Just list the languages in decreasing order of preference. We have
  377.     # more or less alphabetized them here. You probably want to change this.
  378.     #
  379.     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
  380.     #
  381.     # ForceLanguagePriority allows you to serve a result page rather than
  382.     # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  383.     # [in case no accepted languages matched the available variants]
  384.     #
  385.     ForceLanguagePriority Prefer Fallback
  386. </IfModule>
  387. <IfModule mod_mime.c>
  388.     #
  389.     # Specify a default charset for all pages sent out. This is
  390.     # always a good idea and opens the door for future internationalisation
  391.     # of your web site, should you ever want it. Specifying it as
  392.     # a default does little harm; as the standard dictates that a page
  393.     # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
  394.     # are merely stating the obvious. There are also some security
  395.     # reasons in browsers, related to javascript and URL parsing
  396.     # which encourage you to always set a default char set.
  397.     #
  398.     #AddDefaultCharset ISO-8859-1
  399.     #
  400.     # Commonly used filename extensions to character sets. You probably
  401.     # want to avoid clashes with the language extensions, unless you
  402.     # are good at carefully testing your setup after each change.
  403.     # See http://www.iana.org/assignments/character-sets for the
  404.     # official list of charset names and their respective RFCs.
  405.     #
  406.     AddCharset us-ascii    .ascii .us-ascii
  407.     AddCharset ISO-8859-1  .iso8859-1  .latin1
  408.     AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
  409.     AddCharset ISO-8859-3  .iso8859-3  .latin3
  410.     AddCharset ISO-8859-4  .iso8859-4  .latin4
  411.     AddCharset ISO-8859-5  .iso8859-5  .cyr .iso-ru
  412.     AddCharset ISO-8859-6  .iso8859-6  .arb .arabic
  413.     AddCharset ISO-8859-7  .iso8859-7  .grk .greek
  414.     AddCharset ISO-8859-8  .iso8859-8  .heb .hebrew
  415.     AddCharset ISO-8859-9  .iso8859-9  .latin5 .trk
  416.     AddCharset ISO-8859-10  .iso8859-10  .latin6
  417.     AddCharset ISO-8859-13  .iso8859-13
  418.     AddCharset ISO-8859-14  .iso8859-14  .latin8
  419.     AddCharset ISO-8859-15  .iso8859-15  .latin9
  420.     AddCharset ISO-8859-16  .iso8859-16  .latin10
  421.     AddCharset ISO-2022-JP .iso2022-jp .jis
  422.     AddCharset ISO-2022-KR .iso2022-kr .kis
  423.     AddCharset ISO-2022-CN .iso2022-cn .cis
  424.     AddCharset Big5        .Big5       .big5 .b5
  425.     AddCharset cn-Big5     .cn-big5
  426.     # For russian, more than one charset is used (depends on client, mostly):
  427.     AddCharset WINDOWS-1251 .cp-1251   .win-1251
  428.     AddCharset CP866       .cp866
  429.     AddCharset KOI8      .koi8
  430.     AddCharset KOI8-E      .koi8-e
  431.     AddCharset KOI8-r      .koi8-r .koi8-ru
  432.     AddCharset KOI8-U      .koi8-u
  433.     AddCharset KOI8-ru     .koi8-uk .ua
  434.     AddCharset ISO-10646-UCS-2 .ucs2
  435.     AddCharset ISO-10646-UCS-4 .ucs4
  436.     AddCharset UTF-7       .utf7
  437.     AddCharset UTF-8       .utf8
  438.     AddCharset UTF-16      .utf16
  439.     AddCharset UTF-16BE    .utf16be
  440.     AddCharset UTF-16LE    .utf16le
  441.     AddCharset UTF-32      .utf32
  442.     AddCharset UTF-32BE    .utf32be
  443.     AddCharset UTF-32LE    .utf32le
  444.     AddCharset euc-cn      .euc-cn
  445.     AddCharset euc-gb      .euc-gb
  446.     AddCharset euc-jp      .euc-jp
  447.     AddCharset euc-kr      .euc-kr
  448.     #Not sure how euc-tw got in - IANA doesn't list it???
  449.     AddCharset EUC-TW      .euc-tw
  450.     AddCharset gb2312      .gb2312 .gb
  451.     AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
  452.     AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
  453.     AddCharset shift_jis   .shift_jis .sjis
  454.     #
  455.     # AddHandler allows you to map certain file extensions to "handlers":
  456.     # actions unrelated to filetype. These can be either built into the server
  457.     # or added with the Action directive (see below)
  458.     #
  459.     # To use CGI scripts outside of ScriptAliased directories:
  460.     # (You will also need to add "ExecCGI" to the "Options" directive.)
  461.     #
  462.     #AddHandler cgi-script .cgi
  463.     #
  464.     # For files that include their own HTTP headers:
  465.     #
  466.     #AddHandler send-as-is asis
  467.     #
  468.     # For server-parsed imagemap files:
  469.     #
  470.     #AddHandler imap-file map
  471.     #
  472.     # For type maps (negotiated resources):
  473.     # (This is enabled by default to allow the Apache "It Worked" page
  474.     #  to be distributed in multiple languages.)
  475.     #
  476.     AddHandler type-map var
  477.     #
  478.     # Filters allow you to process content before it is sent to the client.
  479.     #
  480.     # To parse .shtml files for server-side includes (SSI):
  481.     # (You will also need to add "Includes" to the "Options" directive.)
  482.     #
  483.     AddType text/html .shtml
  484.     AddOutputFilter INCLUDES .shtml
  485. </IfModule>
  486. #
  487. # Action lets you define media types that will execute a script whenever
  488. # a matching file is called. This eliminates the need for repeated URL
  489. # pathnames for oft-used CGI file processors.
  490. # Format: Action media/type /cgi-script/location
  491. # Format: Action handler-name /cgi-script/location
  492. #
  493. #
  494. # Customizable error responses come in three flavors:
  495. # 1) plain text 2) local redirects 3) external redirects
  496. #
  497. # Some examples:
  498. #ErrorDocument 500 "The server made a boo boo."
  499. #ErrorDocument 404 /missing.html
  500. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  501. #ErrorDocument 402 http://www.example.com/subscription_info.html
  502. #
  503. #
  504. # Putting this all together, we can internationalize error responses.
  505. #
  506. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  507. # our collection of by-error message multi-language collections.  We use
  508. # includes to substitute the appropriate text.
  509. #
  510. # You can modify the messages' appearance without changing any of the
  511. # default HTTP_<error>.html.var files by adding the line:
  512. #
  513. #   Alias /error/include/ "/your/include/path/"
  514. #
  515. # which allows you to create your own set of files by starting with the
  516. # /usr/share/apache2/error/include/ files and copying them to /your/include/path/,
  517. # even on a per-VirtualHost basis.  The default include files will display
  518. # your Apache version number and your ServerAdmin email address regardless
  519. # of the setting of ServerSignature.
  520. #
  521. # The internationalized error documents require mod_alias, mod_include
  522. # and mod_negotiation.  To activate them, uncomment the following 30 lines.
  523. #    Alias /error/ "/usr/share/apache2/error/"
  524. #
  525. #    <Directory "/usr/share/apache2/error">
  526. #        AllowOverride None
  527. #        Options IncludesNoExec
  528. #        AddOutputFilter Includes html
  529. #        AddHandler type-map var
  530. #        Order allow,deny
  531. #        Allow from all
  532. #        LanguagePriority en cs de es fr it nl sv pt-br ro
  533. #        ForceLanguagePriority Prefer Fallback
  534. #    </Directory>
  535. #
  536. #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  537. #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  538. #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  539. #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  540. #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  541. #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  542. #    ErrorDocument 410 /error/HTTP_GONE.html.var
  543. #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  544. #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  545. #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  546. #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  547. #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  548. #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  549. #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  550. #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  551. #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  552. #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  553. <IfModule mod_setenvif.c>
  554.     #
  555.     # The following directives modify normal HTTP response behavior to
  556.     # handle known problems with browser implementations.
  557.     #
  558.     BrowserMatch "Mozilla/2" nokeepalive
  559.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  560.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  561.     BrowserMatch "Java/1\.0" force-response-1.0
  562.     BrowserMatch "JDK/1\.0" force-response-1.0
  563.     #
  564.     # The following directive disables redirects on non-GET requests for
  565.     # a directory that does not include the trailing slash.  This fixes a
  566.     # problem with Microsoft WebFolders which does not appropriately handle
  567.     # redirects for folders with DAV methods.
  568.     # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  569.     #
  570.     BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  571.     BrowserMatch "MS FrontPage" redirect-carefully
  572.     BrowserMatch "^WebDrive" redirect-carefully
  573.     BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
  574.     BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  575.     BrowserMatch "^XML Spy" redirect-carefully
  576.     BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  577. </IfModule>
  578. #<IfModule mod_status.c>
  579.     #
  580.     # Allow server status reports generated by mod_status,
  581.     # with the URL of http://servername/server-status
  582.     # Change the ".example.com" to match your domain to enable.
  583.     #
  584.     #<Location /server-status>
  585.     #    SetHandler server-status
  586.     #    Order deny,allow
  587.     #    Deny from all
  588.     #    Allow from .example.com
  589.     #</Location>
  590. #</IfModule>
  591. #<IfModule mod_info.c>
  592.     #
  593.     # Allow remote server configuration reports, with the URL of
  594.     #  http://servername/server-info (requires that mod_info.c be loaded).
  595.     # Change the ".example.com" to match your domain to enable.
  596.     #
  597.     #<Location /server-info>
  598.     #    SetHandler server-info
  599.     #    Order deny,allow
  600.     #    Deny from all
  601.     #    Allow from .example.com
  602.     #</Location>
  603. #</IfModule>
  604. # Include the virtual host configurations:
  605. Include /etc/apache2/sites-enabled/
  606. ServerName xglurb
  607. NameVirtualHost 127.0.0.1
 

ports.conf :

Code :
  1. Listen 80
 

php5.load

Code :
  1. LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
 

mon httpd.conf est vide

 

/var/log/apache2/error.log

Code :
  1. [Wed Jul 25 13:11:23 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 configured -- resuming normal operations
  2. [Wed Jul 25 13:11:28 2007] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
  3. [Wed Jul 25 13:11:31 2007] [notice] child pid 24786 exit signal Segmentation fault (11)
  4. [Wed Jul 25 13:11:32 2007] [notice] child pid 24787 exit signal Segmentation fault (11)
  5. [Wed Jul 25 13:11:32 2007] [notice] child pid 24788 exit signal Segmentation fault (11)
  6. [Wed Jul 25 13:12:06 2007] [notice] SIGHUP received.  Attempting to restart
  7. [Wed Jul 25 13:12:06 2007] [warn] NameVirtualHost 127.0.0.1:0 has no VirtualHosts
  8. [Wed Jul 25 13:12:06 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 configured -- resuming normal operations
  9. [Wed Jul 25 13:22:15 2007] [notice] child pid 24837 exit signal Segmentation fault (11)
  10. [Wed Jul 25 13:22:16 2007] [notice] child pid 24838 exit signal Segmentation fault (11)


Message édité par guepe le 25-07-2007 à 19:22:56

---------------
Un blog qu'il est bien
n°937401
fighting_f​alcon
Posté le 26-07-2007 à 08:43:01  profilanswer
 

il y a des incohérences dans ta config ...
 
le fichier apache2.conf doit se finir par :

Code :
  1. # Include the virtual host configurations:
  2. Include /etc/apache2/sites-enabled/


 
la déclaration des ips / ports sur lesquels tourneront les virtualhosts :

Code :
  1. NameVirtualHost 127.0.0.1:80


est à mettre dans httpd.conf
 
ensuite, il faut que tu configures un virtualhost (en y déplaçant ta directive ServerName), fichier /etc/apache2/sites-available/ton_vhost.conf :

Code :
  1. <VirtualHost 127.0.0.1:80>
  2.         ServerName xglurb
  3.         ServerAdmin admin@xglurb
  4.         DocumentRoot /var/www/...
  5.         <Directory /var/www/...>
  6.                 Options -All -Multiviews FollowSymLinks
  7.                 Order deny,allow
  8.                 Allow from all
  9.         </Directory>
  10.         DirectoryIndex index.php
  11. </VirtualHost>


 
 
et enfin tu actives ce site :
a2ensite ton_vhost.conf

n°938227
guepe
J'ai du noir sur la truffe ?
Posté le 29-07-2007 à 00:32:57  profilanswer
 

fighting_falcon a écrit :

il y a des incohérences dans ta config ...
 
le fichier apache2.conf doit se finir par :

Code :
  1. # Include the virtual host configurations:
  2. Include /etc/apache2/sites-enabled/


 
la déclaration des ips / ports sur lesquels tourneront les virtualhosts :

Code :
  1. NameVirtualHost 127.0.0.1:80


est à mettre dans httpd.conf
 
ensuite, il faut que tu configures un virtualhost (en y déplaçant ta directive ServerName), fichier /etc/apache2/sites-available/ton_vhost.conf :

Code :
  1. <VirtualHost 127.0.0.1:80>
  2.         ServerName xglurb
  3.         ServerAdmin admin@xglurb
  4.         DocumentRoot /var/www/...
  5.         <Directory /var/www/...>
  6.                 Options -All -Multiviews FollowSymLinks
  7.                 Order deny,allow
  8.                 Allow from all
  9.         </Directory>
  10.         DirectoryIndex index.php
  11. </VirtualHost>


 
 
et enfin tu actives ce site :
a2ensite ton_vhost.conf


 
J'ai fait exactement comme cela... la seule chose que j'ai du changee, c'est le httpd.conf et apache2.conf.
Maintenant lorsque j'ouvre localhost j'ai un magnifique 403 forbidden.. aieaie !! Surement les lignes de configuration du repertoire, mais que mettre exactement ?
 
Voici mon virtual1.conf
 

Code :
  1. <VirtualHost 127.0.1.1>
  2.     DocumentRoot /home/xglurb/Developpement/blog
  3.     ServerName local
  4. </VirtualHost>
  5. <VirtualHost 127.0.0.1:80>
  6.         ServerName xglurb
  7.         ServerAdmin admin@xglurb
  8.         DocumentRoot /home/xglurb/Developpement/blog
  9.         <Directory //home/xglurb/Developpement/blog>
  10.                 Options -All -Multiviews FollowSymLinks
  11.                 Order deny,allow
  12.                 Allow from all
  13.         </Directory>
  14.         DirectoryIndex index.php
  15. </VirtualHost>


Message édité par guepe le 29-07-2007 à 00:34:18

---------------
Un blog qu'il est bien
n°938509
fighting_f​alcon
Posté le 30-07-2007 à 08:30:57  profilanswer
 

Citation :

<VirtualHost 127.0.1.1>


 
c'est <VirtualHost 127.0.0.1> non ??
 

Citation :

<Directory //home/xglurb/Developpement/blog>


Il y a un / de trop au début ==> /home
 
Il te manque un virtual host pour PhpMyAdmin, ou alors la config du répertoire pour ... style :

Code :
  1. Alias /phpmyadmin /var/www/phpmyadmin/
  2. <Directory /var/www/phpmyadmin>
  3.      Options -All -Multiviews FollowSymLinks
  4.      Order deny,allow
  5.      Allow from all
  6. </Directory>

n°938754
guepe
J'ai du noir sur la truffe ?
Posté le 30-07-2007 à 17:09:59  profilanswer
 

fighting_falcon a écrit :

Citation :

<VirtualHost 127.0.1.1>


 
c'est <VirtualHost 127.0.0.1> non ??
 

Citation :

<Directory //home/xglurb/Developpement/blog>


Il y a un / de trop au début ==> /home
 
Il te manque un virtual host pour PhpMyAdmin, ou alors la config du répertoire pour ... style :

Code :
  1. Alias /phpmyadmin /var/www/phpmyadmin/
  2. <Directory /var/www/phpmyadmin>
  3.      Options -All -Multiviews FollowSymLinks
  4.      Order deny,allow
  5.      Allow from all
  6. </Directory>



 
J'ai corrigé... le truc bizarre, c'est que j'ai certains reprtoires accessibles a l'adresse 127.0.1.1, et d'autres en 127.0.0.1 :  
127.0.0.1 (j'ai un lien vers phpwebgallery-1.7.0, ce qui explique qu'il en voit deux

Code :
  1. [ ] phpinfo.php 24-Jun-2007 20:41   18
  2. [DIR] phpwebgallery-1.7.0/ 29-Mar-2007 15:04  -
  3. [DIR] phpwebgallery/ 29-Mar-2007 15:04  -
  4. [DIR] wordpress/ 19-Nov-2006 02:56  -


 
et 127.0.1.1 :

Code :
  1. [DIR] apache2-default/ 20-Nov-2004 15:16   -
  2. [DIR] blog_lk/ 14-Jul-2007 11:22  -
  3. [ ] phpinfo.php 24-Jun-2007 20:18  21
  4. [DIR] phpmyadmin/ 24-Mar-2007 19:47  -


 
Les deux on le phpinfo qui fonctionne. C'est comme si j'avais deux serveurs apache !!!
 
De plus, sur 127.0.0.1, j'ai pas phpmyadmin, sur 127.0.1.1 j'ai phpmyadmin, mais toujours pareil : inaccessible... comment faire ?
 
le message d'erreur obtenu lors du restart :corrigé, mais toujours pas de phpmyadmin


Message édité par guepe le 30-07-2007 à 17:17:19

---------------
Un blog qu'il est bien
n°939201
guepe
J'ai du noir sur la truffe ?
Posté le 31-07-2007 à 20:43:56  profilanswer
 

ptit up  [:gounok]


---------------
Un blog qu'il est bien
n°939268
fighting_f​alcon
Posté le 01-08-2007 à 07:58:24  profilanswer
 

je ne comprends plus rien à ta config ... c'est quoi ces 127.0.1.1 ???

n°939451
guepe
J'ai du noir sur la truffe ?
Posté le 01-08-2007 à 15:43:08  profilanswer
 

fighting_falcon a écrit :

je ne comprends plus rien à ta config ... c'est quoi ces 127.0.1.1 ???


Ben.. je ne sais pas DU TOUT d'ou ca sort !
Comment savoir si plusieurs serveurs tournent ? J'ai fait un rgrep 127.0.1.1 * sur le repertoire /etc/apache2 pour voir, ca n'apparait nulle part.
Mes deux serveurs tournent, et en plus ils ne voient pas la meme chose (mais j'ai l'impression que c'est le 127.0.0.1 qui est le meilleur). Par contre phpmyadmon n'est visible que sur 127.0.1.1 (mais non fonctionnel)... Mais qu'est-ce que c'est que ce bins ???  :cry:


---------------
Un blog qu'il est bien
n°939531
fighting_f​alcon
Posté le 01-08-2007 à 18:37:11  profilanswer
 

netstat -a -p -t tcp [-n]

n°940091
guepe
J'ai du noir sur la truffe ?
Posté le 03-08-2007 à 01:54:09  profilanswer
 

fighting_falcon a écrit :

netstat -a -p -t tcp [-n]


Code :
  1. netstat -a -p -t tcp [-n]
  2. Connexions Internet actives (serveurs et établies)
  3. Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat       PID/Program name 
  4. tcp        0      0 localhost:2208          *:*                     LISTEN     4852/hpiod         
  5. tcp        0      0 *:nfs                   *:*                     LISTEN     -                 
  6. tcp        0      0 *:56262                 *:*                     LISTEN     -                 
  7. tcp        0      0 localhost:mysql         *:*                     LISTEN     15272/mysqld       
  8. tcp        0      0 *:netbios-ssn           *:*                     LISTEN     5166/smbd         
  9. tcp        0      0 *:35020                 *:*                     LISTEN     5209/rpc.statd     
  10. tcp        0      0 *:sunrpc                *:*                     LISTEN     3928/portmap       
  11. tcp        0      0 *:www                   *:*                     LISTEN     5351/apache2       
  12. tcp        0      0 localhost:ipp           *:*                     LISTEN     7643/cupsd         
  13. tcp        0      0 *:633                   *:*                     LISTEN     5122/rpc.mountd   
  14. tcp        0      0 *:microsoft-ds          *:*                     LISTEN     5166/smbd         
  15. tcp        0      0 localhost:2207          *:*                     LISTEN     4855/python       
  16. tcp        0      0 xglurb.local:34943      logv3.xiti.com:www      TIME_WAIT  -                 
  17. tcp        0      0 xglurb.local:34948      logv3.xiti.com:www      TIME_WAIT  -                 
  18. tcp        0      0 xglurb.local:34946      logv3.xiti.com:www      TIME_WAIT  -                 
  19. tcp        0      0 xglurb.local:34955      logv3.xiti.com:www      TIME_WAIT  -                 
  20. tcp        0      0 xglurb.local:49757      forum-hardwarefr.bs:www TIME_WAIT  -                 
  21. tcp        0      0 xglurb.local:49759      forum-hardwarefr.bs:www TIME_WAIT  -                 
  22. tcp        0      0 xglurb.local:49744      forum-hardwarefr.bs:www TIME_WAIT  -                 
  23. tcp        0      0 xglurb.local:49746      forum-hardwarefr.bs:www TIME_WAIT  -                 
  24. tcp        0      0 xglurb.local:35794      ro-in-f104.google.c:www ESTABLISHED15603/firefox-bin


 
Sympa cette commande... des choses interessantes? Apparemment j'ai bien qu'un seul apache...


---------------
Un blog qu'il est bien
n°940194
fighting_f​alcon
Posté le 03-08-2007 à 14:19:17  profilanswer
 

le [-n] ça voulait dire que soit tu rajoutes l'option -n (auquel cas tu n'aurais pas *:www mais *:80), soit tu ne la mets pas du tout ;)
 
sinon oui effectivement, un seul apache :

Citation :

tcp        0      0 *:www                   *:*                     LISTEN     5351/apache2


 
fait voir un ifconfig -a stp

n°940817
guepe
J'ai du noir sur la truffe ?
Posté le 06-08-2007 à 16:45:03  profilanswer
 

fighting_falcon a écrit :

le [-n] ça voulait dire que soit tu rajoutes l'option -n (auquel cas tu n'aurais pas *:www mais *:80), soit tu ne la mets pas du tout ;)
 
sinon oui effectivement, un seul apache :

Citation :

tcp        0      0 *:www                   *:*                     LISTEN     5351/apache2


 
fait voir un ifconfig -a stp


Ouf, pas le net du week end !
 

Code :
  1. ifconfig -a
  2. eth0      Lien encap:Ethernet  HWaddr 00:11:25:84:68:CB 
  3.           inet adr:132.208.135.9  Bcast:132.208.135.255  Masque:255.255.255.0
  4.           adr inet6: fe80::211:25ff:fe84:68cb/64 Scope:Lien
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.           Packets reçus:16711 erreurs:0 :0 overruns:0 frame:0
  7.           TX packets:9335 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 lg file transmission:100
  9.           Octets reçus:18532968 (17.6 MiB) Octets transmis:938078 (916.0 KiB)
  10.           Adresse de base:0x8000 Mémoire:c0220000-c0240000
  11. eth1      Lien encap:Ethernet  HWaddr 00:0C:F1:4B:96:47 
  12.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  13.           Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
  14.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  15.           collisions:0 lg file transmission:1000
  16.           Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)
  17.           Interruption:11 Adresse de base:0x4000 Mémoire:c0210000-c0210fff
  18. eth1:avah Lien encap:Ethernet  HWaddr 00:0C:F1:4B:96:47 
  19.           inet adr:169.254.6.139  Bcast:169.254.255.255  Masque:255.255.0.0
  20.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  21.           Interruption:11 Adresse de base:0x4000 Mémoire:c0210000-c0210fff
  22. irda0     Lien encap:IrLAP  HWaddr 00:00:00:00 
  23.           NOARP  MTU:2048  Metric:1
  24.           Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
  25.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  26.           collisions:0 lg file transmission:8
  27.           Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)
  28. lo        Lien encap:Boucle locale 
  29.           inet adr:127.0.0.1  Masque:255.0.0.0
  30.           adr inet6: ::1/128 Scope:Hôte
  31.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  32.           Packets reçus:500 erreurs:0 :0 overruns:0 frame:0
  33.           TX packets:500 errors:0 dropped:0 overruns:0 carrier:0
  34.           collisions:0 lg file transmission:0
  35.           Octets reçus:50924 (49.7 KiB) Octets transmis:50924 (49.7 KiB)


---------------
Un blog qu'il est bien
n°940934
fighting_f​alcon
Posté le 07-08-2007 à 09:36:43  profilanswer
 

lance la commande (en tant que root) :
grep -R 127.0.1.1 /etc/apache2
 
elle va te sortir (outre certainement des erreurs de fichiers non existants, pb de liens vers les modules) la liste des fichiers qui contiennent la chaine 127.0.1.1
Corrige ces fichiers et redémarrage ton apache

n°941097
guepe
J'ai du noir sur la truffe ?
Posté le 07-08-2007 à 15:16:21  profilanswer
 

fighting_falcon a écrit :

lance la commande (en tant que root) :
grep -R 127.0.1.1 /etc/apache2
 
elle va te sortir (outre certainement des erreurs de fichiers non existants, pb de liens vers les modules) la liste des fichiers qui contiennent la chaine 127.0.1.1
Corrige ces fichiers et redémarrage ton apache


Je l'ai deja fait (et je viens de le refaire)... aucun resultat, nada, meme en root. Il n'y a pas aucune string 127.0.1.1 !!
 
Est-il possible de tout desinstaller puis tout reinstaller ? Si je le fait, comment faire (ordre?)


---------------
Un blog qu'il est bien
n°941310
fighting_f​alcon
Posté le 08-08-2007 à 11:18:13  profilanswer
 

dpkg -l|grep apache -> te donnera tous les paquets d'apache
dpkg -l|grep php -> te donnera tous les paquets php
apt-get remove --purge <liste des paquets>
 
supprime tout ce qui peut rester (/etc/apache /etc/php /var/www ...)
 
puis
apt-cache search apache2 -> te donnera tous les paquets apache2 dispos
apt-cache search php5 -> idem pour php5
apt-get install <liste de paquets>

n°945462
guepe
J'ai du noir sur la truffe ?
Posté le 21-08-2007 à 15:18:57  profilanswer
 

Punaise !! En reinstallant tout, j'ai eu l'erreur Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
 
Et en trouvant ca http://wiki.apache.org/httpd/Could [...] ServerName et le paragraphe en bas en italiques j'ai decouvert la ligne traitresse !!!
 
Dans /etc/hosts j'ai une ligne 127.0.1.1 xglurb
 
Arghhhh le con !!!  
 
C'est réparé !!


---------------
Un blog qu'il est bien
n°945466
guepe
J'ai du noir sur la truffe ?
Posté le 21-08-2007 à 15:39:21  profilanswer
 

Bon j'ai chanté trop vite !  
 
J'ai reinstallé apache2 et php5, mais l'ouverture de localhost me donne : Forbidden
 
You don't have permission to access / on this server.
 
Ca doit pas etre grand chose j'imagine ? Un probleme de droits de l'utilisateur apache ou qq chose du genre ? Flute j'y connais rien !
 
Un peu d'aide siouplé ? :whistle:


---------------
Un blog qu'il est bien
n°945636
fighting_f​alcon
Posté le 22-08-2007 à 08:35:59  profilanswer
 

si tu as tout réinstaller, par défaut tu as un /etc/apache2/sites-enabled/000-default qui est un lien vers /etc/apache2/sites-available/default
 
regarde dans ce fichier (sites-available/default) la directive DocumentRoot, tu auras ainsi le dossier dans lequel apache va chercher ses pages par défaut. Ce dossier doit être accessible depuis / par l'utilisateur www-data et doit appartenir à www-data:www-data
 
Regarde également dans ce fichier de conf que les droits sont correct au niveau apache pour ce dossier ( <Location ...> Allow all </Location> )

n°945762
Hrolf
Posté le 22-08-2007 à 13:59:44  profilanswer
 

J'ai eu ça y'a pas longtemps et manifestement la version de phpMyAdmin que j'ai sous debian stable n'est compatible qu'avec php4 et pas avec php5 ...
 
Test déjà ça ... Sinon bon courage :D


---------------
Il y a trois sortes de mensonges : les mensonges, les gros mensonges et les statistiques !
n°945767
M300A
Sehr hopfen, vielen IBU, wow!
Posté le 22-08-2007 à 14:32:28  profilanswer
 

fighting_falcon a écrit :

je ne comprends plus rien à ta config ... c'est quoi ces 127.0.1.1 ???


 
C'est une ip dans la classe local.
 
Sur debian on utilise 127.0.0.1 qui pointe sur localhost et 127.0.1.1 qui pointe sur ton hostname.
En gros ça change rien sauf il a définit des vhosts sur une ou l'autre IP.

n°945768
fighting_f​alcon
Posté le 22-08-2007 à 14:34:09  profilanswer
 

M300A a écrit :


C'est une ip dans la classe local.
Sur debian on utilise 127.0.0.1 qui pointe sur localhost et 127.0.1.1 qui pointe sur ton hostname.
En gros ça change rien sauf il a définit des vhosts sur une ou l'autre IP.


 
Bon à savoir !!! merci de l'info

n°945955
guepe
J'ai du noir sur la truffe ?
Posté le 22-08-2007 à 22:15:27  profilanswer
 

fighting_falcon a écrit :

si tu as tout réinstaller, par défaut tu as un /etc/apache2/sites-enabled/000-default qui est un lien vers /etc/apache2/sites-available/default
 
regarde dans ce fichier (sites-available/default) la directive DocumentRoot, tu auras ainsi le dossier dans lequel apache va chercher ses pages par défaut. Ce dossier doit être accessible depuis / par l'utilisateur www-data et doit appartenir à www-data:www-data
 
Regarde également dans ce fichier de conf que les droits sont correct au niveau apache pour ce dossier ( <Location ...> Allow all </Location> )


J'ai tout reinstalle (enfin apache et php pour le moment) MAIS j'ai qd meme configure mon virtualhost. Donc il essai d'ouvrir mon site.
J'ai decouvert que je ne peut pas browser le repertoire racine du site, par contre si j'ouvre un fichier dessus (mettons php_info.php) ca marche.
Donc c'est pas si pire. Mais par ou je peut trouver ce qu'il se passe ? Je n'ai pas trouve les parametres de l'utilisateur apache (enfin je crois bien qu'il y a un utilisateur apache).
 
Merci


---------------
Un blog qu'il est bien
n°946005
Hrolf
Posté le 23-08-2007 à 07:37:30  profilanswer
 

T'as tenté comme je te l'ai dit de downgradé ta version de php pour php4 plutôt que php5 ??


---------------
Il y a trois sortes de mensonges : les mensonges, les gros mensonges et les statistiques !
n°946009
fighting_f​alcon
Posté le 23-08-2007 à 08:33:13  profilanswer
 

Citation :

J'ai decouvert que je ne peut pas browser le repertoire racine du site, par contre si j'ouvre un fichier dessus (mettons php_info.php) ca marche


 
tu n'as pas l'option indexes ou alors tu n'as pas spécifié le DirectoryIndex :

Code :
  1. <Directory /var/www>
  2.     Options Indexes ...
  3.     ...
  4. </Directory>


ou

Code :
  1. <VirtualHost ...>
  2.    ...
  3.    DirectoryIndex index.php
  4. </VirtualHost>

n°946226
guepe
J'ai du noir sur la truffe ?
Posté le 23-08-2007 à 15:27:23  profilanswer
 

fighting_falcon a écrit :

Citation :

J'ai decouvert que je ne peut pas browser le repertoire racine du site, par contre si j'ouvre un fichier dessus (mettons php_info.php) ca marche


 
tu n'as pas l'option indexes ou alors tu n'as pas spécifié le DirectoryIndex :

Code :
  1. <Directory /var/www>
  2.     Options Indexes ...
  3.     ...
  4. </Directory>


ou

Code :
  1. <VirtualHost ...>
  2.    ...
  3.    DirectoryIndex index.php
  4. </VirtualHost>



 

Code :
  1. <VirtualHost 127.0.0.1:80>
  2.         ServerName xglurb
  3.         ServerAdmin admin@xglurb
  4.         DocumentRoot /home/xglurb/Developpement/blog
  5.         <Directory /home/xglurb/Developpement/blog>
  6.                 Options -All -Multiviews FollowSymLinks
  7.                 Order deny,allow
  8.                 Allow from all
  9.         </Directory>
  10.         DirectoryIndex index.php
  11. </VirtualHost>


 
Sinon pour php5, lors de ma premiere install ca fonctionnait : juste l'histoire du 127.0.1.1 sur /etc/hosts qui m'a planté... sinon tout fonctionnait.
Non je dois avoir un pb avec la reinstallation, un truc mal reconfiguré surement... grrrrrrr


---------------
Un blog qu'il est bien
n°946262
fighting_f​alcon
Posté le 23-08-2007 à 16:16:42  profilanswer
 

et les droits "physiques" sur ton fichier index.php ?
 
 
edit : des infos dans les logs d'apache ?

Message cité 1 fois
Message édité par fighting_falcon le 23-08-2007 à 16:17:05
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2
Page Précédente

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [apache] Phpmyadmin ne fonctionne plus

 

Sujets relatifs
tomacat + apache "classique"apache -> apache2
Serveur Apache et Proxy sur le même port 80[Résolu] Mot de passe MySQL et PHPmyadmin
Problème avec Apache 2, DirectoryIndex et accessibilité des pages[NUX]Apache, Ldap, Sasl, Ssl : HOW TO ???
Debian -probleme d'install ApacheHebergement de plusieur site sur un apache sous linux
[Webmin] le faire cohabiter avec apache sur meme port ?Apache 2 !
Plus de sujets relatifs à : [apache] Phpmyadmin ne fonctionne plus


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR