Pages : 1
#1 Le 18/07/2008, à 14:11
- pcsystemd
[RESOLU] Apache2 et Php5
Bonjour,
voila j'ai reinstallé apache2, Php5, Postgresql et Phppgadmin mais j'ai un souci car lorsque je souhaite accéder a Phppgadmin j'ai cette fenêtre qui s'ouvre
J'ai crée un fichier phpinfo.php mais pareil. Apparement apache2 n'interprete pas les fichiers PHP
pourtant j'ai bien intallé php5 et libapache2-mod-php5. Par contre je ne sais pas comment activer le module php pour apache2 car quand je fait
a2enmod php5
ERROR: Module php5 does not exist!
Il y a surement une configuration a faire mais malgre tous les tutos que j'ai lu cela ne fonctionne pas.
Ce serait chouette si vous aviez une idée pour m'aider car le deviens fou depuis hier matin que j'y suis.
Merci beaucoup
Dernière modification par pcsystemd (Le 21/07/2008, à 08:14)
Hors ligne
#2 Le 18/07/2008, à 14:23
- wblitz
Re : [RESOLU] Apache2 et Php5
tu peux poster la sortie de ceci :
ls -lA /etc/apache2/mods-{available,enabled}
"Un optimiste, c'est un homme qui plante deux glands et qui s'achète un hamac" - Jean de Lattre de Tassigny
Pensez à mettre [RÉSOLU] dans le sujet de vos posts une fois qu'ils le sont...
quelques docs
Hors ligne
#3 Le 18/07/2008, à 15:32
- pcsystemd
Re : [RESOLU] Apache2 et Php5
Merci. voila le resultat. une précision tout de même car depuis mon post du début j'ai réussis a q'apache m'affiche les pages PHP mais j'ai toujours le problème avec Phppgadmin (voir image dans mon premier post).
ls -lA /etc/apache2/mods-{available,enabled}
/etc/apache2/mods-available:
total 360
-rw-r--r-- 1 root root 332 jui 7 21:24 actions.conf
-rw-r--r-- 1 root root 66 jui 7 21:24 actions.load
-rw-r--r-- 1 root root 815 jui 7 21:24 alias.conf
-rw-r--r-- 1 root root 62 jui 7 21:24 alias.load
-rw-r--r-- 1 root root 60 jui 7 21:24 asis.load
-rw-r--r-- 1 root root 72 jui 7 21:24 auth_basic.load
-rw-r--r-- 1 root root 74 jui 7 21:24 auth_digest.load
-rw-r--r-- 1 root root 74 jui 7 21:24 authn_alias.load
-rw-r--r-- 1 root root 72 jui 7 21:24 authn_anon.load
-rw-r--r-- 1 root root 85 jui 7 21:24 authn_dbd.load
-rw-r--r-- 1 root root 70 jui 7 21:24 authn_dbm.load
-rw-r--r-- 1 root root 78 jui 7 21:24 authn_default.load
-rw-r--r-- 1 root root 72 jui 7 21:24 authn_file.load
-rw-r--r-- 1 root root 90 jui 7 21:24 authnz_ldap.load
-rw-r--r-- 1 root root 70 jui 7 21:24 authz_dbm.load
-rw-r--r-- 1 root root 78 jui 7 21:24 authz_default.load
-rw-r--r-- 1 root root 82 jui 7 21:24 authz_groupfile.load
-rw-r--r-- 1 root root 72 jui 7 21:24 authz_host.load
-rw-r--r-- 1 root root 74 jui 7 21:24 authz_owner.load
-rw-r--r-- 1 root root 72 jui 7 21:24 authz_user.load
-rw-r--r-- 1 root root 3265 jui 7 21:24 autoindex.conf
-rw-r--r-- 1 root root 70 jui 7 21:24 autoindex.load
-rw-r--r-- 1 root root 62 jui 7 21:24 cache.load
-rw-r--r-- 1 root root 70 jui 7 21:24 cern_meta.load
-rw-r--r-- 1 root root 68 jui 7 21:24 cgid.conf
-rw-r--r-- 1 root root 60 jui 7 21:24 cgid.load
-rw-r--r-- 1 root root 58 jui 7 21:24 cgi.load
-rw-r--r-- 1 root root 76 jui 7 21:24 charset_lite.load
-rw-r--r-- 1 root root 36 jui 7 21:24 dav_fs.conf
-rw-r--r-- 1 root root 79 jui 7 21:24 dav_fs.load
-rw-r--r-- 1 root root 58 jui 7 21:24 dav.load
-rw-r--r-- 1 root root 68 jui 7 21:24 dav_lock.load
-rw-r--r-- 1 root root 58 jui 7 21:24 dbd.load
-rw-r--r-- 1 root root 107 jui 7 21:24 deflate.conf
-rw-r--r-- 1 root root 66 jui 7 21:24 deflate.load
-rw-r--r-- 1 root root 122 jui 7 21:24 dir.conf
-rw-r--r-- 1 root root 58 jui 7 21:24 dir.load
-rw-r--r-- 1 root root 604 jui 7 21:24 disk_cache.conf
-rw-r--r-- 1 root root 89 jui 7 21:24 disk_cache.load
-rw-r--r-- 1 root root 64 jui 7 21:24 dump_io.load
-rw-r--r-- 1 root root 58 jui 7 21:24 env.load
-rw-r--r-- 1 root root 66 jui 7 21:24 expires.load
-rw-r--r-- 1 root root 72 jui 7 21:24 ext_filter.load
-rw-r--r-- 1 root root 89 jui 7 21:24 file_cache.load
-rw-r--r-- 1 root root 64 jui 7 21:24 filter.load
-rw-r--r-- 1 root root 66 jui 7 21:24 headers.load
-rw-r--r-- 1 root root 62 jui 7 21:24 ident.load
-rw-r--r-- 1 root root 68 jui 7 21:24 imagemap.load
-rw-r--r-- 1 root root 66 jui 7 21:24 include.load
-rw-r--r-- 1 root root 420 jui 7 21:24 info.conf
-rw-r--r-- 1 root root 60 jui 7 21:24 info.load
-rw-r--r-- 1 root root 60 jui 7 21:24 ldap.load
-rw-r--r-- 1 root root 76 jui 7 21:24 log_forensic.load
-rw-r--r-- 1 root root 185 jui 7 21:24 mem_cache.conf
-rw-r--r-- 1 root root 87 jui 7 21:24 mem_cache.load
-rw-r--r-- 1 root root 6298 jui 7 21:24 mime.conf
-rw-r--r-- 1 root root 60 jui 7 21:24 mime.load
-rw-r--r-- 1 root root 89 jui 7 21:24 mime_magic.conf
-rw-r--r-- 1 root root 72 jui 7 21:24 mime_magic.load
-rw-r--r-- 1 root root 666 jui 7 21:24 negotiation.conf
-rw-r--r-- 1 root root 74 jui 7 21:24 negotiation.load
-rw-r--r-- 1 root root 133 jui 18 15:09 php5.conf
-rw-r--r-- 1 root root 107 jui 3 09:57 php5filter.conf
-rw-r--r-- 1 root root 65 jui 3 09:57 php5filter.load
-rw-r--r-- 1 root root 59 jui 18 15:08 php5.load
-rw-r--r-- 1 root root 87 jui 7 21:24 proxy_ajp.load
-rw-r--r-- 1 root root 97 jui 7 21:24 proxy_balancer.load
-rw-r--r-- 1 root root 589 jui 7 21:24 proxy.conf
-rw-r--r-- 1 root root 95 jui 7 21:24 proxy_connect.load
-rw-r--r-- 1 root root 87 jui 7 21:24 proxy_ftp.load
-rw-r--r-- 1 root root 89 jui 7 21:24 proxy_http.load
-rw-r--r-- 1 root root 62 jui 7 21:24 proxy.load
-rw-r--r-- 1 root root 64 avr 14 02:38 python.load
-rw-r--r-- 1 root root 66 jui 7 21:24 rewrite.load
-rw-r--r-- 1 root root 1122 jui 7 21:24 setenvif.conf
-rw-r--r-- 1 root root 68 jui 7 21:24 setenvif.load
-rw-r--r-- 1 root root 66 jui 7 21:24 speling.load
-rw-r--r-- 1 root root 2412 jui 7 21:24 ssl.conf
-rw-r--r-- 1 root root 58 jui 7 21:24 ssl.load
-rw-r--r-- 1 root root 398 jui 7 21:24 status.conf
-rw-r--r-- 1 root root 64 jui 7 21:24 status.load
-rw-r--r-- 1 root root 72 jui 7 21:24 substitute.load
-rw-r--r-- 1 root root 64 jui 7 21:24 suexec.load
-rw-r--r-- 1 root root 70 jui 7 21:24 unique_id.load
-rw-r--r-- 1 root root 588 jui 18 13:53 userdir.conf
-rw-r--r-- 1 root root 66 jui 7 21:24 userdir.load
-rw-r--r-- 1 root root 70 jui 7 21:24 usertrack.load
-rw-r--r-- 1 root root 66 jui 7 21:24 version.load
-rw-r--r-- 1 root root 74 jui 7 21:24 vhost_alias.load
/etc/apache2/mods-enabled:
total 0
lrwxrwxrwx 1 root root 28 jui 18 13:51 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 jui 18 13:51 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 jui 18 13:51 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 jui 18 13:51 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 jui 18 13:51 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 jui 18 13:51 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 jui 18 13:51 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 jui 18 13:51 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 jui 18 13:51 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 jui 18 13:51 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 26 jui 18 13:51 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 30 jui 18 13:51 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 jui 18 13:51 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 jui 18 13:51 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 jui 18 13:51 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 jui 18 13:51 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 27 jui 18 13:51 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 jui 18 13:51 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 jui 18 13:51 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 jui 18 13:51 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 jui 18 15:10 php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 jui 18 15:10 php5.load -> ../mods-available/php5.load
lrwxrwxrwx 1 root root 31 jui 18 13:51 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 jui 18 13:51 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 jui 18 13:51 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 jui 18 13:51 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 30 jui 18 13:58 userdir.conf -> ../mods-available/userdir.conf
lrwxrwxrwx 1 root root 30 jui 18 13:58 userdir.load -> ../mods-available/userdir.load
Hors ligne
#4 Le 19/07/2008, à 09:54
- wblitz
Re : [RESOLU] Apache2 et Php5
tu peux poster la sortie de ceci :
grep -ri "x-httpd-php" /etc/apache2/
"Un optimiste, c'est un homme qui plante deux glands et qui s'achète un hamac" - Jean de Lattre de Tassigny
Pensez à mettre [RÉSOLU] dans le sujet de vos posts une fois qu'ils le sont...
quelques docs
Hors ligne
#5 Le 21/07/2008, à 08:13
- pcsystemd
Re : [RESOLU] Apache2 et Php5
Voila c'est résolu j'ai ajouté la ligne suivante dans mon fichier apache2.conf et vider mon cache :
AddType application/x-httpd-php .php .phtml
Merci
Hors ligne
Pages : 1