Home  >  Article  >  Backend Development  >  PHP启动过程中出现的有关问题

PHP启动过程中出现的有关问题

WBOY
WBOYOriginal
2016-06-13 13:08:14752browse

PHP启动过程中出现的问题

?

?

今天开始自学php,先安装了apache服务器,再安装php5.4,最后启动apache的服务是报出了这样的错,从英文解释上分析出了,1.服务器名称起的不对,2.80端口被占用。当是apache服务器只有2个端口让我选择,我看8080端口被tomcat使用,就选择了80端口,可是80端口也被占用了。无奈还是使用8080端口吧。

解决办法:到apache的conf目录找到httpd.conf文件

1.设置apache服务的监听端口为

#Listen localhost:8080
Listen 8080

2.设置apache服务器的登陆地址为

#ServerAdmin localhost

3.设置apache服务器的服务名称为
#ServerName localhost:8080

总结:修改好了以上三个地方apache服务启动不报错了,可以顺利访问自己编写的php网页了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn