当前位置:网站首页>apache不解析PHP文件,直接显示源码
apache不解析PHP文件,直接显示源码
2022-06-29 02:23:00 【hello php】
最主要原因是缺少了一个php扩展:mod_php
yum install mod_php1.找到:
AddType application/x-gzip .gz .tgz
在其下面添加:
AddType application/x-httpd-php .php //添加支持对php脚本解析
2. 找到:
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
把中间那一行改为:
DirectoryIndex index.html index.htm index.php //增加对php的索引
边栏推荐
猜你喜欢

chrome浏览器关闭更新弹窗

Learning Tai Chi Maker - mqtt Chapter II (IX) test of this chapter

【Redis】List类型

The 10 most commonly used gadgets for waterfall project management can be built and used freely

【Redis】SortedSet类型

Trigonometric function calculation

Differences between web testing and app testing

Configurable FFT system design based on risc-v SOC (1) Introduction
![[redis] sortedset type](/img/7f/f5f1aa603c8994b669d52a435fed7e.png)
[redis] sortedset type

Day10 enumeration class and annotation
随机推荐
【学习笔记】子集和问题
字符串分段组合
Koa 快速入門
Target detection - ADAS practice
Studies of relative costs for development in different languages
“内窥镜第一股”二闯IPO,去年亏损5个亿,核心产品商业化仍存疑 | IPO速递
Digital IC design, FPGA design written examination questions, answers and analysis of autumn move (1) 2022 Ziguang zhanrui (Part 1)
大三下期末考試
How to become a senior digital IC Design Engineer (4-2) script: file read / write operation realized by Verilog HDL code
计算矩形面积
Sysbench Pressure Test Oracle (installation and use examples)
Quelques tests pour compléter l'environnement wasm
SystemVerilog structure (I)
跨境资讯站
2022.02.15
大智慧手机股票开户哪个券商更安全更方便?
Kubernetes: container resource requirements and constraints (constraints)
11 go Foundation: Interface
HBuilder左侧工具栏不见了
利用kubernetes資源鎖完成自己的HA應用