apache2无法解析php如何解决
导读:本文共734.5字符,通常情况下阅读需要2分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: apache2无法解析php的解决办法:1、通过“sudo apt-get install libapache2-mod-php7.4”安装lib文件;2、修改配置文件,在“set handler”里面的“require all denied”改为“... ...
音频解说
目录
(为您整理了一些要点),点击可以直达。
apache2无法解析php的解决办法:1、通过“sudo apt-get install libapache2-mod-php7.4”安装lib文件;2、修改配置文件,在“set handler”里面的“require all denied”改为“granted”;3、重启apche2即可。
linux下apache2不解析php
之前在kali或者ubuntu里安装web环境
apache2可以正常运行,但就是无法解析php
以下为解决思路
1.安装lib文件
sudo apt-get install libapache2-mod-php7.4
大版本保持一致就好
2.修改配置文件
cd /etc/apache2/mods-enabled
sudo vim php7.4.conf 这个地方改成你对应的版本
在set handler 里面的require all denied改为granted
以及下面的 php|ar一串正则也改为granted
然后重启apche2,就好了。
</div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:
apache2无法解析php如何解决的详细内容,希望对您有所帮助,信息来源于网络。