-->

Aller au contenu | Aller au menu | Aller à la recherche

lundi, juin 23 2008

CentOS: Installer Lighttpd et Php

lighttpd.gif Pour installer Lighttpd et PHP, sur une CentOS, rien de très compliqué:

On lance en root:
yum install lighttpd lighttpd-fastcgi php

Puis on édites le fichier /etc/lighttpd/lighttpd.conf
On décommente la ligne contenant mod_fastcgi
Puis on s'assure que le code suivant est bien décommenté:

fastcgi.server = ( ".php" =>

   ( "localhost" =>
       (
           "socket" => "/var/run/lighttpd/php-fastcgi.socket",
           "bin-path" => "/usr/bin/php-cgi"
       )
   )

)

On continue en créant l'emplacement du socket:
mkdir /var/run/lighttpd
touch /var/run/lighttpd/php-fastcgi.socket
chown -R lighttpd:lighttpd /var/run/lighttpd/

Et on termine en éditant "/etc/php.ini" et en ajoutant:
cgi.fix_pathinfo = 1

Billet original sur LefebvrePe.com ツ Pierre-Emmanuel Lefebvre

lundi, mai 12 2008

CentOS: Installer & configurer NTP pour synchroniser l'heure système

Procédure:

Commençons par l'installer:

[root@localhost ~]# yum install ntp

Puis on active le service (pour qu'il se lance à chaque démarrage):

[root@localhost ~]# chkconfig ntp on

On lance manuellement une mise à jour de l'heure:

[root@localhost ~]# ntpdate fr.pool.ntp.org

Et finalement, on lance le daemon, pour qu'il s'exécute en continu

[root@localhost ~]# service ntp start

Billet original sur LefebvrePe.com ツ Pierre-Emmanuel Lefebvre

CentOS: Installer & configurer NTP pour synchroniser l'heure système

Procédure: Commençons par l'installer: [root@localhost ~]# yum install ntp Puis on active le service (pour qu'il se lance à chaque démarrage): [root@localhost ~]# chkconfig ntp on On lance manuellement une mise à jour de l'heure: [root@localhost ~]# ntpdate fr.pool.ntp.org Et finalement, on lance le daemon, pour qu'il s'exécute en continu... Lire

Billet original sur LefebvrePe.com ツ Pierre-Emmanuel Lefebvre