system-config-firewall m'a permis de débloquer les services web, du coup maintenant ca marche.
Merci beaucoup pour votre aide, je dois dire qu'entre httpd, le firewall et selinux j'étais un peu perdu.
Je rajoute à ce post tout ce que j'ai fait pour installer mon serveur, ça peux toujours servir.
#Rajouter Livna, et mettre à jour son ordinateur:
rpm -ivh
http://rpm.livna.org/livna-release-9.rpm
yum clean all
yum update
#installer les programmes:
yum -y install firefox wget #acceder au site
yum -y install system-config-httpd httpd httpd-tools #Le serveur http
yum -y install httpd httpd-manual mod_ssl #Lamp
yum -y install mysql-server #MySQL
yum -y install phpMyAdmin
yum install php-cli php-common php #PHP
yum -y install php-bcmath php-dba php-dbase php-gd php-imap php-ldap php-mbstring php-mcrypt php-mhash php-mssql php-mysql php-ncurses php-odbc php-pdo php-pgsql php-snmp php-soap php-tidy php-xml php-xmlrpc #Extensions PHP
#Lancer les services:
service httpd start #lancement immédiat
chkconfig httpd on #lancement automatique au prochain demarrage
service mysqld start
chkconfig mysqld on
#débloquer les ports:
echo Rajouter HTTP et HPPD dans les services de confience
system-config-firewall
#Configurer MySQL
echo choix du MOT DE PASSE My SQL! LE MOT DE PASSE EST MOT_DE_PASSE (vous pouvez le changer dans le script)
service mysqld stop # arret MySQL s'il fonctionne
# relancer MySQL sans le controle des permissions
mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid --skip-grant-tables &
echo dans MySQL tapper :
echo UPDATE user SET password=PASSWORD('MOT_DE_PASSE') WHERE user="root";
echo exit
mysql -uroot mysql # se connecter sans
mot de
passe
service mysqld restart
# relance MySQL en mode normal
# connexion avec le nouveau
mot de
passe.
mysql -uroot -psecret mysql
echo Testez la connection
# connexion avec le nouveau
mot de
passe.
mysql -uroot -psecret mysql
echo test de my SQL
mysql --user root --password --execute "select version()"
#Configurer et tester PHP
service httpd restart
php --version #test
echo Test DE PHP : une page devrait afficher la version.
echo <?php phpinfo()\; ?> > /var/www/html/info.php
firefox
http://localhost/info.php &
#Configurer PHP my Admin:
service httpd reload #recharge appache
firefox
http://localhost/phpMyAdmin &
echo 'A CONFIGURER:'
echo ' * Langue : French (fr-utf-8)'
echo ' * Jeu de caractères pour MySQL: UTF-8 Unicode (utf8)'
echo ' * Interclassement pour la connection MySQL: utf8_general_ci'
echo ' * Interclassement pour la base : latin1_german_ci ou latin1_swedish_ci '
#dynDNS : comment faire marcher inadyn pour les gens qui ont une IP Dynamique
echo inscrivez vous sur dyndns.
echo nom d'utilisateur (a changer dans le script 🙂 Robert
echo mot de passe (a changer dans le script 🙂 gloups
echo nom de domaine (a changer dans le script 🙂 Robert.is-a-geek.com
yum -y install inadyn
#inadyn -u Robert -p glups -a Robert.is-a-geek.com
echo #inadyn config > /etc/inadyn.conf
echo -u Robert>> /etc/inadyn.conf
echo -p gloups>> /etc/inadyn.conf
echo -a Robert.is-a-geek.com>> /etc/inadyn.conf
echo --background>> /etc/inadyn.conf
echo --update_period 60000 >> /etc/inadyn.conf
echo --log_file /var/log/inadyn.log >> /etc/inadyn.conf
echo Verifiez la configuration d'inadyn, puis fermez kwrite et appuyez sur entree
kwrite /etc/inadyn.conf #configuration inadyn
read
echo Eviter de lancer inadyn avant network
echo Editer la ligne : chkconfig: - 55 45
echo pour y mettre : chkconfig: - 99 45
echo puis tappez entree
kwrite /etc/rc.d/init.d/inadyn
read
#lancement automatique
/sbin/chkconfig --add inadyn
/sbin/chkconfig inadyn on