PHP是一种开源的通用计算机脚本语言,尤其适用于网络开发并可嵌入HTML中使用。PHP的语法借鉴吸收C语言、Java和Perl等流行计算机语言的特点,易于一般程序员学习。
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module /usr/libexec/apache2/libphp.so <FilesMatch \\.php$> SetHandler application/x-httpd-php </FilesMatch>
You might want 'index.php' to be present in DirectoryIndex:
DirectoryIndex index.php index.html
Config files are under /etc/php/8.1