资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

【CentOS】HowtosetupPHPenv-创新互联

////// apache

创新互联网站建设公司一直秉承“诚信做人,踏实做事”的原则,不欺瞒客户,是我们最起码的底线! 以服务为基础,以质量求生存,以技术求发展,成交一个客户多一个朋友!专注中小微企业官网定制,成都网站建设、成都网站设计,塑造企业网络形象打造互联网企业效应。

# yum install httpd httpd-devel

# systemctl start httpd

# systemctl status httpd

# systemctl enable httpd

////// php

# yum install php php-devel

# systemctl restart httpd

////// error

[root@wode013 sbin]# systemctl status httpd.service

● httpd.service - The Apache HTTP Server

  Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)

  Active: failed (Result: exit-code) since 二 2016-03-08 11:22:49 EST; 6min ago

   Docs: man:httpd(8)

      man:apachectl(8)

 Process: 30009 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)

 Process: 29986 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

 Main PID: 29986 (code=exited, status=1/FAILURE)

3月 08 11:22:49 wode013 httpd[29986]: (13)Permission denied: AH00072: make_sock: could not bind to...6000

3月 08 11:22:49 wode013 httpd[29986]: (13)Permission denied: AH00072: make_sock: could not bind to...6000

3月 08 11:22:49 wode013 httpd[29986]: no listening sockets available, shutting down

3月 08 11:22:49 wode013 httpd[29986]: AH00015: Unable to open logs

3月 08 11:22:49 wode013 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE

3月 08 11:22:49 wode013 kill[30009]: kill: cannot find process ""

3月 08 11:22:49 wode013 systemd[1]: httpd.service: control process exited, code=exited status=1

3月 08 11:22:49 wode013 systemd[1]: Failed to start The Apache HTTP Server.

3月 08 11:22:49 wode013 systemd[1]: Unit httpd.service entered failed state.

3月 08 11:22:49 wode013 systemd[1]: httpd.service failed.

Hint: Some lines were ellipsized, use -l to show in full.

////// port

[root@wode013 sbin]# firewall-cmd --add-service=http --permanent

success

[root@wode013 sbin]# firewall-cmd --reload

success

[root@wode013 sbin]# firewall-cmd --list-all

public (default, active)

 interfaces: enp3s0f0 enp3s0f1

 sources:

 services: dhcpv6-client http ssh

 ports: 5000/tcp

 masquerade: no

 forward-ports:

 icmp-blocks:

 rich rules:

[root@wode013 sbin]# semanage port -l | grep 80

http_cache_port_t        tcp    8080, 8118, 8123, 10001-10010

http_port_t           tcp    80, 81, 443, 488, 8008, 8009, 8443, 9000

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


文章名称:【CentOS】HowtosetupPHPenv-创新互联
本文地址:http://cdkjz.cn/article/djegjp.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220