1. Install php
yum install "*php*" -y
2. Edit the httpd.conf configuration file
Find LoadModule foo_module modules / mod_foo.so add below
LoadModule php5_module modules/libphp5.so
Find AddType
Add to
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Restart Service
3. Locate the httpd.conf configuration file
Add to
index.php
Restart Service
4. Access test
Add content to create a index.php file
<?php
phpinfo();
?>
Direct access to the domain name, you can see php normal configuration information