摘要:• httpd主配置文件/usr/local/apache2.4/conf/httpd.conf • vim /usr/local/apache2.4/conf/httpd.conf //修改以下4个地方 ServerName Require all denied AddType application/x-httpd-php .php DirectoryIndex index.html index.php • /usr/l....
•httpd主配置文件/usr/local/apache2.4/conf/httpd.conf
•vim/usr/local/apache2.4/conf/httpd.conf//修改以下4个地方
ServerName
Requirealldenied
AddTypeapplication/x-httpd-php.php
DirectoryIndexindex.htmlindex.php
•/usr/local/apache2.4/bin/apachectl-t//测试语法
•/usr/local/apache2.4/bin/apachectlstart//启动服务
•netstat-lntp
•curllocalhost
•vim/usr/local/apache2.4/htodcs/test.php//增加如下内容
<?php
echo123;
?>
•curllocalhost/test.php
相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28