It is a very basic need for our server, if we want to run PHP based application. To install PHP on our CentOS server, open terminal and type this command
sudo yum install php php-mysql
You will be asked for confirmation, please type Y for “Yes”. Then PHP will be installed.
Restart the apache
sudo service httpd restart
To check php version we can use this command
php -i
or we can create php info file. Check it out this article Check PHP version on CentOS with php info file.
That’s all. Thank you. Have nice day ^_^




Tinggalkan komentar