Sunday, 19 April 2015

How to easy install PHP on CentOS 7

How to easy install PHP on CentOS 7


Normally, to install PHP on CentOS 7 is very easy. Let's move.

1. Login to root.
2. Mount your DVD Master of CentOS 7
3. type this command on the terminal yum install php php-mysql php-gd php-pear -y
4. After installation finished, type this command again systemctl restart httpd.service
5. Create info.php on /var/www/html/
      
Vim /var/www/html/testphp.php
      <?php
       Phpinfo();
     ?>
6. and then save.

For testing this php is active or not, you can run from pc client that connected with this server CentOS 7.

AHS

No comments:

Post a Comment