Saturday, September 23, 2017

Install Apache, Mysql, PHP in centos

#yum update
Apache
#yum install httpd
#service httpd start
#chkconfig httpd on

check your localhost in browser and local network, if it not showing apache then

#iptables -F

Mysql
# yum install mysql-server
# service mysqld start
# chkconfig mysqld on

# mysqladmin -u root password '*****'

 mysql -u root -p
Enter password:

mysql>

Php

# yum install php php-mysql

# php -v
PHP 5.3.3 (cli) (built: Aug 11 2016 20:33:53)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

now test your php

# vi /var/www/html/phpinfo.php

<?php
phpinfo();
?>   

:wq!

ip/phpinfo.php

here you can see php info.








No comments:

Post a Comment