Note: This step requires installing PHP before adding the configuration file to parse PHP. Modify the Apache configuration file: httpd.conf. By adding the parameter module, let Apache parse the extension .php into PHP. To avoid potential dangers, such as uploading or creating files like exploit.php.jpg and being executed as PHP, we no longer use Apache's AddType directive to set it. <FilesMatch \.php$> SetHandler application/x-httpd-php</FilesMatch>
This is my solution, I don’t know if you can use it, the system is centos7
Note: This step requires installing PHP before adding the configuration file to parse PHP. Modify the Apache configuration file: httpd.conf. By adding the parameter module, let Apache parse the extension .php into PHP. To avoid potential dangers, such as uploading or creating files like exploit.php.jpg and being executed as PHP, we no longer use Apache's AddType directive to set it.
<FilesMatch \.php$> SetHandler application/x-httpd-php</FilesMatch>
This is my solution, I don’t know if you can use it, the system is centos7