Install php5 and Mysql on Centos

Discussion in 'Site & Server Administration' started by ASTRAPI, Dec 2, 2009.

  1. #1
    Hello

    How can i install php5 and Mysql on Centos.

    Thank you
     
    ASTRAPI, Dec 2, 2009 IP
  2. mainstreamnet

    mainstreamnet Guest

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yum install php –enablerepo=centosplus

    or

    yum update php –enablerepo=centosplus

    yum install mysql-server
    yum install mysql
    yum install mysql-devel

    Inorder to use with php
    yum install php-mysql

    By default mysql has the no passward. To change the password in command shell write the following commands
    mysql
    mysql> USE mysql;
    mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root';
    mysql> FLUSH PRIVILEGES;
     
    mainstreamnet, Dec 2, 2009 IP
  3. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #3
    olddocks, Dec 3, 2009 IP
  4. alcoholhost

    alcoholhost Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    this link > http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-centos-5.3-lamp
     
    alcoholhost, Dec 9, 2009 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    Do you have any control panel installed or it is a fresh OS installed server. If you are not using any control panel, you can install PHP and MySQL via yum.

    Kailash
     
    kailash, Dec 12, 2009 IP