Probleme serveur apache php

Fermé
nathanus Messages postés 94 Date d'inscription mercredi 26 mars 2008 Statut Membre Dernière intervention 23 avril 2010 - 15 oct. 2008 à 09:27
nathanus Messages postés 94 Date d'inscription mercredi 26 mars 2008 Statut Membre Dernière intervention 23 avril 2010 - 15 oct. 2008 à 14:43
Bonjour,
j'ai opensuse et j'ai installé apache 2 et php5 mais voila apache ne décripte que le html et non le php qui m'interesse.Pourtant j'ai installé le module php de apache mais il ne veut toujours pas décripter le php .
Il me dit qu'il ne trouve aucun fichier ,message qui n'apparait quand il y a un fichier html!!!
merci de m aider!!!

3 réponses

dindoun Messages postés 1028 Date d'inscription mercredi 23 janvier 2008 Statut Membre Dernière intervention 17 février 2017 135
15 oct. 2008 à 11:05
sudo apt-get install php5 apache2 apache2-mpm-prefork libapache2-mod-php5 php5-mysql php5-gd php5-cli mysql-server mysql-client mysql-common libmysqlclient15off libapache2-mod-auth-mysql php5-cgi php5-cli &&  
sudo chmod a+w /var/www/ && cd /etc/php5/apache2/
sudo chmod 777 php.ini && cat php.ini|sed "s/max_execution_time = \([0-9]*\) /max_execution_time = 3000 /" |sed "s/max_input_time = \([0-9]*\) /max_input_time = 6000 /" > php.ini && sudo chmod 644 php.ini && sudo /etc/init.d/apache2 restart && sudo apt-get install phpmyadmin
1
je comprends pas grand chose a ton histoire notament sa "Il me dit qu'il ne trouve aucun fichier ,message qui n'apparait quand il y a un fichier html!!!"

je vais reprendre du debut,
quand tu vas sur l'adresse 127.0.0.1, qu'est ce qui s'affiche ?

ensuite creer un fichier index.php dans www avec phpinfo dedans.
quand tu vas sur l'adresse 127.0.0.1\index.php, qu'est ce qui s'affiche ?
0
nathanus Messages postés 94 Date d'inscription mercredi 26 mars 2008 Statut Membre Dernière intervention 23 avril 2010 2
15 oct. 2008 à 14:43
C'est bon cela marche c'estparce que j'ai oublié de mettre le module php d apache parce que je suis passé par la console
-1