您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息
三六零分类信息网 > 阿里分类信息网,免费分类信息发布

阿里云服务器安装配置Apache+php服务器

2024/7/2 5:10:55发布48次查看
一、ssh登陆阿里云服务器 执行命令: yum install php 二、启动apachephp服务器 命令: httpd -k start 异常: httpd: could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for servername 处理: find -name httpd.co
一、ssh登陆阿里云服务器
执行命令:
yum install  php
二、启动apache+php服务器
命令:
httpd -k start
异常:
httpd: could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for servername
处理:
find -name httpd.conf
编辑httpd.conf文件,搜索#servername,添加servername localhost:80
如:
[root@server conf]# vi httpd.conf
#servername www.example.com:80
servername localhost:80
再重新启动apache 即可。
三、通过ftp上传html或php项目文件到/var/www/html
如:上传文件为test.html或test.php
四、访问阿里云apahe+php服务器
如:在浏览器中输入:阿里云公网ip/test.html/php 访问阿里云服务器
至此配置结束。
阿里分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录