1.16.2013

Instalação do Apache2 com suporte para PHP e MySQL no CentOS 6.3

Instalar o MySQL

[root@centos01 ~]#yum install mysql-server -y

Garantir que o MySQL arranca com o sistema

[root@centos01 ~]#chkconfig --levels 235 mysqld on

Iniciar o MySQL

[root@centos01 ~]#/etc/init.d/mysqld start

Configuraração básica do MySQL. Definição da password de root de acesso à base de dados

[root@centos01 ~]#mysql_secure_installation

Instalar o Apache2

[root@centos01 ~]# yum install httpd -y

Garantir que o MySQL arranca com o sistema

[root@centos01 ~]# chkconfig --levels 235 httpd on

Iniciar o Apache 2

[root@centos01 ~]# /etc/init.d/httpd start

Instalar o PHP como módulo ( Reeiniciar o Apache)

[root@centos01 ~]#yum install php

[root@centos01 ~]# /etc/init.d/httpd restart