Wednesday, April 13, 2016

MYSQL and PHP Configuration

MYSQL Configuration

1. yum install mysql-server -y

2. service mysld start

3. chkconfig mysqld on

4. mysqladmin -u root password 'redhat'

5. mysql -u root -p

Enter Password: redhat

mysql>

PHP Configuration

1. yum install php php-mysql

2. cd /var/www/html

3. vi phpinfo.php
<?PHP
phpinfo();
?>

4. service httpd restart

5. Check the file in browser
http://192.168.0.150/phpinfo.php

No comments: